Revision 22d9752a lib/cmdlib.py

b/lib/cmdlib.py
3371 3371
          nimg.sbp[pnode] = []
3372 3372
        nimg.sbp[pnode].append(instance)
3373 3373

  
3374
    es_flags = rpc.GetExclusiveStorageForNodeNames(self.cfg, self.my_node_names)
3375
    es_unset_nodes = []
3376
    # The value of exclusive_storage should be the same across the group
3377
    if compat.any(es_flags.values()):
3378
      es_unset_nodes = [n for (n, es) in es_flags.items()
3379
                        if not es]
3380

  
3381
    if es_unset_nodes:
3382
      self._Error(constants.CV_EGROUPMIXEDESFLAG, self.group_info.name,
3383
                  "The exclusive_storage flag should be uniform in a group,"
3384
                  " but these nodes have it unset: %s",
3385
                  utils.CommaJoin(utils.NiceSort(es_unset_nodes)))
3386
      self.LogWarning("Some checks required by exclusive storage will be"
3387
                      " performed also on nodes with the flag unset")
3388

  
3374 3389
    # At this point, we have the in-memory data structures complete,
3375 3390
    # except for the runtime information, which we'll gather next
3376 3391

  

Also available in: Unified diff