Add healthcheck for nova-virtlogd container

Adds healthcheck for nova-virtlogd container by
checking whether /var/run/libvirt/virtlogd-sock
socket is opened or not in virtlogd container.

Change-Id: I9c76855169448a125541c94d480a4afd49ff6d0e
This commit is contained in:
Rajesh Tailor 2019-11-11 11:01:35 +05:30
parent abbd5c46f1
commit cdbcf9ff75
1 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
#!/bin/bash
virsh version --daemon
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
process=$1
socket='/var/run/libvirt/virtlogd-sock'
if [[ $process == "virtlogd" ]]; then
healthcheck_socket $process $socket
exit $?
else
virsh version --daemon
fi