Commit 3e22caed authored by Guido Trotter's avatar Guido Trotter
Browse files

Offline node when adding it to a merged cluster

Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 669afd8a
......@@ -316,6 +316,10 @@ class Merger(object):
for node in other_config.GetNodeList():
node_info = other_config.GetNodeInfo(node)
# Offline the node, it will be reonlined later at node readd
node_info.master_candidate = False
node_info.drained = False
node_info.offline = True
my_config.AddNode(node_info, _CLUSTERMERGE_ECID + str(fake_ec_id))
fake_ec_id += 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment