summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaneyon Hansen <danehans@cisco.com>2015-04-14 20:40:06 +0000
committerDaneyon Hansen <danehans@cisco.com>2015-04-14 20:40:06 +0000
commitad60fbb0a4e1d93afcf216e64422c990b14dae1e (patch)
tree83b70f9129d1383cee9ddb150a55826861ad6832
parentaa5dba96da5a5e5a9ebda4afbcb428c6b5760d59 (diff)
downloadkolla-ad60fbb0a4e1d93afcf216e64422c990b14dae1e.tar.gz
kolla-ad60fbb0a4e1d93afcf216e64422c990b14dae1e.zip
Adds a Status Script
Previously, only start/stop scripts existed. The status script runs docker-compose ps for each container so users can get a quick snapshot of their Kolla environment. Change-Id: I3204f3e7404ad906d5330cf67d091fc1f06d3030
-rwxr-xr-xtools/status47
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