Load the metadata definitions during Glance bootstrap

Change-Id: I4e6ecbcfbd11a516b1ddc2fe7a62f20b8313ae07
Closes-bug: #1584698
This commit is contained in:
Christian Berendt 2016-05-28 10:54:57 +02:00
parent c518baafd1
commit c37d1d25bc
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,8 @@
- container_envs.results - container_envs.results
- check_results.results - check_results.results
- include: bootstrap_service.yml
- include: start.yml - include: start.yml
when: remove_containers.changed when: remove_containers.changed

View File

@ -4,6 +4,7 @@
# of the KOLLA_BOOTSTRAP variable being set, including empty. # of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
glance-manage db_sync glance-manage db_sync
glance-manage db_load_metadefs
sudo chown -R glance: /var/lib/glance/ sudo chown -R glance: /var/lib/glance/
exit 0 exit 0
fi fi