]> git.proxmox.com Git - pve-cluster.git/commitdiff
fix #1743: cluster create: default to ring0_addr for bindnet0
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 May 2018 08:02:57 +0000 (10:02 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 May 2018 08:18:10 +0000 (10:18 +0200)
Else, if a separate network address was passed for ring0_addr but no
bindnet0 adress was set we used the wrong fallback.
Do not fallback to $local_node_ip but always to $ring0_addr, which
itself falls back to local node IP.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/Corosync.pm

index 35af087a60ea425cac72f654b8073e3981561b38..560a49813614bfb9d0f06eadd266ceb5c80687af 100644 (file)
@@ -193,7 +193,7 @@ sub create_conf {
 
     my $local_ip_address = PVE::Cluster::remote_node_ip($nodename);
     my $ring0_addr = $param{ring0_addr} // $local_ip_address;
-    my $bindnet0_addr = $param{bindnet0_addr} // $local_ip_address;
+    my $bindnet0_addr = $param{bindnet0_addr} // $ring0_addr;
 
     my $use_ipv6 = ip_is_ipv6($ring0_addr);
     die "ring 0 addresses must be from same IP family!\n"