summaryrefslogtreecommitdiff
path: root/docker/nova-controller/nova-api/check.sh
blob: b250682d803aed91be45efd89f5ff493ce754402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

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