Merge "add /check.sh script to nova-api image"
This commit is contained in:
commit
a3b90f59f1
@ -7,4 +7,6 @@ RUN yum -y install \
|
||||
EXPOSE 8773 8774 8775
|
||||
|
||||
ADD ./start.sh /start.sh
|
||||
ADD ./check.sh /check.sh
|
||||
|
||||
CMD ["/start.sh"]
|
||||
|
17
docker/nova-controller/nova-api/check.sh
Executable file
17
docker/nova-controller/nova-api/check.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
|
Loading…
Reference in New Issue
Block a user