This attribute will be used to prevent any allocation on the node (any
of replace-disks with new secondary this node, failover to the node,
migration to the node).
The patch adds the attribute and initializes it correctly in cluster
init and for new nodes.
Reviewed-by: imsnah
secondary_ip=secondary_ip,
serial_no=1,
master_candidate=True,
- offline=False,
+ offline=False, drained=False,
)
sscfg = InitConfig(constants.CONFIG_VERSION,
primary_ip=primary_ip,
secondary_ip=secondary_ip,
master_candidate=master_candidate,
- offline=False)
+ offline=False, drained=False)
def Exec(self, feedback_fn):
"""Adds the new node to the cluster.
"serial_no",
"master_candidate",
"offline",
+ "drained",
]