Revision 33c730a2

b/doc/rapi.rst
2092 2092
``GET``
2093 2093
~~~~~~~
2094 2094

  
2095
.. pyassert::
2095
FIXME: enable ".. pyassert::" again when all storage types are
2096
implemented::
2096 2097

  
2097 2098
   constants.VALID_STORAGE_TYPES == set([constants.ST_FILE,
2098 2099
                                         constants.ST_LVM_PV,
b/lib/constants.py
376 376
ST_FILE = "file"
377 377
ST_LVM_PV = "lvm-pv"
378 378
ST_LVM_VG = "lvm-vg"
379
ST_DISKLESS = "diskless"
380
ST_SHARED_FILE = "sharedfile"
381
ST_BLOCK = "blockdev"
382
ST_RADOS = "rados"
383
ST_EXT = "ext"
384

  
385
VALID_STORAGE_TYPES = compat.UniqueFrozenset([
386
  ST_FILE,
387
  ST_LVM_PV,
388
  ST_LVM_VG,
389
  ST_DISKLESS,
390
  ST_SHARED_FILE,
391
  ST_BLOCK,
392
  ST_RADOS,
393
  ST_EXT,
394
  ])
395

  
396
# Per default, only lvm is enabled.
397
DEFAULT_ENABLED_STORAGE_TYPES = compat.UniqueFrozenset([
398
  ST_LVM_VG,
399
  ])
379 400

  
380 401
# Storage fields
381 402
# first two are valid in LU context only, not passed to backend
......
401 422
  SF_ALLOCATABLE,
402 423
  ])
403 424

  
404
VALID_STORAGE_TYPES = compat.UniqueFrozenset([
405
  ST_FILE,
406
  ST_LVM_PV,
407
  ST_LVM_VG,
408
  ])
409

  
410 425
MODIFIABLE_STORAGE_FIELDS = {
411 426
  ST_LVM_PV: frozenset([SF_ALLOCATABLE]),
412 427
  }
b/qa/qa_node.py
114 114
  """gnt-node storage"""
115 115
  master = qa_config.GetMasterNode()
116 116

  
117
  for storage_type in constants.VALID_STORAGE_TYPES:
117
  # FIXME: test all storage_types in constants.VALID_STORAGE_TYPES
118
  # as soon as they are implemented.
119
  for storage_type in [constants.ST_FILE, constants.ST_LVM_VG,
120
                       constants.ST_LVM_PV]:
118 121

  
119 122
    cmd = ["gnt-node", "list-storage", "--storage-type", storage_type]
120 123

  

Also available in: Unified diff