Commit c044f32c authored by Guido Trotter's avatar Guido Trotter

Make sure the initial node is a master candidate

Reviewed-by: imsnah
parent ce735215
......@@ -219,7 +219,9 @@ def InitCluster(cluster_name, mac_prefix, def_bridge,
master_node_config = objects.Node(name=hostname.name,
primary_ip=hostname.ip,
secondary_ip=secondary_ip,
serial_no=1)
serial_no=1,
master_candidate=True,
)
cfg = InitConfig(constants.CONFIG_VERSION,
cluster_config, master_node_config)
......
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