kolla-ansible/docker/nova-controller/nova-api/check.sh
Lars Kellogg-Stedman b1a2d74406 add /check.sh script to nova-api image
Change-Id: Ia0f796b3a580c57b9f84390bae3b1012f99dcce0
2014-10-16 16:43:53 -04:00

18 lines
249 B
Bash
Executable File

#!/bin/sh
RES=0
. /openrc
if ! keystone token-get > /dev/null; then
echo "ERROR: keystone token-get failed" >&2
RES=1
else
if ! nova list > /dev/null; then
echo "ERROR: nova list failed" >&2
RES=1
fi
fi
exit $RES