Commit f0ca837f authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Ignore failures while shutting down instances during failover from offline node

Don't abort failover if instance shutdown doesn't work on a node marked
offline. The node is offline, so the instances living on it are too. Before
you had to use --ignore-consistency to archieve that.
Signed-off-by: default avatarRené Nussbaumer <>
Reviewed-by: default avatarMichael Hanselmann <>
parent cf0b3a19
......@@ -5442,6 +5442,7 @@ class LUFailoverInstance(LogicalUnit):
instance = self.instance
primary_node = self.cfg.GetNodeInfo(instance.primary_node)
source_node = instance.primary_node
target_node = instance.secondary_nodes[0]
......@@ -5465,7 +5466,7 @@ class LUFailoverInstance(LogicalUnit):
msg = result.fail_msg
if msg:
if self.op.ignore_consistency:
if self.op.ignore_consistency or primary_node.offline:
self.proc.LogWarning("Could not shutdown instance %s on node %s."
" Proceeding anyway. Please make sure node"
" %s is down. Error details: %s",
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