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: Vangelis Koukis <[email protected]>
---
 lib/backend.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/backend.py b/lib/backend.py
index e638e1c..3c7469c 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -1055,7 +1055,7 @@ def VerifyNode(what, cluster_name, all_hvparams):
 
   if constants.NV_LVLIST in what and vm_capable:
     try:
-      val = GetVolumeList(utils.ListVolumeGroups().keys())
+      val = GetVolumeList([what[constants.NV_LVLIST]])
     except RPCFail, err:
       val = str(err)
     result[constants.NV_LVLIST] = val
-- 
2.1.0.rc1

Attachment: signature.asc
Description: Digital signature

Reply via email to