f593541485
add /check.sh to keystone and glance-api images that can be used to verify proper functionality of the container. Change-Id: I0a878678fb8e9427d8e99af4896cbc679d3490a4
18 lines
265 B
Bash
Executable File
18 lines
265 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 ! glance image-list > /dev/null; then
|
|
echo "ERROR: glance image-list failed" >&2
|
|
RES=1
|
|
fi
|
|
fi
|
|
|
|
exit $RES
|
|
|