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
| ... | ... |
@@ -5,6 +5,7 @@ Anthony Young <sleepsonthefloor@gmail.com> |
| 5 | 5 |
Armando Migliaccio <armando.migliaccio@eu.citrix.com> |
| 6 | 6 |
Brad Hall <brad@nicira.com> |
| 7 | 7 |
Chmouel Boudjnah <chmouel@chmouel.com> |
| 8 |
+Dan Prince <dprince@redhat.com> |
|
| 8 | 9 |
Dean Troyer <dtroyer@gmail.com> |
| 9 | 10 |
Devin Carlen <devin.carlen@gmail.com> |
| 10 | 11 |
Eddie Hebert <edhebert@gmail.com> |
| ... | ... |
@@ -1037,6 +1037,9 @@ if is_service_enabled g-reg; then |
| 1037 | 1037 |
|
| 1038 | 1038 |
GLANCE_POLICY_JSON=$GLANCE_CONF_DIR/policy.json |
| 1039 | 1039 |
cp $GLANCE_DIR/etc/policy.json $GLANCE_POLICY_JSON |
| 1040 |
+ |
|
| 1041 |
+ $GLANCE_DIR/bin/glance-manage db_sync |
|
| 1042 |
+ |
|
| 1040 | 1043 |
fi |
| 1041 | 1044 |
|
| 1042 | 1045 |
# Quantum (for controller or agent nodes) |