Else corosync really delete himself from the cluster which pmxcfs
cannot really handle and this is a bad idea in general.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit
a8dbb454dbb7a5b4bbff0f63ed39e4eb45328242)
die "Node/IP: $param->{node} is not a known host of the cluster.\n"
if !defined($node);
+ my $our_nodename = PVE::INotify::nodename();
+ die "Cannot delete myself from cluster!\n" if $node eq $our_nodename;
+
delete $nodelist->{$node};
PVE::Cluster::corosync_update_nodelist($conf, $nodelist);