Revision 294254b1 lib/config.py

b/lib/config.py
667 667
            constants.NDS_PARAMETER_TYPES)
668 668
    _helper_ipolicy("cluster", cluster.ipolicy, True)
669 669

  
670
    if constants.DT_RBD in cluster.diskparams:
671
      access = cluster.diskparams[constants.DT_RBD][constants.RBD_ACCESS]
672
      if access not in constants.DISK_VALID_ACCESS_MODES:
673
        result.append(
674
          "Invalid value of '%s:%s': '%s' (expected one of %s)" % (
675
            constants.DT_RBD, constants.RBD_ACCESS, access,
676
            utils.CommaJoin(constants.DISK_VALID_ACCESS_MODES)
677
          )
678
        )
679

  
670 680
    # per-instance checks
671 681
    for instance_uuid in data.instances:
672 682
      instance = data.instances[instance_uuid]

Also available in: Unified diff