[pve-devel] [PATCH manager 4/6] 5to6: add more corosync subheaders

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Jul 5 14:44:08 CEST 2019


to improve readability

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

diff --git a/PVE/CLI/pve5to6.pm b/PVE/CLI/pve5to6.pm
index ec98b81a..edcddaaa 100644
--- a/PVE/CLI/pve5to6.pm
+++ b/PVE/CLI/pve5to6.pm
@@ -301,6 +301,7 @@ sub check_cluster_corosync {
     my $conf_nodelist = PVE::Corosync::nodelist($conf);
     my $node_votes = 0;
 
+    print "\nAnalzying quorum settings and state..\n";
     if (!defined($conf_nodelist)) {
 	log_fail("unable to retrieve nodelist from corosync.conf");
     } else {
@@ -360,6 +361,7 @@ sub check_cluster_corosync {
     log_fail("corosync.conf ($conf_nodelist_count) and pmxcfs ($cfs_nodelist_count) don't agree about size of nodelist.")
 	if $conf_nodelist_count != $cfs_nodelist_count;
 
+    print "\nChecking nodelist entries..\n";
     foreach my $cs_node (keys %$conf_nodelist) {
 	my $entry = $conf_nodelist->{$cs_node};
 	log_fail("$cs_node: no name entry in corosync.conf.")
@@ -389,8 +391,8 @@ sub check_cluster_corosync {
 	$verify_ring_ip->('ring1_addr');
     }
 
+    print "\nChecking totem settings..\n";
     my $totem = $conf->{main}->{totem};
-
     my $transport = $totem->{transport};
     if (defined($transport)) {
 	log_fail("Corosync transport explicitly set to '$transport' instead of implicit default!");
-- 
2.20.1





More information about the pve-devel mailing list