diff options
authorThomas Bechtold <>2019-01-04 12:01:34 +0100
committerThomas Bechtold <>2019-01-04 12:01:34 +0100
commit49e68f84093bb0765f44523c9333d3d86178d49a (patch)
parent7665ff44047fcc5df9fde749af6f38796ab36190 (diff)
devstack: Do a vgscan before checking if the VG is there
There might be a rescan for volume groups needed before checking if the volume group is already there. Otherwise, the check for the volume group fails which means the code tries to create the volume, but that fails then because the volume is already there. Here is the devstack run log: [...] sudo losetup -f --show /opt/stack/data/lvm-shares-backing-file DEV=/dev/loop2 sudo vgs lvm-shares Volume group "lvm-shares" not found Cannot process volume group lvm-shares sudo vgcreate lvm-shares /dev/loop2 Physical volume '/dev/loop2' is already in volume group 'lvm-shares' Unable to add physical volume '/dev/loop2' to volume group 'lvm-shares' /dev/loop2: physical volume not initialized. exit_trap [...] Change-Id: I0189580ae40b180249fd5846aa986052e44ce2c2
Notes (review): Code-Review+2: Tom Barron <> Code-Review+2: Goutham Pacha Ravi <> Workflow+1: Goutham Pacha Ravi <> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 04 Jan 2019 19:07:36 +0000 Reviewed-on: Project: openstack/manila Branch: refs/heads/master
1 files changed, 1 insertions, 0 deletions
diff --git a/devstack/ b/devstack/
index 696fdea..c9117a3 100755
--- a/devstack/
+++ b/devstack/
@@ -530,6 +530,7 @@ function create_custom_share_types {
530 530
531# configure_backing_file - Set up backing file for LVM 531# configure_backing_file - Set up backing file for LVM
532function configure_backing_file { 532function configure_backing_file {
533 sudo vgscan
533 if ! sudo vgs $SHARE_GROUP; then 534 if ! sudo vgs $SHARE_GROUP; then
534 if [ "$CONFIGURE_BACKING_FILE" = "True" ]; then 535 if [ "$CONFIGURE_BACKING_FILE" = "True" ]; then