Merge "Enable health check for OVN containers"

This commit is contained in:
Zuul 2018-10-07 08:42:39 +00:00 committed by Gerrit Code Review
commit 4124ca7e27
2 changed files with 11 additions and 0 deletions

View File

@ -107,6 +107,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

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