Skip to content
Snippets Groups Projects
Commit ac616533 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Cinder bootstrap container is not initializing the DB"

parents 718db54f 3c516568
No related branches found
No related tags found
No related merge requests found
......@@ -58,11 +58,11 @@
insecure_registry: "{{ docker_insecure_registry }}"
name: bootstrap_cinder
image: "{{ cinder_api_image_full }}"
volumes: "{{ node_config_directory }}/cinder/:/opt/kolla/cinder/:ro"
volumes: "{{ node_config_directory }}/cinder-api/:/opt/kolla/cinder-api/:ro"
volumes_from:
- cinder_data
env:
KOLLA_BOOSTRAP:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
run_once: True
when: database.stdout.find('localhost | SUCCESS => ') != -1 and (database.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed
......
......@@ -14,7 +14,7 @@ set_configs
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
su -s /bin/sh -c "cinder-manage db_sync" cinder
su -s /bin/sh -c "cinder-manage db sync" cinder
exit 0
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment