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: #1915439
Change-Id: I4ada6f9c1bddcdfac61fcd9d3436ef37a7e104cc
This commit is contained in:
Eric Harney 2021-02-11 13:51:06 -05:00
parent cc21a5d95b
commit 02521d19fc
1 changed files with 1 additions and 1 deletions

View File

@ -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.