Otherwise, this can create problems when restarting the nodes due to voting issues.
Signed-off-by: Gerard Oskamp <[email protected]> Reviewed-by: Helga Velroyen <[email protected]> --- lib/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cli.py b/lib/cli.py index 5d2fb6c..3fcfd98 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -1535,7 +1535,9 @@ class _RunWhileDaemonsStoppedHelper(object): self._RunCmd(None, [pathutils.DAEMON_UTIL, "stop-master"]) try: # Stop daemons on all nodes - for node_name in self.online_nodes: + online_nodes = [self.master_node] + [n for n in self.online_nodes + if n != self.master_node] + for node_name in online_nodes: self.feedback_fn("Stopping daemons on %s" % node_name) self._RunCmd(node_name, [pathutils.DAEMON_UTIL, "stop-all"]) # Starting any daemons listed as exception -- 2.6.0.rc2.230.g3dd15c0
