diff options
| author | Martin André <martin.andre@kvhasia.com> | 2015-04-15 17:24:04 +0900 |
|---|---|---|
| committer | Martin André <martin.andre@kvhasia.com> | 2015-04-16 14:56:48 +0900 |
| commit | 75a6c3bc9f9569b615b055597e9d73a9bccef287 (patch) | |
| tree | 3aba42c1259d0dc7dca1311a70cb7b1540cfe5f2 /tools/status | |
| parent | b3bee1b927ee98d29cb03be8f383038753cc073f (diff) | |
| download | kolla-75a6c3bc9f9569b615b055597e9d73a9bccef287.tar.gz kolla-75a6c3bc9f9569b615b055597e9d73a9bccef287.zip | |
Introduce `tools/kolla` to interact with kolla
This is supposed to prevent proliferation of scripts in "tools"
directory and reduce code duplication.
This first patch replaces tools/{start,stop,pull,status} scripts and
more commands are to be added in the future.
Change-Id: I3d99cf5033be8631d8e6f32a4c34d3b5ffcae7e8
Diffstat (limited to 'tools/status')
| -rwxr-xr-x | tools/status | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tools/status b/tools/status deleted file mode 100755 index 8a1a18f7c..000000000 --- a/tools/status +++ /dev/null @@ -1,47 +0,0 @@ -#!/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 |
