tripleo-common/healthcheck/nova-libvirt
Rajesh Tailor f694274410 Fix nova-virtlogd container healthcheck
As of now, nova-virtlogd container healthcheck is failing
after deployment.

This change fixes the nova-virtlogd container healthcheck
by checking /run/libvirt/virtlogd-sock socket instead
of /var/run/libvirt/virtlogd-sock socket.

Change-Id: I1eee0cf34be9bf26fee0e4db832f8d141fee449b
2020-05-28 19:00:10 +05:30

13 lines
270 B
Bash
Executable File

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