Skip to content
Snippets Groups Projects
Commit 36e887c2 authored by Morris Jette's avatar Morris Jette
Browse files

Merge branch 'slurm-16.05'

parents 56ff27da 457086fe
No related branches found
No related tags found
No related merge requests found
...@@ -173,6 +173,8 @@ documents those changes that are of interest to users and administrators. ...@@ -173,6 +173,8 @@ documents those changes that are of interest to users and administrators.
-- Remove StoragePass from being printed out in the slurmdbd log at debug2 -- Remove StoragePass from being printed out in the slurmdbd log at debug2
level. level.
-- Defer PATH search for task program until launch in slurmstepd. -- Defer PATH search for task program until launch in slurmstepd.
-- Modify regression test1.89 to avoid leaving vestigial job. Also reduce
logging to reduce likelyhood of Expect buffer overflow.
* Changes in Slurm 16.05.7 * Changes in Slurm 16.05.7
========================== ==========================
......
...@@ -89,7 +89,7 @@ exec $bin_chmod 700 $file_prog ...@@ -89,7 +89,7 @@ exec $bin_chmod 700 $file_prog
# Create an allocation # Create an allocation
# #
set timeout $max_job_delay set timeout $max_job_delay
set salloc_pid [spawn $salloc -N1 --exclusive -v -t5 $bin_bash] set salloc_pid [spawn $salloc -N1 --exclusive -t5 $bin_bash]
expect { expect {
-re "Granted job allocation ($number)" { -re "Granted job allocation ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
...@@ -142,7 +142,7 @@ expect { ...@@ -142,7 +142,7 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
slow_kill $salloc_pid cancel_job $job_id
exit 1 exit 1
} }
-re $prompt { -re $prompt {
...@@ -159,8 +159,8 @@ if {$task_cnt > 32} { ...@@ -159,8 +159,8 @@ if {$task_cnt > 32} {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
slow_kill $salloc_pid cancel_job $job_id
set exit_code 1 exit 1
} }
eof { eof {
wait wait
...@@ -193,7 +193,8 @@ expect { ...@@ -193,7 +193,8 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exit 1
} }
-re $prompt { -re $prompt {
} }
...@@ -238,9 +239,11 @@ expect { ...@@ -238,9 +239,11 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exit 1
}
-re $prompt {
} }
-re $prompt
} }
if {$task_mask != $task_cnt} { if {$task_mask != $task_cnt} {
send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $task_cnt)\n" send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $task_cnt)\n"
...@@ -261,9 +264,11 @@ expect { ...@@ -261,9 +264,11 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exit 1
}
-re $prompt {
} }
-re $prompt
} }
# Both task/affinity and task/cpu will generate verbose message, # Both task/affinity and task/cpu will generate verbose message,
# so check for double messages in case both plugins are configured. # so check for double messages in case both plugins are configured.
...@@ -293,10 +298,11 @@ while {$cpu_cnt < $task_cnt} { ...@@ -293,10 +298,11 @@ while {$cpu_cnt < $task_cnt} {
timeout { timeout {
send_user "\nFAILURE: salloc not " send_user "\nFAILURE: salloc not "
send_user "responding or failure to recognize prompt\n" send_user "responding or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exp_continue exit 1
}
-re $prompt {
} }
-re $prompt
} }
if {$mask_sum != $task_cnt * $mask} { if {$mask_sum != $task_cnt * $mask} {
send_user "\nFAILURE: affinity mask inconsistent ($mask_sum != $task_cnt * $mask)\n" send_user "\nFAILURE: affinity mask inconsistent ($mask_sum != $task_cnt * $mask)\n"
...@@ -327,10 +333,11 @@ while {$cpu_cnt < $task_cnt} { ...@@ -327,10 +333,11 @@ while {$cpu_cnt < $task_cnt} {
timeout { timeout {
send_user "\nFAILURE: salloc not " send_user "\nFAILURE: salloc not "
send_user "responding or failure to recognize prompt\n" send_user "responding or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exp_continue exit 1
}
-re $prompt {
} }
-re $prompt
} }
if {$mask_sum != $task_cnt * $mask} { if {$mask_sum != $task_cnt * $mask} {
send_user "\nFAILURE: affinity mask inconsistent ($mask_sum != $task_cnt * $mask)\n" send_user "\nFAILURE: affinity mask inconsistent ($mask_sum != $task_cnt * $mask)\n"
...@@ -403,10 +410,11 @@ expect { ...@@ -403,10 +410,11 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exp_continue exit 1
}
-re $prompt {
} }
-re $prompt
} }
if {$task_mask != $full_mask} { if {$task_mask != $full_mask} {
send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n" send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n"
...@@ -431,10 +439,11 @@ expect { ...@@ -431,10 +439,11 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exp_continue exit 1
}
-re $prompt {
} }
-re $prompt
} }
if {$task_mask != $full_mask} { if {$task_mask != $full_mask} {
send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n" send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n"
...@@ -459,10 +468,11 @@ expect { ...@@ -459,10 +468,11 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exp_continue exit 1
}
-re $prompt {
} }
-re $prompt
} }
if {$task_mask != $full_mask} { if {$task_mask != $full_mask} {
send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n" send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n"
...@@ -487,10 +497,11 @@ expect { ...@@ -487,10 +497,11 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exp_continue exit 1
}
-re $prompt {
} }
-re $prompt
} }
if {$task_mask != $full_mask} { if {$task_mask != $full_mask} {
send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n" send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n"
...@@ -515,10 +526,11 @@ expect { ...@@ -515,10 +526,11 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exp_continue exit 1
}
-re $prompt {
} }
-re $prompt
} }
if {$task_mask != $full_mask} { if {$task_mask != $full_mask} {
send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n" send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n"
...@@ -543,10 +555,11 @@ expect { ...@@ -543,10 +555,11 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 cancel_job $job_id
exp_continue exit 1
}
-re $prompt {
} }
-re $prompt
} }
if {$task_mask != $full_mask} { if {$task_mask != $full_mask} {
send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n" send_user "\nFAILURE: affinity mask inconsistent ($task_mask != $full_mask)\n"
...@@ -565,7 +578,7 @@ expect { ...@@ -565,7 +578,7 @@ expect {
timeout { timeout {
send_user "\nFAILURE: salloc not responding " send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
slow_kill $salloc_pid cancel_job $job_id
set exit_code 1 set exit_code 1
} }
eof { eof {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment