]> git.proxmox.com Git - pve-manager.git/commitdiff
5to6: reword/-structure corosync message
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 5 Jul 2019 12:44:06 +0000 (14:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 Jul 2019 08:44:41 +0000 (10:44 +0200)
and fix a typo as well

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/CLI/pve5to6.pm

index 79205aa13296588e825ea01f3b1a28e6fbca5071..07d39c9ff3df5136cae9d03d2720492a0f0283b6 100644 (file)
@@ -362,9 +362,9 @@ sub check_cluster_corosync {
 
     foreach my $cs_node (keys %$conf_nodelist) {
        my $entry = $conf_nodelist->{$cs_node};
-       log_fail("No name entry for node '$cs_node' in corosync.conf.")
+       log_fail("$cs_node: no name entry in corosync.conf.")
            if !defined($entry->{name});
-       log_fail("No nodeid configured for node '$cs_node' in corosync.conf.")
+       log_fail("$cs_node: no nodeid configured in corosync.conf.")
            if !defined($entry->{nodeid});
 
        my $verify_ring_ip = sub {
@@ -374,12 +374,12 @@ sub check_cluster_corosync {
                my ($resolved_ip, undef) = PVE::Corosync::resolve_hostname_like_corosync($ring, $conf);
                if (defined($resolved_ip)) {
                    if ($resolved_ip ne $ring) {
-                       log_warn("$key '$ring' of node '$cs_node' resolves to '$resolved_ip'.\n Consider replacing it with the currently resolved IP address.");
+                       log_warn("$cs_node: $key '$ring' resolves to '$resolved_ip'.\n Consider replacing it with the currently resolved IP address.");
                    } else {
-                       log_pass("$key is configured to use IP address '$ring'");
+                       log_pass("$cs_node: $key is configured to use IP address '$ring'");
                    }
                } else {
-                   log_fail("unable to resolve $key '$ring' of node '$cs_node' to an IP address according to Corosync's resolve strategy - cluster will fail with Corosync 3.x/kronosnet!");
+                   log_fail("$cs_node: unable to resolve $key '$ring' to an IP address according to Corosync's resolve strategy - cluster will potentially fail with Corosync 3.x/kronosnet!");
                }
            }
        };
@@ -391,7 +391,7 @@ sub check_cluster_corosync {
 
     my $transport = $totem->{transport};
     if (defined($transport)) {
-       log_fail("Corosync transport expliclitly set to '$transport' instead of implicit default!");
+       log_fail("Corosync transport explicitly set to '$transport' instead of implicit default!");
     }
 
     if ((!defined($totem->{secauth}) || $totem->{secauth} ne 'on') && (!defined($totem->{crypto_cipher}) || $totem->{crypto_cipher} eq 'none')) {