3411b9e420
Config plays do not need to check containers. This avoids skipping tasks during the genconfig action. Ironic and Glance rolling upgrades are handled specially. Swift and Bifrost do not use the handlers at all. Partially-Implements: blueprint performance-improvements Change-Id: I140bf71d62e8f0932c96270d1f08940a5ba4542a
35 lines
925 B
YAML
35 lines
925 B
YAML
---
|
|
# NOTE (duonghq): I break config into 2 phases to prevent new version
|
|
# of service start if node or process in node crash accidentally.
|
|
- include_tasks: config.yml
|
|
when: inventory_hostname == groups["cinder-api"][0]
|
|
|
|
- import_tasks: bootstrap_service.yml
|
|
|
|
- import_tasks: config.yml
|
|
|
|
- import_tasks: check-containers.yml
|
|
|
|
- name: Flush handlers
|
|
meta: flush_handlers
|
|
|
|
- name: Running Cinder online schema migration
|
|
vars:
|
|
cinder_api: "{{ cinder_services['cinder-api'] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
detach: False
|
|
environment:
|
|
KOLLA_OSM:
|
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
image: "{{ cinder_api.image }}"
|
|
labels:
|
|
BOOTSTRAP:
|
|
name: "bootstrap_cinder"
|
|
restart_policy: no
|
|
volumes: "{{ cinder_api.volumes }}"
|
|
run_once: True
|
|
delegate_to: "{{ groups[cinder_api.group][0] }}"
|