Add healthchecks for barbican containers
The barbican-keystone-listener and worker only listen for the message queue, so the healthcheck reflects that. This patch only adds healthcheck scripts after the issue with rdo-kolla-build-integration CI job. For details see: https://review.openstack.org/#/c/544626 Co-Authored-By: Juan Antonio Osorio Robles <jaosorior@redhat.com> Change-Id: Ic0573f6dfe550dd7f5d6bc579b3b06660d4bf1fc
This commit is contained in:
parent
1550e16d6e
commit
317c5a29e6
6
healthcheck/barbican-api
Executable file
6
healthcheck/barbican-api
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
||||||
|
|
||||||
|
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-barbican_wsgi_main.conf)
|
||||||
|
healthcheck_curl ${check_url}
|
14
healthcheck/barbican-keystone-listener
Executable file
14
healthcheck/barbican-keystone-listener
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
||||||
|
|
||||||
|
process='barbican-keystone-listener'
|
||||||
|
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
|
14
healthcheck/barbican-worker
Executable file
14
healthcheck/barbican-worker
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
||||||
|
|
||||||
|
process='barbican-worker'
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user