Merge "Fix kolla-ansible stop with heterogeneous hosts"

This commit is contained in:
Zuul 2020-03-25 15:09:30 +00:00 committed by Gerrit Code Review
commit c9ca7e5529
3 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,7 @@ common_run: False
common_services: common_services:
fluentd: fluentd:
container_name: fluentd container_name: fluentd
group: all
enabled: "{{ enable_fluentd | bool }}" enabled: "{{ enable_fluentd | bool }}"
image: "{{ fluentd_image_full }}" image: "{{ fluentd_image_full }}"
environment: environment:
@ -16,6 +17,7 @@ common_services:
dimensions: "{{ fluentd_dimensions }}" dimensions: "{{ fluentd_dimensions }}"
kolla-toolbox: kolla-toolbox:
container_name: kolla_toolbox container_name: kolla_toolbox
group: all
enabled: True enabled: True
image: "{{ kolla_toolbox_image_full }}" image: "{{ kolla_toolbox_image_full }}"
environment: environment:
@ -27,6 +29,7 @@ common_services:
# DUMMY_ENVIRONMENT is needed because empty environment is not supported # DUMMY_ENVIRONMENT is needed because empty environment is not supported
cron: cron:
container_name: cron container_name: cron
group: all
enabled: True enabled: True
image: "{{ cron_image_full }}" image: "{{ cron_image_full }}"
environment: environment:

View File

@ -8,6 +8,5 @@
common_options: "{{ docker_common_options }}" common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}" name: "{{ service.container_name }}"
when: when:
- service.enabled | bool
- service.container_name not in skip_stop_containers - service.container_name not in skip_stop_containers
with_dict: "{{ project_services }}" with_dict: "{{ project_services | select_services_enabled_and_mapped_to_host }}"

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes an issue with the ``kolla-ansible stop`` command where it may fail
trying to stop non-existent containers. `LP#1868596
<https://bugs.launchpad.net/kolla-ansible/+bug/1868596>`__.