Browse Source

Cinder: Make the default volume prov type as thick

Patch @ https://review.openstack.org/#/c/164527/14 changed the default
prov type to thin, which causes the volume backup tests in tempest
to fail, as we don't yet support backup for thin(qcow2) files.

This patch fixes the issue by making the default prov type as thick
for the CI job

Change-Id: I9edd0e0d0a82f08305b62951a87cf45b4df8d2f7
Closes-bug: #1483126
Deepak C Shetty 3 years ago
parent
commit
4a012088b2
2 changed files with 4 additions and 0 deletions
  1. 1
    0
      devstack/gluster-functions.sh
  2. 3
    0
      devstack/settings

+ 1
- 0
devstack/gluster-functions.sh View File

@@ -146,6 +146,7 @@ function configure_cinder_backend_glusterfs {
146 146
     iniset $CINDER_CONF $be_name volume_backend_name $be_name
147 147
     iniset $CINDER_CONF $be_name volume_driver "cinder.volume.drivers.glusterfs.GlusterfsDriver"
148 148
     iniset $CINDER_CONF $be_name glusterfs_shares_config "$CINDER_CONF_DIR/glusterfs-shares-$be_name.conf"
149
+    iniset $CINDER_CONF $be_name nas_volume_prov_type $GLUSTERFS_VOLUME_PROV_TYPE
149 150
 
150 151
     if [[ -n "$CINDER_GLUSTERFS_SHARES" ]]; then
151 152
         CINDER_GLUSTERFS_SHARES=$(echo $CINDER_GLUSTERFS_SHARES | tr ";" "\n")

+ 3
- 0
devstack/settings View File

@@ -11,3 +11,6 @@ ATTACH_ENCRYPTED_VOLUME_AVAILABLE=False
11 11
 TEMPEST_STORAGE_PROTOCOL=glusterfs
12 12
 GLUSTERFS_LOOPBACK_DISK_SIZE=${GLUSTERFS_LOOPBACK_DISK_SIZE:-8G}
13 13
 CINDER_GLUSTERFS_SHARES=${CINDER_GLUSTERFS_SHARES:-"127.0.0.1:/cinder-vol1;127.0.0.1:/cinder-vol2"}
14
+
15
+# Set default volume prov type to thick as we don't yet support backup for thin (qcow2) files
16
+GLUSTERFS_VOLUME_PROV_TYPE=${GLUSTERFS_VOLUME_PROV_TYPE:-thick}

Loading…
Cancel
Save