Revision 50ef6a41 qa/qa_cluster.py

b/qa/qa_cluster.py
626 626
def TestClusterRepairDiskSizes():
627 627
  """gnt-cluster repair-disk-sizes"""
628 628
  AssertCommand(["gnt-cluster", "repair-disk-sizes"])
629

  
630

  
631
def TestSetExclStorCluster(newvalue):
632
  """Set the exclusive_storage node parameter at the cluster level.
633

  
634
  @type newvalue: bool
635
  @param newvalue: New value of exclusive_storage
636
  @rtype: bool
637
  @return: The old value of exclusive_storage
638

  
639
  """
640
  oldvalue = _GetBoolClusterField("exclusive_storage")
641
  AssertCommand(["gnt-cluster", "modify", "--node-parameters",
642
                 "exclusive_storage=%s" % newvalue])
643
  effvalue = _GetBoolClusterField("exclusive_storage")
644
  if effvalue != newvalue:
645
    raise qa_error.Error("exclusive_storage has the wrong value: %s instead"
646
                         " of %s" % (effvalue, newvalue))
647
  return oldvalue

Also available in: Unified diff