Skip to content

Commit 3f7aead

Browse files
author
Himani Anil Deshpande
committed
Adding log for checking output
1 parent 77fdf75 commit 3f7aead

File tree

1 file changed

+4
-1
lines changed
  • cookbooks/aws-parallelcluster-slurm/libraries

1 file changed

+4
-1
lines changed

cookbooks/aws-parallelcluster-slurm/libraries/helpers.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,14 @@ def check_for_protected_mode(fleet_status_command) # rubocop:disable Lint/Nested
219219
"/usr/local/bin/get-compute-fleet-status.sh"
220220
)
221221

222+
total_static_node_count = get_static_node_count
223+
Chef::Log::info("Count of cluster static nodes is #{total_static_node_count}")
224+
222225
# Example output for sinfo
223226
# sinfo -h -o '%N %t'
224227
# queue-0-dy-compute-resource-g4dn-0-[1-10],queue-1-dy-compute-resource-g4dn-1-[1-10] idle~
225228
# queue-2-dy-compute-resource-g4dn-2-[1-10],queue-3-dy-compute-resource-g4dn-3-[1-10] idle
226-
until shell_out!("/bin/bash -c /usr/local/bin/is_fleet_ready.sh #{get_static_node_count}").stdout.strip.empty?
229+
until shell_out!("/bin/bash -c /usr/local/bin/is_fleet_ready.sh #{total_static_node_count}").stdout.strip.empty?
227230
check_for_protected_mode(fleet_status_command)
228231

229232
Chef::Log.info("Waiting for static fleet capacity provisioning")

0 commit comments

Comments
 (0)