Signed-off-by: Thomas Lamprecht <[email protected]>
---
data/PVE/API2/ClusterConfig.pm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/data/PVE/API2/ClusterConfig.pm b/data/PVE/API2/ClusterConfig.pm
index 52c6e50..76fe7b6 100644
--- a/data/PVE/API2/ClusterConfig.pm
+++ b/data/PVE/API2/ClusterConfig.pm
@@ -216,6 +216,8 @@ __PACKAGE__->register_method ({
$nodelist->{$name}->{ring1_addr} = $param->{ring1_addr} if
$param->{ring1_addr};
$nodelist->{$name}->{quorum_votes} = $param->{votes} if
$param->{votes};
+ PVE::Cluster::log_msg('notice', 'root@pam', "adding node $name to
cluster");
+
PVE::Corosync::update_nodelist($conf, $nodelist);
};
@@ -270,6 +272,8 @@ __PACKAGE__->register_method ({
die "Node/IP: $param->{node} is not a known host of the cluster.\n"
if !defined($node);
+ PVE::Cluster::log_msg('notice', 'root@pam', "deleting node $node
from cluster");
+
delete $nodelist->{$node};
PVE::Corosync::update_nodelist($conf, $nodelist);
--
2.11.0
_______________________________________________
pve-devel mailing list
[email protected]
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel