85879afc0b
Kolla-ansible upgrade task is calling different handlers as deploy task and these handlers are missing healthcheck key. This patch is fixing this. Closes-Bug: #1939679 Change-Id: Id83d20bfd89c27ccf70a3a79938f428cdb5d40fc
22 lines
840 B
YAML
22 lines
840 B
YAML
---
|
|
# NOTE(mgoddard): We use recreate_or_restart_container to cover the case where
|
|
# nova_safety_upgrade is "yes", and we need to recreate all containers.
|
|
|
|
- name: Reload nova super conductor services to remove RPC version pin
|
|
vars:
|
|
service: "{{ nova_services['nova-super-conductor'] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
healthcheck: "{{ service.healthcheck | default(omit) }}"
|
|
when:
|
|
- kolla_action == 'upgrade'
|
|
- inventory_hostname in groups[service.group]
|
|
- service.enabled | bool
|