From c37d1d25bc39a9b5a09a03093e830abbaef27658 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Sat, 28 May 2016 10:54:57 +0200 Subject: [PATCH] Load the metadata definitions during Glance bootstrap Change-Id: I4e6ecbcfbd11a516b1ddc2fe7a62f20b8313ae07 Closes-bug: #1584698 --- ansible/roles/glance/tasks/do_reconfigure.yml | 2 ++ docker/glance/glance-api/extend_start.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/ansible/roles/glance/tasks/do_reconfigure.yml b/ansible/roles/glance/tasks/do_reconfigure.yml index ae685dd0e5..d9e1678675 100644 --- a/ansible/roles/glance/tasks/do_reconfigure.yml +++ b/ansible/roles/glance/tasks/do_reconfigure.yml @@ -43,6 +43,8 @@ - container_envs.results - check_results.results +- include: bootstrap_service.yml + - include: start.yml when: remove_containers.changed diff --git a/docker/glance/glance-api/extend_start.sh b/docker/glance/glance-api/extend_start.sh index 4b99201c9c..be4b839611 100644 --- a/docker/glance/glance-api/extend_start.sh +++ b/docker/glance/glance-api/extend_start.sh @@ -4,6 +4,7 @@ # of the KOLLA_BOOTSTRAP variable being set, including empty. if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then glance-manage db_sync + glance-manage db_load_metadefs sudo chown -R glance: /var/lib/glance/ exit 0 fi