From c7dc3ec2519f3003f1a6c263e81a3f94ff517971 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Fri, 18 Oct 2019 01:35:20 +0000 Subject: [PATCH] Add a healthcheck for ironic-neutron-agent Change-Id: I987a6315f92a60dbf9619d4d34d3d92992feba2b Partial-Bug: 1848618 --- healthcheck/ironic-neutron-agent | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 healthcheck/ironic-neutron-agent diff --git a/healthcheck/ironic-neutron-agent b/healthcheck/ironic-neutron-agent new file mode 100755 index 000000000..7c4ef5876 --- /dev/null +++ b/healthcheck/ironic-neutron-agent @@ -0,0 +1,14 @@ +#!/bin/bash + +. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh + +process='ironic-neutron-agent' +args="${@:-5671 5672}" + +if healthcheck_port $process $args; then + exit 0 +else + ports=${args// /,} + echo "There is no $process process with opened RabbitMQ ports ($ports) running in the container" + exit 1 +fi