Commit f7c94c17 authored by Apollon Oikonomopoulos's avatar Apollon Oikonomopoulos Committed by Iustin Pop
Browse files

Fix disk adoption breakage

Disk adoption is currently broken by 84d7e26b, which added multiple LVM
volume group support. This patch fixes the calls to rpc.call_vg_list,
which are multi-node calls but were handled as single-node calls in

Signed-off-by: default avatarApollon Oikonomopoulos <>
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarIustin Pop <>
parent 2656091a
......@@ -2425,7 +2425,8 @@ class LUClusterVerifyDisks(NoHooksLU):
return result
vg_names = self.rpc.call_vg_list(nodes)
vg_names.Raise("Cannot get list of VGs")
for node in nodes:
vg_names[node].Raise("Cannot get list of VGs")
for node in nodes:
# node_volume
......@@ -7444,12 +7445,11 @@ class LUInstanceCreate(LogicalUnit):
raise errors.OpPrereqError("LV named %s used by another instance" %
lv_name, errors.ECODE_NOTUNIQUE)
vg_names = self.rpc.call_vg_list([])
vg_names = self.rpc.call_vg_list([])[]
vg_names.Raise("Cannot get VG information from node %s" %
node_lvs = self.rpc.call_lv_list([],
node_lvs.Raise("Cannot get LV information from node %s" %
node_lvs = node_lvs.payload
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