]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
* Added creation and chown of /var/lib/cinder/{cache,volumes} after the
authorThomas Goirand <thomas@goirand.fr>
Fri, 31 May 2013 09:17:09 +0000 (17:17 +0800)
committerThomas Goirand <thomas@goirand.fr>
Fri, 31 May 2013 09:17:09 +0000 (17:17 +0800)
  removal of the -R flag when doing the chown in openstack-pkg-tools.

Rewritten-From: 170f4e8180edb3a002175c679c6bff0512719e9b

xenial/debian/changelog
xenial/debian/cinder-common.postinst.in

index 25e3e67b6d6d51309a5751d08d49a60e658c7915..1bd7d5f70a75dee54ca000bb25ac3a36a6f8d2af 100644 (file)
@@ -2,6 +2,8 @@ cinder (2013.1.1-2) unstable; urgency=low
 
   * Added if [ -r /usr/share/dbconfig-common/dpkg/prerm ] in the prerm.
   * Ran wrap-and-sort to clean stuff.
+  * Added creation and chown of /var/lib/cinder/{cache,volumes} after the
+    removal of the -R flag when doing the chown in openstack-pkg-tools.
 
  -- Thomas Goirand <zigo@debian.org>  Thu, 23 May 2013 00:08:47 +0800
 
index 2c6ffff4bf04cee4a0240156ffd2a4b0e4a4e654..61ae7e12dd14975bb1c7c52cd4843514027ba3bc 100644 (file)
@@ -12,6 +12,13 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
        . /usr/share/dbconfig-common/dpkg/postinst
 
        pkgos_var_user_group cinder
+
+       # we need few folders with cinder:cinder rights.
+       mkdir -p /var/lib/cinder/cache
+       mkdir -p /var/lib/cinder/volumes
+       chown cinder:cinder /var/lib/cinder/cache
+       chown cinder:cinder /var/lib/cinder/volumes
+
        pkgos_write_new_conf cinder cinder.conf
        pkgos_write_new_conf cinder api-paste.ini
        pkgos_dbc_postinst ${CINDER_CONF} DEFAULT sql_connection cinder $@