From ef042eef25fad08a174d01e301e1c1fe28eb8d5e Mon Sep 17 00:00:00 2001 From: digimer Date: Thu, 28 Sep 2023 00:15:14 -0400 Subject: [PATCH] Cleaned up logging while waiting for subnodes. Signed-off-by: digimer --- share/words.xml | 1 + tools/anvil-join-anvil | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/words.xml b/share/words.xml index fa52a697..520cbc9e 100644 --- a/share/words.xml +++ b/share/words.xml @@ -1688,6 +1688,7 @@ Note: This is a permanent action! If you protect this server again later, a full The server: [#!variable!server!#] will now be forced off! The subnode: [#!variable!subnode!#] is not ready. Configured: [#!variable!configured!#], maintenance mode: [#!variable!maintenance_mode!#]. Waiting for a bit, then will check again. + Waiting for both subnodes to be configured and out of maintenance mode. Starting: [#!variable!program!#]. diff --git a/tools/anvil-join-anvil b/tools/anvil-join-anvil index 1bd53d5a..6aef2ce8 100755 --- a/tools/anvil-join-anvil +++ b/tools/anvil-join-anvil @@ -2403,6 +2403,7 @@ sub wait_for_subnodes }}); my $waiting = 1; + update_progress($anvil, $anvil->data->{job}{progress}, "job_0477"); while($waiting) { my $waiting = 0; @@ -2436,7 +2437,6 @@ sub wait_for_subnodes $waiting = 1; $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { waiting => $waiting}}); - update_progress($anvil, $anvil->data->{job}{progress}, "job_0475,!!subnode!".$host_name."!!,!!configured!".$configured."!!,!!maintenance_mode!".$maintenance_mode."!!"); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, 'print' => 1, level => 2, key => "job_0475", variables => { subnode => $host_name, configured => $configured, @@ -2447,7 +2447,6 @@ sub wait_for_subnodes if ($waiting) { - update_progress($anvil, $anvil->data->{job}{progress}, "job_0476"); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, 'print' => 1, level => 2, key => "job_0476"}); sleep 5; }