Activate health checks for cron containers

Now that we have a script for the health checks, we can create the
associated systemd unit and get container state like we do for the
other services.

Depends-On: https://review.openstack.org/651552
Change-Id: If70893357a3374d238a723385dcf08e1bd9ba45c
This commit is contained in:
Cédric Jeanneret 2019-04-10 12:42:05 +02:00
parent 7cd0e8ff7b
commit 9e4bb8b860
5 changed files with 10 additions and 0 deletions

View File

@ -310,6 +310,8 @@ outputs:
user: root
privileged: false
restart: always
healthcheck:
test: '/usr/share/openstack-tripleo-common/healthcheck/cron cinder'
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -249,6 +249,8 @@ outputs:
user: root
privileged: false
restart: always
healthcheck:
test: '/usr/share/openstack-tripleo-common/healthcheck/cron heat'
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -772,6 +772,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: '/usr/share/openstack-tripleo-common/healthcheck/cron keystone'
command: ['/bin/bash', '-c', '/usr/local/bin/kolla_set_configs && /usr/sbin/crond -n']
volumes:
list_concat:

View File

@ -109,6 +109,8 @@ outputs:
privileged: true
user: root
restart: always
healthcheck:
test: '/usr/share/openstack-tripleo-common/healthcheck/cron'
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -447,6 +447,8 @@ outputs:
user: root
privileged: false
restart: always
healthcheck:
test: '/usr/share/openstack-tripleo-common/healthcheck/cron nova'
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}