From 0f39c5df1442a9d72c55408f76ad0480ab7939a4 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Wed, 13 Jun 2012 15:17:19 -0400 Subject: [PATCH] Run glance-manage db_sync. Updates stack.sh so that it runs glance-manage db_sync. This should pave the way for us to default Glance DB auto-creation to False in Glance. Previously we would rely on glance-registry (and glance-api in Folsom) to auto create the DB for us. I've found this to be a bit racey so explicitly using glance-manage seems the way to go. Change-Id: I61f165db6e0591e819d12aa2e2a4d336ad1172c3 --- AUTHORS | 1 + stack.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/AUTHORS b/AUTHORS index ff05f821a9..b5f972fd99 100644 --- a/AUTHORS +++ b/AUTHORS @@ -5,6 +5,7 @@ Anthony Young Armando Migliaccio Brad Hall Chmouel Boudjnah +Dan Prince Dean Troyer Devin Carlen Eddie Hebert diff --git a/stack.sh b/stack.sh index 7faa8f650e..e73d3e417c 100755 --- a/stack.sh +++ b/stack.sh @@ -1037,6 +1037,9 @@ if is_service_enabled g-reg; then GLANCE_POLICY_JSON=$GLANCE_CONF_DIR/policy.json cp $GLANCE_DIR/etc/policy.json $GLANCE_POLICY_JSON + + $GLANCE_DIR/bin/glance-manage db_sync + fi # Quantum (for controller or agent nodes)