Explicitly set healthcheck command.

We were setting them in the Dockerfile's previously.  However this
caused the healtcheck commands to always run regardless of which
process we were running in the container.  This caused 'unhealthy'
containers at times they were never intended to be checked.  This
change makes it so they are explicitly set.

Change-Id: I7bc12d236b3cc7a52d3e6aa706fd04675dad3a9a
This commit is contained in:
Ian Main 2017-09-11 21:59:33 -04:00
parent 30ffd14b21
commit 627971b2a1
42 changed files with 87 additions and 9 deletions

View File

@ -96,6 +96,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -96,6 +96,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -96,6 +96,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -91,6 +91,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -92,6 +92,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -100,6 +100,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -168,8 +168,6 @@ outputs:
user: root
privileged: false
restart: always
healthcheck:
test: /bin/true
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -115,6 +115,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -102,6 +102,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -124,6 +124,8 @@ outputs:
net: host
privileged: true
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -173,6 +173,8 @@ outputs:
image: *mysql_image
restart: always
net: host
healthcheck:
test: /openstack/healthcheck
volumes: *mysql_volumes
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS

View File

@ -169,6 +169,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes: *glance_volumes
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS

View File

@ -102,6 +102,8 @@ outputs:
# NOTE(mandre) kolla image changes the user to 'heat', we need it
# to be root to run httpd
user: root
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -113,6 +113,8 @@ outputs:
# NOTE(mandre) kolla image changes the user to 'heat', we need it
# to be root to run httpd
user: root
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}
@ -139,8 +141,6 @@ outputs:
user: root
privileged: false
restart: always
healthcheck:
test: /bin/true
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -120,6 +120,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -124,6 +124,8 @@ outputs:
net: host
user: root
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -108,6 +108,8 @@ outputs:
net: host
privileged: true
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -83,6 +83,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -162,6 +162,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes: *keystone_volumes
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
@ -179,8 +181,6 @@ 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]}

View File

@ -91,6 +91,8 @@ outputs:
image: {get_param: DockerManilaSchedulerImage}
net: host
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -97,6 +97,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -97,6 +97,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -94,6 +94,8 @@ outputs:
pid: host
privileged: true
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -90,6 +90,8 @@ outputs:
pid: host
privileged: true
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -90,6 +90,8 @@ outputs:
pid: host
privileged: true
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -118,6 +118,8 @@ outputs:
pid: host
privileged: true
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -175,6 +175,8 @@ outputs:
user: root
privileged: true
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}
@ -201,8 +203,6 @@ outputs:
user: root
privileged: false
restart: always
healthcheck:
test: /bin/true
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -115,6 +115,8 @@ outputs:
privileged: true
user: nova
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -98,6 +98,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -94,6 +94,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -100,6 +100,8 @@ outputs:
privileged: true
user: root
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -94,6 +94,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -94,6 +94,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -98,6 +98,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -98,6 +98,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -98,6 +98,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -93,6 +93,8 @@ outputs:
detach: true
user: odl
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}
@ -116,4 +118,4 @@ outputs:
upgrade_tasks:
- name: Stop and disable opendaylight_api service
tags: step2
service: name=opendaylight state=stopped enabled=no
service: name=opendaylight state=stopped enabled=no

View File

@ -175,6 +175,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -98,6 +98,8 @@ outputs:
net: host
privileged: false
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -125,6 +125,8 @@ outputs:
# "docker inspect" command
user: root
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -103,6 +103,8 @@ outputs:
net: host
user: swift
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}

View File

@ -257,6 +257,8 @@ outputs:
net: host
user: swift
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}
@ -321,6 +323,8 @@ outputs:
net: host
user: swift
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}
@ -401,6 +405,8 @@ outputs:
net: host
user: swift
restart: always
healthcheck:
test: /openstack/healthcheck
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}