Skip to content

Commit c342243

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Add ability to specify cinder lvm_type option"
2 parents 4ff5e2b + ce8e6f6 commit c342243

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

lib/cinder

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ CINDER_SERVICE_PORT=${CINDER_SERVICE_PORT:-8776}
6666
CINDER_SERVICE_PORT_INT=${CINDER_SERVICE_PORT_INT:-18776}
6767
CINDER_SERVICE_PROTOCOL=${CINDER_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}
6868

69+
# What type of LVM device should Cinder use for LVM backend
70+
# Defaults to default, which is thick, the other valid choice
71+
# is thin, which as the name implies utilizes lvm thin provisioning.
72+
CINDER_LVM_TYPE=${CINDER_LVM_TYPE:-default}
6973

7074
# Default backends
7175
# The backend format is type:name where type is one of the supported backend

lib/cinder_backends/lvm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function configure_cinder_backend_lvm {
5151
iniset $CINDER_CONF $be_name volume_driver "cinder.volume.drivers.lvm.LVMVolumeDriver"
5252
iniset $CINDER_CONF $be_name volume_group $VOLUME_GROUP_NAME-$be_name
5353
iniset $CINDER_CONF $be_name iscsi_helper "$CINDER_ISCSI_HELPER"
54+
iniset $CINDER_CONF $be_name lvm_type "$CINDER_LVM_TYPE"
5455

5556
if [[ "$CINDER_SECURE_DELETE" == "False" ]]; then
5657
iniset $CINDER_CONF $be_name volume_clear none

0 commit comments

Comments
 (0)