diff --git a/lib/cmdlib.py b/lib/cmdlib.py index a35a54b565f74b1705e73d398bc9be54819cf82d..d663f8d03ff393ace3d833cf395e6c1fa8324573 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -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