Skip to content

Commit a39e96a

Browse files
committed
[DFSM] On cluster update, remove the check on static fleet and move the cluster readiness check before clustermgtd is restarted.
Signed-off-by: Giacomo Marciani <[email protected]>
1 parent bcb5da6 commit a39e96a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

cookbooks/aws-parallelcluster-slurm/recipes/update/update_head_node.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ def update_nodes_in_queue(strategy, queues)
278278

279279
chef_sleep '15'
280280

281+
wait_cluster_ready
282+
281283
execute 'start clustermgtd' do
282284
command "#{cookbook_virtualenv_path}/bin/supervisorctl start clustermgtd"
283285
not_if { ::File.exist?(node['cluster']['previous_cluster_config_path']) && !are_queues_updated? && !are_bulk_custom_slurm_settings_updated? }
@@ -289,7 +291,3 @@ def update_nodes_in_queue(strategy, queues)
289291
cookbook 'aws-parallelcluster-environment'
290292
mode '0644'
291293
end
292-
293-
wait_static_fleet_running
294-
295-
wait_cluster_ready

cookbooks/aws-parallelcluster-slurm/spec/unit/recipes/update_head_node_spec.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
)
3333
end
3434

35-
it 'checks that the static fleet is running' do
36-
is_expected.to run_ruby_block("wait for static fleet capacity")
37-
end
38-
3935
it 'checks cluster readiness' do
4036
expected_command = "#{cookbook_venv_path}/bin/python #{scripts_dir}/head_node_checks/check_cluster_ready.py" \
4137
" --cluster-name #{cluster_name}" \

0 commit comments

Comments
 (0)