c52a89ae04
This change enables the use of Docker healthchecks for core OpenStack services. Also check-failures.sh has been updated to treat containers with unhealthy status as failed. Implements: blueprint container-health-check Change-Id: I79c6b11511ce8af70f77e2f6a490b59b477fefbb
20 lines
699 B
YAML
20 lines
699 B
YAML
---
|
|
- name: Check glance containers
|
|
become: true
|
|
kolla_docker:
|
|
action: "compare_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ item.value.container_name }}"
|
|
image: "{{ item.value.image }}"
|
|
privileged: "{{ item.value.privileged | default(omit) }}"
|
|
environment: "{{ item.value.environment | default(omit) }}"
|
|
volumes: "{{ item.value.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ item.value.dimensions }}"
|
|
healthcheck: "{{ item.value.healthcheck | default(omit) }}"
|
|
when:
|
|
- item.value.host_in_groups | bool
|
|
- item.value.enabled | bool
|
|
with_dict: "{{ glance_services }}"
|
|
notify:
|
|
- "Restart {{ item.key }} container"
|