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

Relax instance ERROR on admin_down on offline node



This fixes a issue, where an stopped instances is reported as ERROR
in cluster verify if it lives on a offline node. As the instances is
down this shouldn't happen.
Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 6a373640
......@@ -2360,8 +2360,10 @@ class LUClusterVerify(LogicalUnit):
self.ENODERPC, pnode, "instance %s, connection to"
" primary node failed", instance)
_ErrorIf(pnode_img.offline, self.EINSTANCEBADNODE, instance,
"instance lives on offline node %s", inst_config.primary_node)
_ErrorIf(inst_config.admin_up and pnode_img.offline,
self.EINSTANCEBADNODE, instance,
"instance is marked as running and lives on offline node %s",
inst_config.primary_node)
# If the instance is non-redundant we cannot survive losing its primary
# node, so we are not N+1 compliant. On the other hand we have no disk
......
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