[pve-devel] applied: [PATCH v3 cluster 3/4] Add verification and fallback to cluster join/addnode

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Feb 5 10:43:01 CET 2020

Am 1/9/20 um 4:31 PM schrieb Stefan Reiter:
> Verify that the config of the new node is valid and compatible with the
> cluster (i.e. that the links for the new node match the currently
> configured nodes).
> Additionally, fallback is provided via a new parameter to addnode,
> 'new_node_ip'. Previously, fallback was handled on the joining node, by
> setting it's local IP as 'link0', however, a cluster with only one link,
> but numbered 1-7 is still valid, and a fallback is possible, but the old
> code would now fail.
> Instead, pass the locally resolved IP via a seperate parameter
> (resolving the IP on the cluster side is impractical, as IP resolution
> could fail or provide a wrong IP for Corosync).
> For compatibility reasons, allow fallback to occur via the old
> method as well, but mark with FIXME for future removal.
> Fallback fails in case the cluster has more than one link, in this case
> only the user can know which NIC/IP corresponds to which cluster link.
> Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
> ---
>  data/PVE/API2/ClusterConfig.pm | 63 +++++++++++++++++++++++++++++++++-
>  data/PVE/CLI/pvecm.pm          |  7 ++++
>  data/PVE/Cluster/Setup.pm      |  7 ++++
>  3 files changed, 76 insertions(+), 1 deletion(-)

More information about the pve-devel mailing list