Commit 952d7515 authored by Michael Hanselmann's avatar Michael Hanselmann

Start all daemons on cluster initialization

At least ganeti-confd was not started. It got started a few minutes
later by ganeti-watcher. Also move one pylint disable to the effective
line.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent f313e7be
......@@ -219,8 +219,7 @@ def _InitFileStorage(file_storage_dir):
return file_storage_dir
#pylint: disable-msg=R0913
def InitCluster(cluster_name, mac_prefix,
def InitCluster(cluster_name, mac_prefix, # pylint: disable-msg=R0913
master_netdev, file_storage_dir, candidate_pool_size,
secondary_ip=None, vg_name=None, beparams=None,
nicparams=None, hvparams=None, enabled_hypervisors=None,
......@@ -412,10 +411,12 @@ def InitCluster(cluster_name, mac_prefix,
# set up the inter-node password and certificate
_InitGanetiServerSetup(hostname.name)
# start the master ip
# TODO: Review rpc call from bootstrap
# TODO: Warn on failed start master
rpc.RpcRunner.call_node_start_master(hostname.name, True, False)
logging.debug("Starting daemons")
result = utils.RunCmd([constants.DAEMON_UTIL, "start-all"])
if result.failed:
raise errors.OpExecError("Could not start daemons, command %s"
" had exitcode %s and error %s" %
(result.cmd, result.exit_code, result.output))
def InitConfig(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