I think we can handle this under the existing 'overwrite' config option, if it is set to true.
vgcreate has a --force option which might work, or maybe vgremove needs to be called before creating the vg.
The code that creates the vg is create_lvm_volume_group() in hooks/cinder_utils.py (which calls vgcreate).
I think we can handle this under the existing 'overwrite' config option, if it is set to true.
vgcreate has a --force option which might work, or maybe vgremove needs to be called before creating the vg.
The code that creates the vg is create_ lvm_volume_ group() in hooks/cinder_ utils.py (which calls vgcreate).