aboutsummaryrefslogtreecommitdiff
path: root/docker/nova-controller/nova-api/check.sh
blob: a738b1002af0e44c21259d844f89e327297c0db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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