2016-01-26 11:22:54 -06:00
|
|
|
---
|
2019-03-20 18:51:45 +00:00
|
|
|
# NOTE (duonghq): I break config into 2 phases to prevent new version
|
2017-12-21 18:18:26 +07:00
|
|
|
# of service start if node or process in node crash accidentally.
|
2018-07-23 12:58:02 +08:00
|
|
|
- include_tasks: config.yml
|
2017-12-21 18:18:26 +07:00
|
|
|
when: inventory_hostname == groups["cinder-api"][0]
|
2016-02-17 03:04:56 -05:00
|
|
|
|
2018-07-23 12:58:02 +08:00
|
|
|
- include_tasks: bootstrap_service.yml
|
2016-02-17 03:04:56 -05:00
|
|
|
|
2018-07-23 12:58:02 +08:00
|
|
|
- include_tasks: config.yml
|
2017-12-21 18:18:26 +07:00
|
|
|
|
2017-01-19 12:42:27 +08:00
|
|
|
- name: Flush handlers
|
|
|
|
meta: flush_handlers
|
2017-12-21 18:18:26 +07:00
|
|
|
|
|
|
|
- name: Running Cinder online schema migration
|
|
|
|
vars:
|
|
|
|
cinder_api: "{{ cinder_services['cinder-api'] }}"
|
2018-05-30 11:25:19 +07:00
|
|
|
become: true
|
2017-12-21 18:18:26 +07:00
|
|
|
kolla_docker:
|
|
|
|
action: "start_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
|
|
|
detach: False
|
|
|
|
environment:
|
|
|
|
KOLLA_OSM:
|
|
|
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
|
|
MAX_NUMBER: "{{ cinder_max_number_osm | default(10) }}"
|
|
|
|
image: "{{ cinder_api.image }}"
|
|
|
|
labels:
|
|
|
|
BOOTSTRAP:
|
|
|
|
name: "bootstrap_cinder"
|
2019-07-12 17:15:42 +02:00
|
|
|
restart_policy: no
|
2017-12-21 18:18:26 +07:00
|
|
|
volumes: "{{ cinder_api.volumes }}"
|
|
|
|
run_once: True
|
|
|
|
delegate_to: "{{ groups[cinder_api.group][0] }}"
|