Revision 6a0f22e1 qa/qa_config.py

b/qa/qa_config.py
35 35

  
36 36
_INSTANCE_CHECK_KEY = "instance-check"
37 37
_ENABLED_HV_KEY = "enabled-hypervisors"
38
# Key to store the cluster-wide run-time value of the exclusive storage flag
39
_EXCLUSIVE_STORAGE_KEY = "_exclusive_storage"
38 40

  
39 41

  
40 42
cfg = {}
......
242 244
  inst["_template"] = template
243 245

  
244 246

  
247
def SetExclusiveStorage(value):
248
  """Set the expected value of the exclusive_storage flag for the cluster.
249

  
250
  """
251
  cfg[_EXCLUSIVE_STORAGE_KEY] = bool(value)
252

  
253

  
254
def GetExclusiveStorage():
255
  """Get the expected value of the exclusive_storage flag for the cluster.
256

  
257
  """
258
  val = cfg.get(_EXCLUSIVE_STORAGE_KEY)
259
  assert val is not None
260
  return val
261

  
262

  
245 263
def AcquireNode(exclude=None):
246 264
  """Returns the least used node.
247 265

  

Also available in: Unified diff