Make size of loop device used by cinder LVM configurable
authorDuncan Thomas <duncan.thomas@hp.com>
Thu, 17 Apr 2014 17:28:05 +0000 (13:28 -0400)
committerDuncan Thomas <duncan.thomas@hp.com>
Fri, 25 Apr 2014 12:19:52 +0000 (13:19 +0100)
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
overcloud-source.yaml
undercloud-source.yaml

index ce60ce2..9cc92fe 100644 (file)
@@ -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:
index ecdf05c..8d2d5dd 100644 (file)
@@ -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:
index 9eaa878..53567ba 100644 (file)
@@ -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