Revision a5485ffc

b/lib/cmdlib.py
1555 1555
  """Verifies the cluster config.
1556 1556

  
1557 1557
  """
1558
  REQ_BGL = True
1558
  REQ_BGL = False
1559 1559

  
1560 1560
  def _VerifyHVP(self, hvp_data):
1561 1561
    """Verifies locally the syntax of the hypervisor parameters.
......
1572 1572
        self._ErrorIf(True, self.ECLUSTERCFG, None, msg % str(err))
1573 1573

  
1574 1574
  def ExpandNames(self):
1575
    # Information can be safely retrieved as the BGL is acquired in exclusive
1576
    # mode
1577
    assert locking.BGL in self.owned_locks(locking.LEVEL_CLUSTER)
1575
    self.needed_locks = dict.fromkeys(locking.LEVELS, locking.ALL_SET)
1576
    self.share_locks = _ShareAll()
1577

  
1578
  def CheckPrereq(self):
1579
    """Check prerequisites.
1580

  
1581
    """
1582
    # Retrieve all information
1578 1583
    self.all_group_info = self.cfg.GetAllNodeGroupsInfo()
1579 1584
    self.all_node_info = self.cfg.GetAllNodesInfo()
1580 1585
    self.all_inst_info = self.cfg.GetAllInstancesInfo()
1581
    self.needed_locks = {}
1582 1586

  
1583 1587
  def Exec(self, feedback_fn):
1584 1588
    """Verify integrity of cluster, performing various test on nodes.

Also available in: Unified diff