From a1b06e4355b8799351b5c3d76fd83e630bc7b960 Mon Sep 17 00:00:00 2001 From: Digimer Date: Sun, 13 Jun 2021 14:59:39 -0400 Subject: [PATCH] * Continuing to try to get the network to reliably start during configuration... Signed-off-by: Digimer --- Anvil/Tools/Network.pm | 6 +++--- tools/anvil-configure-host | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Anvil/Tools/Network.pm b/Anvil/Tools/Network.pm index 70b33c99..348532bb 100644 --- a/Anvil/Tools/Network.pm +++ b/Anvil/Tools/Network.pm @@ -513,13 +513,13 @@ sub check_bonds # Link shown, try to start the interface. $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, 'print' => 1, level => 1, key => "log_0629", variables => { bond => $bond, - interface => $interface, + interface => $interface." (".$anvil->data->{bond_health}{$bond}{interface}{$interface}{name}.")", }}); my $shell_call = $anvil->data->{path}{exe}{ifup}." ".$anvil->data->{bond_health}{$bond}{interface}{$interface}{name}; - $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { shell_call => $shell_call }}); + $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 1, list => { shell_call => $shell_call }}); - my ($output, $return_code) = $anvil->System->call({debug => $debug, shell_call => $shell_call}); + my ($output, $return_code) = $anvil->System->call({debug => 1, shell_call => $shell_call}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { 'output' => $output, 'return_code' => $return_code, diff --git a/tools/anvil-configure-host b/tools/anvil-configure-host index 907b83cd..1e959769 100755 --- a/tools/anvil-configure-host +++ b/tools/anvil-configure-host @@ -946,6 +946,7 @@ sub reconfigure_network until ($anvil->data->{sys}{database}{connections}) { $anvil->refresh(); + $anvil->Network->check_bonds({heal => "all"}); $anvil->Database->connect(); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 2, 'print' => 1, secure => 0, key => "log_0132"}); if (not $anvil->data->{sys}{database}{connections})