LVM: fix _create_vg
Call _create_vg instead of create_volume()
to create VGs.
This would break cases where the LVM code
is trying to create VGs on top of PVs.
Closes-Bug:
@@ -155,7 +155,7 @@ class LVM(executor.Executor):
return exists
def _create_vg(self, pv_list):
- cinder.privsep.lvm.create_volume(self.vg_name, pv_list)
+ cinder.privsep.lvm.create_vg(self.vg_name, pv_list)
def _get_thin_pool_free_space(self, vg_name, thin_pool_name):
"""Returns available thin pool free space.
