Make rpc.call_lv_list() VG-aware
authorDmitry Chernyak <dmi.chernyak@gmail.com>
Fri, 26 Nov 2010 19:57:00 +0000 (22:57 +0300)
committerIustin Pop <iustin@google.com>
Thu, 2 Dec 2010 13:46:42 +0000 (13:46 +0000)
commit84d7e26b145078a01dcc858bb11bc46649772de0
tree6c87ffc90459f182eecc3354d266069269ea898a
parentd1b6262e17c69477bde5987f605d7ab94e033503
Make rpc.call_lv_list() VG-aware

Changes to backend.GetVolumeList():
- now accepts a list of VGs instead of one VG
- returns LV names in the form "vg_name/lv_name"

Corresponding changes are done in: VerifyDisks, VerifyNode,
LUCreateInstance (for both disk creation and adoption cases)

Now the syntax
"gnt-instance add ... --disk N:adopt=LV_NAME,vg=VG_NAME"
as was described earlier in the man page works.

Signed-off-by: Dmitry Chernyak <dmi.chernyak@gmail.com>
[iustin@google.com: QA changes for reserved LVs, style fixes and a few
 extra error checks, reviewed by hansmi/rn]
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/backend.py
lib/cmdlib.py
lib/objects.py
qa/qa_cluster.py