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:
parent
1d46d65cf3
commit
a48b35f0d0
@ -214,8 +214,8 @@ function _create_thin_lv_pool {
|
||||
# Create a Volume Group
|
||||
init_lvm_volume_group $GLUSTERFS_VG_NAME 20G
|
||||
|
||||
# Create a think pool
|
||||
sudo lvcreate -l 5110 -T $GLUSTERFS_VG_NAME/$GLUSTERFS_THIN_POOL_NAME
|
||||
# Create a thin pool
|
||||
sudo lvcreate -l 99%VG -T $GLUSTERFS_VG_NAME/$GLUSTERFS_THIN_POOL_NAME
|
||||
}
|
||||
|
||||
# Creating Thin LV
|
||||
|
Loading…
x
Reference in New Issue
Block a user