Leave the VG alone

The configured volume group does not change during an upgrade.

This allows the generalized Cinder backend support to simply
utilize the existing LVM back-end in place rather than re-create
it after an upgrade.

Change-Id: I92d2b0c2dc6ea05dda3c8cf27e686a8eb98f326c
This commit is contained in:
Dean Troyer 2014-07-07 09:33:08 -05:00
parent 03182c1562
commit bc014ab131

View File

@ -92,15 +92,6 @@ if [[ -n "$SCREEN" ]]; then
done
fi
# Unplumb the LVM backing file
sudo vgchange -a n stack-volumes
DEV=$(sudo losetup -j $DATA_DIR/${VOLUME_GROUP}-backing-file | awk -F':' '/backing-file/ { print $1 }')
if [[ "x" != "x$DEV" ]]; then
sudo losetup -d $DEV
else
echo "No device for backing volume"
fi
# Unplumb the Swift data
sudo umount ${DATA_DIR}/swift/drives/images/swift.img || /bin/true