From a48b35f0d01f20cc99a9212d3028acb3a4275f9e Mon Sep 17 00:00:00 2001 From: Tom Barron <tpb@dyncloud.net> Date: Fri, 23 Dec 2016 15:41:47 -0500 Subject: [PATCH] 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 --- devstack/gluster-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devstack/gluster-functions.sh b/devstack/gluster-functions.sh index 5a39a73..05a872d 100755 --- a/devstack/gluster-functions.sh +++ b/devstack/gluster-functions.sh @@ -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