Commit eeda5882 authored by Vangelis Koukis's avatar Vangelis Koukis Committed by Klaus Aehlig
Browse files

Only verify LVs in configured VG during cluster verify



During cluster verification, Ganeti would complain about
orphan LVs in VGs other than the one specified in its configuration.

This commit fixes the backend layer for nodegroup verification
to only report LVs in the VG passed by the master node as part
of the node verification parameters.
Signed-off-by: default avatarVangelis Koukis <vkoukis@grnet.gr>
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 733880a6
...@@ -1055,7 +1055,7 @@ def VerifyNode(what, cluster_name, all_hvparams): ...@@ -1055,7 +1055,7 @@ def VerifyNode(what, cluster_name, all_hvparams):
if constants.NV_LVLIST in what and vm_capable: if constants.NV_LVLIST in what and vm_capable:
try: try:
val = GetVolumeList(utils.ListVolumeGroups().keys()) val = GetVolumeList([what[constants.NV_LVLIST]])
except RPCFail, err: except RPCFail, err:
val = str(err) val = str(err)
result[constants.NV_LVLIST] = val result[constants.NV_LVLIST] = val
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment