Manually set healthchecks for _cron services
authorDan Prince <dprince@redhat.com>
Sat, 26 Aug 2017 02:27:24 +0000 (22:27 -0400)
committerEmilien Macchi <emilien@redhat.com>
Sat, 2 Sep 2017 15:55:13 +0000 (15:55 +0000)
The docker _cron services show up as (unhealthy) due to
them sharing the containers for the OpenStack services.
As such we need to manually override the health checks
for these services. By setting them to /bin/true
the services should show up has healthy.

Change-Id: I46e12bcec226fbe2768c7fe8f0e7719df46401a9
Closes-bug: #1713183
(cherry picked from commit d1aaf0aadf487ccfcdecb47f3cfbf6087401242b)

docker/services/cinder-api.yaml
docker/services/heat-api.yaml
docker/services/keystone.yaml
docker/services/nova-api.yaml

index 519b232..93d09ca 100644 (file)
@@ -163,6 +163,8 @@ outputs:
             user: root
             privileged: false
             restart: always
+            healthcheck:
+              test: /bin/true
             volumes:
               list_concat:
                 - {get_attr: [ContainersCommon, volumes]}
index 54c7bed..6c1621f 100644 (file)
@@ -136,6 +136,8 @@ outputs:
             user: root
             privileged: false
             restart: always
+            healthcheck:
+              test: /bin/true
             volumes:
               list_concat:
                 - {get_attr: [ContainersCommon, volumes]}
index 4c2c1d1..97b4c5d 100644 (file)
@@ -175,6 +175,8 @@ outputs:
             privileged: false
             restart: always
             command: ['/bin/bash', '-c', '/usr/local/bin/kolla_set_configs && /usr/sbin/crond -n']
+            healthcheck:
+              test: /bin/true
             volumes:
               list_concat:
                 - {get_attr: [ContainersCommon, volumes]}
index 37c4da5..7142b70 100644 (file)
@@ -196,6 +196,8 @@ outputs:
             user: root
             privileged: false
             restart: always
+            healthcheck:
+              test: /bin/true
             volumes:
               list_concat:
                 - {get_attr: [ContainersCommon, volumes]}