Revision bb935d8d lib/cmdlib/cluster.py
b/lib/cmdlib/cluster.py | ||
---|---|---|
1721 | 1721 |
if vg_name is None: |
1722 | 1722 |
return |
1723 | 1723 |
|
1724 |
# Only exlcusive storage needs this kind of checks
|
|
1724 |
# Only exclusive storage needs this kind of checks
|
|
1725 | 1725 |
if not self._exclusive_storage: |
1726 | 1726 |
return |
1727 | 1727 |
|
... | ... | |
1731 | 1731 |
vals = filter((lambda ni: ni.pv_min is not None), node_image.values()) |
1732 | 1732 |
if not vals: |
1733 | 1733 |
return |
1734 |
(pvmin, minnode) = min((ni.pv_min, ni.name) for ni in vals)
|
|
1735 |
(pvmax, maxnode) = max((ni.pv_max, ni.name) for ni in vals)
|
|
1734 |
(pvmin, minnode_uuid) = min((ni.pv_min, ni.uuid) for ni in vals)
|
|
1735 |
(pvmax, maxnode_uuid) = max((ni.pv_max, ni.uuid) for ni in vals)
|
|
1736 | 1736 |
bad = utils.LvmExclusiveTestBadPvSizes(pvmin, pvmax) |
1737 | 1737 |
self._ErrorIf(bad, constants.CV_EGROUPDIFFERENTPVSIZE, self.group_info.name, |
1738 | 1738 |
"PV sizes differ too much in the group; smallest (%s MB) is" |
1739 | 1739 |
" on %s, biggest (%s MB) is on %s", |
1740 |
pvmin, minnode, pvmax, maxnode) |
|
1740 |
pvmin, self.cfg.GetNodeName(minnode_uuid), |
|
1741 |
pvmax, self.cfg.GetNodeName(maxnode_uuid)) |
|
1741 | 1742 |
|
1742 | 1743 |
def _VerifyNodeBridges(self, ninfo, nresult, bridges): |
1743 | 1744 |
"""Check the node bridges. |
Also available in: Unified diff