Skip to content

Commit 3a47a55

Browse files
himani2411Himani Anil Deshpande
andauthored
[Gb200][Prolog] Redirect the Prolog logs in system logs (aws#6993)
* [Gb200][Prolog] Using generic function name * [Gb200][Prolog] Re-direct logs to syslogs --------- Co-authored-by: Himani Anil Deshpande <[email protected]>
1 parent 2cdac0b commit 3a47a55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration-tests/tests/ultraserver/test_gb200/test_gb200/91_nvidia_imex_prolog.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function get_instance_type() {
3434
curl -s -H "X-aws-ec2-metadata-token: ${token}" http://169.254.169.254/latest/meta-data/instance-type
3535
}
3636

37-
function return_unless_gb200_with_imex() {
37+
function return_if_unsupported_instance_type() {
3838
local instance_type=$(get_instance_type)
3939

4040
if [[ ! ${instance_type} =~ ${ALLOWED_INSTANCE_TYPES} ]]; then
@@ -163,7 +163,7 @@ function create_default_imex_channel() {
163163
{
164164
info "PROLOG Start JobId=${SLURM_JOB_ID}: $0"
165165

166-
return_unless_gb200_with_imex
166+
return_if_unsupported_instance_type
167167

168168
create_default_imex_channel
169169

@@ -188,4 +188,4 @@ function create_default_imex_channel() {
188188

189189
prolog_end
190190

191-
} >> "${LOG_FILE_PATH}" 2>&1
191+
} 2>&1 | tee -a "${LOG_FILE_PATH}" | logger -t "91_nvidia_imex_prolog"

0 commit comments

Comments
 (0)