From 9473817a092dfcd47fa780c924a8067f3fdfebe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=A1gr?= Date: Thu, 22 Mar 2018 13:26:40 +0100 Subject: [PATCH] Enable neutron-sriov-agent health check This patch enables health check execution for neutron-sriov-agent docker container. Change-Id: I96e93c2eade261f3a3f44f5b8ffd4c1d75274c15 Depends-On: Ief543580e6b717bb9dba62b19ffe12aff5395ff9 Depends-On: Id5dc7d169301e45cb0abab7cecae67457db9fd96 --- docker/services/neutron-sriov-agent.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker/services/neutron-sriov-agent.yaml b/docker/services/neutron-sriov-agent.yaml index f9cf1318bb..04b0ead912 100644 --- a/docker/services/neutron-sriov-agent.yaml +++ b/docker/services/neutron-sriov-agent.yaml @@ -97,6 +97,15 @@ outputs: pid: host privileged: true restart: always + healthcheck: + test: + list_join: + - ' ' + - - '/openstack/healthcheck' + - yaql: + expression: str($.data.port) + data: + port: {get_attr: [NeutronSriovAgentBase, role_data, config_settings, 'neutron::rabbit_port']} volumes: list_concat: - {get_attr: [ContainersCommon, volumes]}