kolla-ansible/ansible/roles/cinder/tasks/upgrade.yml
Mark Goddard 58d6dc3bcf Don't pull images during upgrade
When adding the rolling upgrade support, some upgrade procedures were
modified to pull images explicitly. This is done inconsistently between
services, and is a change in behaviour from Rocky and earlier releases.

This change removes all image pulling from upgrade tasks.

Change-Id: Id0fed17714235e1daed60b83b1f30620f097eb97
2019-03-20 18:51:45 +00:00

34 lines
956 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]
- include_tasks: bootstrap_service.yml
- include_tasks: config.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 }}"
MAX_NUMBER: "{{ cinder_max_number_osm | default(10) }}"
image: "{{ cinder_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_cinder"
restart_policy: "never"
volumes: "{{ cinder_api.volumes }}"
run_once: True
delegate_to: "{{ groups[cinder_api.group][0] }}"