Fix lvcreate failure in glusterfs with manila

When running with the manila plugin on ubuntu Xenial,
devstack fails with a message when attempting to create
a logical volume within the glusterfs VG with a message
about insufficient allocatable extents [1].

Change the hard-coded number of extents supplied to
the lvcreate command to a percentage of the VG.

Closes-bug: #165238

Change-Id: Ia53f0e1b9b80ae0012d720a3f7b3696cadbd843c
This commit is contained in:
Tom Barron 2016-12-23 15:41:47 -05:00
parent 1d46d65cf3
commit a48b35f0d0
1 changed files with 2 additions and 2 deletions

View File

@ -214,8 +214,8 @@ function _create_thin_lv_pool {
# Create a Volume Group # Create a Volume Group
init_lvm_volume_group $GLUSTERFS_VG_NAME 20G init_lvm_volume_group $GLUSTERFS_VG_NAME 20G
# Create a think pool # Create a thin pool
sudo lvcreate -l 5110 -T $GLUSTERFS_VG_NAME/$GLUSTERFS_THIN_POOL_NAME sudo lvcreate -l 99%VG -T $GLUSTERFS_VG_NAME/$GLUSTERFS_THIN_POOL_NAME
} }
# Creating Thin LV # Creating Thin LV