Merge "devstack: Do a vgscan before checking if the VG is there"

This commit is contained in:
Zuul 2019-01-04 19:07:36 +00:00 committed by Gerrit Code Review
commit d1b2ecfbbe
1 changed files with 1 additions and 0 deletions

View File

@ -530,6 +530,7 @@ function create_custom_share_types {
# configure_backing_file - Set up backing file for LVM
function configure_backing_file {
sudo vgscan
if ! sudo vgs $SHARE_GROUP; then
if [ "$CONFIGURE_BACKING_FILE" = "True" ]; then
SHARE_BACKING_FILE=${SHARE_BACKING_FILE:-$DATA_DIR/${SHARE_GROUP}-backing-file}