]> git.proxmox.com Git - pve-cluster.git/commit
fix #3596: handle delnode of offline node
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 12 Nov 2021 08:45:27 +0000 (09:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Nov 2021 10:04:05 +0000 (11:04 +0100)
commit5a40b91ff3348e4614d9e568a3ab7b0dbae1d5a3
tree81edc09dd10fc7be056cba0b098d7e5fd3703df3
parent46ba8e26744caba8d64c7062e4df6e810b45c0e1
fix #3596: handle delnode of offline node

the recommended way is to first shutdown, then delnode, and never let it
come back online, in which case corosync-cfgtool won't be able to kill
the removed (offline) node.

also, the order was wrong - if we first update corosync.conf to remove
the node entry from the nodelist, corosync doesn't know about the nodeid
anymore, so killing will fail even if the node is still online.

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