Revision d9f99d88 lib/cmdlib.py

b/lib/cmdlib.py
11004 11004

  
11005 11005
    """
11006 11006
    assert self.needed_locks[locking.LEVEL_NODEGROUP]
11007
    assert (frozenset(self.acquired_locks[locking.LEVEL_NODE]) ==
11007
    assert (frozenset(self.glm.list_owned(locking.LEVEL_NODE)) ==
11008 11008
            frozenset(self.op.nodes))
11009 11009

  
11010 11010
    expected_locks = (set([self.group_uuid]) |
11011 11011
                      self.cfg.GetNodeGroupsFromNodes(self.op.nodes))
11012
    actual_locks = self.acquired_locks[locking.LEVEL_NODEGROUP]
11012
    actual_locks = self.glm.list_owned(locking.LEVEL_NODEGROUP)
11013 11013
    if actual_locks != expected_locks:
11014 11014
      raise errors.OpExecError("Nodes changed groups since locks were acquired,"
11015 11015
                               " current groups are '%s', used to be '%s'" %

Also available in: Unified diff