From: Alex Ermolov <aermolov@mirantis.com>
Date: Wed, 8 Apr 2015 12:35:57 +0000 (+0300)
Subject: Remove "cinder-manage db sync" from "cinder-common.postinst"
X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fopenstack-ci%2Ffuel-6.0-updates%2F2014.2;p=openstack-build%2Fcinder-build.git

Remove "cinder-manage db sync" from "cinder-common.postinst"

Closes-Bug: #1422350
Change-Id: Iab721fddbfc8672c562ca1b34adcdb9ffa3edc0e
---

diff --git a/debian/cinder-common.postinst b/debian/cinder-common.postinst
index 8045dbffb..0c89129eb 100644
--- a/debian/cinder-common.postinst
+++ b/debian/cinder-common.postinst
@@ -19,12 +19,6 @@ if [ "$1" = "configure" ]; then
     chmod 0755 /etc/cinder/rootwrap.d
     chown root:root /etc/cinder/rootwrap.conf
 
-    if ! grep -qE "^(sql_)?connection.*" /etc/cinder/cinder.conf || \
-         grep -qE "^(sql_)?connection.*sqlite.*" /etc/cinder/cinder.conf
-    then
-        su -s /bin/sh -c 'cinder-manage db sync' cinder
-    fi
-
     if [ -e /var/lib/cinder/cinder.sqlite ]; then
         chown cinder:cinder /var/lib/cinder/cinder.sqlite
         chmod 0600 /var/lib/cinder/cinder.sqlite