summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-01-04 19:07:36 +0000
committerGerrit Code Review <review@openstack.org>2019-01-04 19:07:36 +0000
commitd1b2ecfbbe94f4e849029d83c3b9d1b3d7766981 (patch)
tree5b0b70fba6b9bde791a65ee672e50f6607199bcc
parent77fe6ae7d62b5541566852f39a2589977e2aab78 (diff)
parent49e68f84093bb0765f44523c9333d3d86178d49a (diff)
Merge "devstack: Do a vgscan before checking if the VG is there"
-rwxr-xr-xdevstack/plugin.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index 696fdea..c9117a3 100755
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -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
535 SHARE_BACKING_FILE=${SHARE_BACKING_FILE:-$DATA_DIR/${SHARE_GROUP}-backing-file} 536 SHARE_BACKING_FILE=${SHARE_BACKING_FILE:-$DATA_DIR/${SHARE_GROUP}-backing-file}