Added logging to debug network config issue.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 7 months ago
parent 8dc3a8262f
commit 4766ceff70
  1. 2
      share/words.xml
  2. 9
      tools/anvil-configure-host

@ -2739,6 +2739,8 @@ The file: [#!variable!file!#] needs to be updated. The difference is:
The key in the database has been updated, so we're going to swap the key. The change is; The key in the database has been updated, so we're going to swap the key. The change is;
old key: [#!variable!old_key!#] old key: [#!variable!old_key!#]
new key: [#!variable!new_key!#]</key> new key: [#!variable!new_key!#]</key>
<key name="log_0852">Finished configuring bonds.</key>
<key name="log_0853">Now configuring bridges.</key>
<!-- Messages for users (less technical than log entries), though sometimes used for logs, too. --> <!-- Messages for users (less technical than log entries), though sometimes used for logs, too. -->
<key name="message_0001">The host name: [#!variable!target!#] does not resolve to an IP address.</key> <key name="message_0001">The host name: [#!variable!target!#] does not resolve to an IP address.</key>

@ -534,7 +534,7 @@ ORDER BY
file => $THIS_FILE, file => $THIS_FILE,
line => __LINE__, line => __LINE__,
}); });
$anvil->Database->disconnect(); $anvil->Database->disconnect({debug => 2});
} }
# These can brake the connection. # These can brake the connection.
@ -726,6 +726,7 @@ sub reconfigure_bridges
{ {
my ($anvil) = @_; my ($anvil) = @_;
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, 'print' => 1, key => "log_0853"});
my $local_host = $anvil->Get->short_host_name(); my $local_host = $anvil->Get->short_host_name();
my $bcn_count = $anvil->data->{config}{bcn_count}; my $bcn_count = $anvil->data->{config}{bcn_count};
my $ifn_count = $anvil->data->{config}{ifn_count}; my $ifn_count = $anvil->data->{config}{ifn_count};
@ -1458,10 +1459,14 @@ sub reconfigure_bonds
line => __LINE__, line => __LINE__,
variables => { }, variables => { },
}); });
$anvil->Network->collect_data(); $anvil->Network->collect_data({debug => 2});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { nm_uuid => $nm_uuid }});
} }
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { i => $i }});
} }
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { network_type => $network_type }});
} }
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, 'print' => 1, key => "log_0852"});
return(0); return(0);
} }

Loading…
Cancel
Save