Revision cb386168 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
3028 | 3028 |
|
3029 | 3029 |
# Check if node groups for locked instances are still correct |
3030 | 3030 |
for (instance_name, inst) in self.instances.items(): |
3031 |
assert self.group_uuid in self.cfg.GetInstanceNodeGroups(instance_name), \ |
|
3032 |
"Instance %s has no node in group %s" % (instance_name, self.group_uuid) |
|
3033 | 3031 |
assert owned_nodes.issuperset(inst.all_nodes), \ |
3034 | 3032 |
"Instance %s's nodes changed while we kept the lock" % instance_name |
3035 | 3033 |
|
3036 |
_CheckInstanceNodeGroups(self.cfg, instance_name, owned_groups) |
|
3034 |
inst_groups = _CheckInstanceNodeGroups(self.cfg, instance_name, |
|
3035 |
owned_groups) |
|
3036 |
|
|
3037 |
assert self.group_uuid in inst_groups, \ |
|
3038 |
"Instance %s has no node in group %s" % (instance_name, self.group_uuid) |
|
3037 | 3039 |
|
3038 | 3040 |
def Exec(self, feedback_fn): |
3039 | 3041 |
"""Verify integrity of cluster disks. |
Also available in: Unified diff