aboutsummaryrefslogtreecommitdiff
path: root/tools/status
blob: 8a1a18f7cefad63353702acde8b6f4c42432d8cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
#
# This script can be used to check the Kolla containers deployed
# from the start script.

if [[ $EUID -ne 0 ]]; then
    echo "You must execute this script as root." 1>&2
    exit 1
fi

# Move to top level directory
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."

# Check what network manager is set in the ENV file.
NETWORK_MANAGER=$(grep -ri NETWORK_MANAGER compose/openstack.env | cut -f2 -d'=')

echo Checking rabbitmq.
docker-compose -f ./compose/rabbitmq.yml ps

echo Checking mariadb.
docker-compose -f ./compose/mariadb.yml ps

echo Checking keystone.
docker-compose -f ./compose/keystone.yml ps

echo Checking glance.
docker-compose -f ./compose/glance-api-registry.yml ps

echo Checking nova.
docker-compose -f ./compose/nova-api-conductor-scheduler.yml ps

if [[ "${NETWORK_MANAGER}" == "nova" ]] ; then
  echo Checking nova compute with nova networking.
  docker-compose -f ./compose/nova-compute-network.yml ps
elif [[ "${NETWORK_MANAGER}" == "neutron" ]] ; then
  echo Checking nova compute with neutron networking.
  docker-compose -f ./compose/nova-compute.yml ps
  docker-compose -f ./compose/neutron-server.yml ps
  docker-compose -f ./compose/neutron-agents.yml ps
fi

echo Checking heat.
docker-compose -f ./compose/heat-api-engine.yml ps

echo Checking Horizon.
docker-compose -f ./compose/horizon.yml ps