Browse Source

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
Tom Barron 2 years ago
parent
commit
a48b35f0d0
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      devstack/gluster-functions.sh

+ 2
- 2
devstack/gluster-functions.sh View File

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

Loading…
Cancel
Save