257ef9fae8
Redis Sentinel modifies its config. Since we now check config in check-containers, the redis_sentintel container is restarted each time. This patch together with kolla patch fixes this issue. Closes-Bug: #1967664 Depends-On: https://review.opendev.org/c/openstack/kolla/+/840954 Change-Id: Ia76329cb851d266cd888f51b7f70a4cdc40e3ac3
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
---
|
|
- name: Restart redis container
|
|
vars:
|
|
service_name: "redis"
|
|
service: "{{ redis_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
healthcheck: "{{ service.healthcheck | default(omit) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart redis-sentinel container
|
|
vars:
|
|
service_name: "redis-sentinel"
|
|
service: "{{ redis_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
environment: "{{ service.environment }}"
|
|
volumes: "{{ service.volumes }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
healthcheck: "{{ service.healthcheck | default(omit) }}"
|
|
when:
|
|
- kolla_action != "config"
|