From f4b7ae95ac24f395e8d7ddd36cba362659fd29b4 Mon Sep 17 00:00:00 2001 From: Martin André Date: Mon, 19 Jan 2015 15:06:28 +0900 Subject: Check for nova DB availability in dependent containers When nova-api start and the nova database hasn't yet been created, it would create it itself, preventing the migration in nova-conductor to run and making it unable to start. This commit ensures that nova-api container will not try to steal nova-conductor's job of creating the nova database. Nova-scheduler reacts differently to the missing database and simply exits with a backtrace. This commit also prevents nova-scheduler to start when the nova database cannot be found. Change-Id: Ib6f7521151815faa7a26ec1d170df5a1cdb7fd63 Related-Bug: #1335804 --- docker/nova-controller/nova-scheduler/start.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docker/nova-controller/nova-scheduler') diff --git a/docker/nova-controller/nova-scheduler/start.sh b/docker/nova-controller/nova-scheduler/start.sh index 71dd848f7..da7f5f32a 100755 --- a/docker/nova-controller/nova-scheduler/start.sh +++ b/docker/nova-controller/nova-scheduler/start.sh @@ -4,4 +4,7 @@ set -e . /opt/kolla/config-nova.sh +check_required_vars NOVA_DB_NAME +check_for_db $NOVA_DB_NAME + exec /usr/bin/nova-scheduler -- cgit v1.2.3