diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-04-16 01:36:06 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-04-16 01:36:06 +0000 |
| commit | 58819e070001e9be6708c6079a2db28cad2d8484 (patch) | |
| tree | 9a789a77473492a97b0c6e4b1f81474ddd3d657d /tools | |
| parent | 5c2e13592b37b24ee9426ecf29c9e9c9bd77c9b9 (diff) | |
| parent | ad60fbb0a4e1d93afcf216e64422c990b14dae1e (diff) | |
| download | kolla-58819e070001e9be6708c6079a2db28cad2d8484.tar.gz kolla-58819e070001e9be6708c6079a2db28cad2d8484.zip | |
Merge "Adds a Status Script"
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/status | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tools/status b/tools/status new file mode 100755 index 000000000..8a1a18f7c --- /dev/null +++ b/tools/status @@ -0,0 +1,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 |
