[pve-devel] [PATCH manager 2/4] 5to6: improve some log messages

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Jul 3 15:28:36 CEST 2019


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 PVE/CLI/pve5to6.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/PVE/CLI/pve5to6.pm b/PVE/CLI/pve5to6.pm
index e9373288..215f7430 100644
--- a/PVE/CLI/pve5to6.pm
+++ b/PVE/CLI/pve5to6.pm
@@ -467,12 +467,13 @@ sub check_misc {
 	log_pass("no running guest detected.")
     }
 
-    log_info("Checking if we the local nodes address is resolvable and configured..");
+    log_info("Checking if the local node's hostname is resolvable..");
     my $host = PVE::INotify::nodename();
     my $local_ip = eval { PVE::Network::get_ip_from_hostname($host) };
     if ($@) {
 	log_warn("Failed to resolve hostname '$host' to IP - $@");
     } else {
+	log_info("Checking if resolved IP is configured on local node..");
 	my $cidr = Net::IP::ip_is_ipv6($local_ip) ? "$local_ip/128" : "$local_ip/32";
 	my $configured_ips = PVE::Network::get_local_ip_from_cidr($cidr);
 	my $ip_count = scalar(@$configured_ips);
@@ -482,7 +483,7 @@ sub check_misc {
 	} elsif ($ip_count > 1) {
 	    log_warn("Resolved node IP '$local_ip' active on multiple ($ip_count) interfaces!");
 	} else {
-	    log_pass("Could resolved local nodename '$host' to active IP '$local_ip'");
+	    log_pass("Resolved node IP '$local_ip' configured and active on single interface.");
 	}
     }
 
-- 
2.20.1





More information about the pve-devel mailing list