Revision 3697def0 lib/cmdlib.py

b/lib/cmdlib.py
3498 3498
        nimg.sbp[pnode].append(instance)
3499 3499

  
3500 3500
    es_flags = rpc.GetExclusiveStorageForNodeNames(self.cfg, self.my_node_names)
3501
    es_unset_nodes = []
3502 3501
    # The value of exclusive_storage should be the same across the group, so if
3503 3502
    # it's True for at least a node, we act as if it were set for all the nodes
3504 3503
    self._exclusive_storage = compat.any(es_flags.values())
3505 3504
    if self._exclusive_storage:
3506 3505
      node_verify_param[constants.NV_EXCLUSIVEPVS] = True
3507
      es_unset_nodes = [n for (n, es) in es_flags.items()
3508
                        if not es]
3509

  
3510
    if es_unset_nodes:
3511
      self._Error(constants.CV_EGROUPMIXEDESFLAG, self.group_info.name,
3512
                  "The exclusive_storage flag should be uniform in a group,"
3513
                  " but these nodes have it unset: %s",
3514
                  utils.CommaJoin(utils.NiceSort(es_unset_nodes)))
3515
      self.LogWarning("Some checks required by exclusive storage will be"
3516
                      " performed also on nodes with the flag unset")
3517 3506

  
3518 3507
    # At this point, we have the in-memory data structures complete,
3519 3508
    # except for the runtime information, which we'll gather next

Also available in: Unified diff