Skip to content
Snippets Groups Projects
Commit d917d5e9 authored by Brian Christiansen's avatar Brian Christiansen
Browse files

Update test37.7 with fed drain/remove updates

parent cfb7a484
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ set my_sbatch "${fed_slurm_base}/$fedc1/bin/sbatch" ...@@ -57,7 +57,7 @@ set my_sbatch "${fed_slurm_base}/$fedc1/bin/sbatch"
set my_srun "${fed_slurm_base}/$fedc1/bin/srun" set my_srun "${fed_slurm_base}/$fedc1/bin/srun"
set my_salloc "${fed_slurm_base}/$fedc1/bin/salloc" set my_salloc "${fed_slurm_base}/$fedc1/bin/salloc"
set my_squeue "${fed_slurm_base}/$fedc1/bin/squeue" set my_squeue "${fed_slurm_base}/$fedc1/bin/squeue"
set min_job_age [expr {[get_min_job_age] + 65}] set drain_time 10
set eol "\r\n" set eol "\r\n"
...@@ -403,15 +403,8 @@ sleep 10 ...@@ -403,15 +403,8 @@ sleep 10
squeue "" squeue ""
log_info "Sleep $min_job_age seconds until system is drained" log_info "Sleep $drain_time seconds until system is drained"
sleep $min_job_age sleep $drain_time
scontrol jobs "No jobs in the system"
scontrol fed ".+DRAIN.+ACTIVE.+"
log_info "Sleep 35 more seconds until system is drained"
sleep 35
scontrol fed ".+DRAINED.+ACTIVE.+" scontrol fed ".+DRAINED.+ACTIVE.+"
...@@ -462,17 +455,16 @@ sbatch 1 1 ...@@ -462,17 +455,16 @@ sbatch 1 1
squeue "" squeue ""
scontrol jobs "JobId.+" log_info "Sleep $drain_time seconds until system is removed"
sleep $drain_time
log_info "Sleep $min_job_age seconds until system is drained"
sleep $min_job_age
scontrol jobs "No jobs in the system"
scontrol fed "" scontrol fed ""
sacctmgr_show "\\s+ACTIVE\\s+" sacctmgr_show "\\s+ACTIVE\\s+"
# Once the system is drained, the controller will mark all jobs as non-requeueable.
scontrol jobs "Requeue=0.+"
set matches 0 set matches 0
spawn $my_sacctmgr mod fed $fed_name set clusters+=$fedc1 -i spawn $my_sacctmgr mod fed $fed_name set clusters+=$fedc1 -i
......
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