]> git.proxmox.com Git - pve-cluster.git/commit
pvecm addnode: ensure ring address isn't already used by cluster
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Feb 2017 15:59:08 +0000 (16:59 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 28 Feb 2017 10:48:57 +0000 (11:48 +0100)
commit77a1c918ab6615fc1816d86ad882b6b806cb9535
tree4b3574b4e1a5912aa4bc462e478ff6ce9f73f601
parente73b85c0b99cd4da32ed5e3a76e5c8574a956bff
pvecm addnode: ensure ring address isn't already used by cluster

If someone enters the wrong address by accident when adding a node it
may cause havoc in the cluster (meaning a reset of the whole cluster
when HA is used, may even happen more often during the recovery
tries. Also a whole lot of problems get triggered in gneral, even
witouth HA).

Further, user get into a hard to repair situation where a layman may
not be able to fix it by hand even when given directions by an
experienced user.

This is a really bad outcome for such a small and easy to make
mistake, so just make a small check and assert that the requested IPs
are not used by any node on any ring in the cluster configuration.

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