]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix double [DEFAULT] within config generation 20/10220/3
authorIgor Yozhikov <iyozhikov@mirantis.com>
Fri, 7 Aug 2015 14:12:43 +0000 (17:12 +0300)
committerIgor Yozhikov <iyozhikov@mirantis.com>
Fri, 7 Aug 2015 15:26:19 +0000 (18:26 +0300)
* add old cinder.conf

Change-Id: I10869006588b3387ddf01421eb0f598e7ab5da1b

trusty/debian/changelog
trusty/debian/cinder-common.install
trusty/debian/cinder-common.postinst
trusty/debian/cinder.conf [new file with mode: 0644]

index a38de631b7de70ba92edbf33ac4269cd679d9efe..b6c178b23bce12f5bcefb4c1f0db0576c3b6bf4f 100644 (file)
@@ -1,3 +1,9 @@
+cinder (1:2015.1.1-1~u14.04+mos1) mos7.0; urgency=medium
+
+  * Fix double [DEFAULT] within config generation
+
+ -- Igor Yozhikov <iyozhikov@mirantis.com>  Fri, 07 Aug 2015 17:02:59 +0300
+
 cinder (1:2015.1.0-1~u14.04+mos6) mos7.0; urgency=medium
 
   * Fix build and runtime dependencies
index d9d3e8456e45696be8fca2631da09dc527030c57..ee33f7516930c0d9f5db0d79027b2f6bd1333674 100644 (file)
@@ -1,3 +1,4 @@
+debian/cinder.conf etc/cinder
 etc/cinder/api-paste.ini etc/cinder
 etc/cinder/policy.json etc/cinder
 etc/cinder/rootwrap.conf etc/cinder
index 3fa8dbc1b8082656f3d5cd9bbaa1a232ca781050..fbea5f39020a0a8a2e9db78862b77d051c0846cf 100644 (file)
@@ -79,14 +79,11 @@ if [ "$1" = "configure" ]; then
         oslo-config-generator \
         --namespace oslo_concurrency --namespace oslo_db \
         --namespace oslo_messaging --namespace policy \
-        --namespace keystonemiddleware.auth_token  >> /etc/cinder/cinder.conf.sample
+        --namespace keystonemiddleware.auth_token \
+        | sed '/^\[DEFAULT/d' >> /etc/cinder/cinder.conf.sample
 
     if [ "$?" -ne 0 ]; then
-        echo "cinder configuration file generation fails!"
-    fi
-
-    if [ ! -f "/etc/cinder/cinder.conf" ]; then
-        cp /etc/cinder/cinder.conf.sample /etc/cinder/cinder.conf
+        echo "cinder sample configuration file generation fails!"
     fi
 
     if [ -e /var/lib/cinder/cinder.sqlite ]; then
diff --git a/trusty/debian/cinder.conf b/trusty/debian/cinder.conf
new file mode 100644 (file)
index 0000000..7094033
--- /dev/null
@@ -0,0 +1,11 @@
+[DEFAULT]
+rootwrap_config = /etc/cinder/rootwrap.conf
+api_paste_confg = /etc/cinder/api-paste.ini
+iscsi_helper = tgtadm
+volume_name_template = volume-%s
+volume_group = cinder-volumes
+verbose = True
+auth_strategy = keystone
+state_path = /var/lib/cinder
+lock_path = /var/lock/cinder
+volumes_dir = /var/lib/cinder/volumes