Enable health check for OVN containers

This patch enables container health check execution for ovn_controller
and ovn_dbs_bundle containers.

Change-Id: Ie519e9684dc527cc384e11fb8f32b532dd2da1d7
Depends-On: Ie724b155fa071da9f1baee193cf79e2ecdc2ff30
This commit is contained in:
Martin Mágr 2018-05-14 13:41:27 +02:00 committed by Martin Magr
parent 8928159316
commit e44d9deef0
2 changed files with 11 additions and 0 deletions

View File

@ -108,6 +108,15 @@ outputs:
privileged: true
user: root
restart: always
healthcheck:
test:
list_join:
- ' '
- - '/openstack/healthcheck'
- yaql:
expression: str($.data.port)
data:
port: {get_attr: [OvnControllerBase, role_data, config_settings, 'ovn::southbound::port']}
volumes:
- /var/lib/kolla/config_files/ovn_controller.json:/var/lib/kolla/config_files/config.json:ro
- /lib/modules:/lib/modules:ro

View File

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