serial_no=1,
master_candidate=True,
offline=False, drained=False,
+ ctime=now, mtime=now,
)
InitConfig(constants.CONFIG_VERSION, cluster_config, master_node_config)
cfg = config.ConfigWriter(offline=True)
try:
# instantiate a real config writer, as we now know we have the
# configuration data
- cfg = config.ConfigWriter()
+ cfg = config.ConfigWriter(accept_foreign=True)
cluster_info = cfg.GetClusterInfo()
cluster_info.master_node = new_master