Commit 31684f84 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Stop all daemons precautiosly before trying to start ganeti-noded again

Please note that if the pid file is broken or missing we'll not catch
the process (if any is running) and it's up to the user to fix this state
Signed-off-by: default avatarRené Nussbaumer <>
Reviewed-by: default avatarMichael Hanselmann <>
parent ace16501
......@@ -530,8 +530,10 @@ def SetupNodeDaemon(cluster_name, node, ssh_key_check):
sshrunner.CopyFileToNode(node, constants.NODED_CERT_FILE)
sshrunner.CopyFileToNode(node, constants.RAPI_CERT_FILE)
sshrunner.CopyFileToNode(node, constants.CONFD_HMAC_KEY)
mycommand = ("%s start %s -b '%s'" % (constants.DAEMON_UTIL, constants.NODED,
mycommand = ("%s stop-all; %s start %s -b '%s'" % (constants.DAEMON_UTIL,
result = sshrunner.Run(node, 'root', mycommand, batch=False,
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