From 89d38770cebfdf537683c7a40ccc6c40ebd70e46 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Thu, 29 Sep 2016 01:14:19 +0800 Subject: Fix error in Gnocchi service * mount gnocchi volume for gnocchi-api and gnocchi-statsd * fix the failed of gnocchi-api * use gnocchi user when running gnocchi-upgrade * use the app.wsgi file in python path directly, rather than copy it to /var/www/cgi-bin/gnocchi/app file TrivialFix Change-Id: Ie026b8f44cd8e9703bf115cebb4e2d50b114a3a2 --- docker/gnocchi/gnocchi-api/extend_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docker/gnocchi/gnocchi-api') diff --git a/docker/gnocchi/gnocchi-api/extend_start.sh b/docker/gnocchi/gnocchi-api/extend_start.sh index ac06893c8..bda1170e1 100644 --- a/docker/gnocchi/gnocchi-api/extend_start.sh +++ b/docker/gnocchi/gnocchi-api/extend_start.sh @@ -13,6 +13,6 @@ fi # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases # of the KOLLA_BOOTSTRAP variable being set, including empty. if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then - gnocchi-upgrade --logfile /var/log/kolla/gnocchi/gnocchi-upgrade.log + sudo -H -i -u gnocchi gnocchi-upgrade --create-legacy-resource-types --logfile /var/log/kolla/gnocchi/gnocchi-upgrade.log exit 0 fi -- cgit v1.2.3