From d6b5b1d869739aefd7357a266566d1b3d0ecf09c Mon Sep 17 00:00:00 2001 From: Duncan Thomas Date: Thu, 17 Apr 2014 13:28:05 -0400 Subject: Make size of loop device used by cinder LVM configurable This was hard-coded to 5 gig, which is useless for anything other than tempest runs and smoke testing block-storage-nfs.yaml has intentionally not been changed, since volume_size_mb is not used in that setup. Cleaning up that code will be done separately. Change-Id: I476b906a8d439d3e6643dd0c214965c5862418e8 --- block-storage.yaml | 6 ++++-- overcloud-source.yaml | 7 ++++++- undercloud-source.yaml | 7 ++++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/block-storage.yaml b/block-storage.yaml index ce60ce26..9cc92fe1 100644 --- a/block-storage.yaml +++ b/block-storage.yaml @@ -40,7 +40,8 @@ Resources: host: {get_input: controller_host} cinder: db: {get_input: cinder_dsn} - volume_size_mb: '5000' + volume_size_mb: + Ref: CinderLVMLoopDeviceSize service-password: Ref: CinderPassword iscsi-helper: @@ -64,7 +65,8 @@ Resources: host: {get_input: controller_host} cinder: db: {get_input: cinder_dsn} - volume_size_mb: '5000' + volume_size_mb: + Ref: CinderLVMLoopDeviceSize service-password: Ref: CinderPassword iscsi-helper: diff --git a/overcloud-source.yaml b/overcloud-source.yaml index ecdf05c0..8d2d5dd4 100644 --- a/overcloud-source.yaml +++ b/overcloud-source.yaml @@ -21,6 +21,10 @@ Parameters: Default: tgtadm Description: The iSCSI helper to use with cinder. Type: String + CinderLVMLoopDeviceSize: + Default: 5000 + Description: The size of the loopback file used by the cinder LVM driver. + Type: Number ExtraConfig: Default: {} Description: | @@ -310,7 +314,8 @@ Resources: Ref: NeutronPublicInterfaceIP cinder: db: mysql://cinder:unset@localhost/cinder - volume_size_mb: '5000' + volume_size_mb: + Ref: CinderLVMLoopDeviceSize service-password: Ref: CinderPassword iscsi-helper: diff --git a/undercloud-source.yaml b/undercloud-source.yaml index 9eaa8786..53567ba9 100644 --- a/undercloud-source.yaml +++ b/undercloud-source.yaml @@ -11,6 +11,10 @@ Parameters: Description: The keystone auth secret. Type: String NoEcho: true + CinderLVMLoopDeviceSize: + Default: 5000 + Description: The size of the loopback file used by the cinder LVM driver. + Type: Number BaremetalArch: Default: i386 Description: The architecture to use in Nova-BM - i386 or amd64. @@ -153,7 +157,8 @@ Resources: Ref: CeilometerPassword cinder: db: mysql://cinder:unset@localhost/cinder - volume_size_mb: '5000' + volume_size_mb: + Ref: CinderLVMLoopDeviceSize completion-handle: Ref: controller0CompletionHandle db-password: unset -- cgit 1.2.3-korg