aboutsummaryrefslogtreecommitdiff
path: root/tools/kolla-compose
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2015-08-14 20:03:22 -0700
committerSteven Dake <stdake@cisco.com>2015-08-17 11:34:36 -0700
commit6efe57e9eb80a57c78bea9a2ca9d170d4efdfeb5 (patch)
tree748ce46ee06399e6ba223c9bfe579f54f4a84b23 /tools/kolla-compose
parentd4d40b9d9f05d7e71435c66c9c69f74a1ab79288 (diff)
downloadkolla-6efe57e9eb80a57c78bea9a2ca9d170d4efdfeb5.tar.gz
kolla-6efe57e9eb80a57c78bea9a2ca9d170d4efdfeb5.zip
Remove compose from documenation
Receive several quickstart related questions every day. Make a first pass at cleaning up our documentation to point people in the right direction. While we are about it remove compose related bits. Anything in the compose directory will remain as a reference implementation for how to implement the compose files to work well with our container content. Change-Id: I9e832e97ac2bacca8eab7e1bfbd82664d2b191b8 Closes-Bug: #1485163 Paritally-Implements: blueprint remove-config-internal
Diffstat (limited to 'tools/kolla-compose')
-rwxr-xr-xtools/kolla-compose157
1 files changed, 0 insertions, 157 deletions
diff --git a/tools/kolla-compose b/tools/kolla-compose
deleted file mode 100755
index eeb99bfc5..000000000
--- a/tools/kolla-compose
+++ /dev/null
@@ -1,157 +0,0 @@
-#!/bin/bash
-#
-# This script can be used to interact with kolla.
-
-# Move to top level directory
-REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
-cd "$(dirname "$REAL_PATH")/.."
-
-. tools/validate-docker-execute
-
-NETWORK_MANAGER=$(grep -sri NETWORK_MANAGER ./compose/openstack.env | cut -f2 -d'=')
-if [[ -z "$NETWORK_MANAGER" ]]; then
- echo 'No network manager defined in ./compose/openstack.env, defaulting to "neutron".'
- NETWORK_MANAGER="neutron"
-fi
-
-function process {
- local service=$1
- echo "$ACTION $service"
- docker-compose -f ./compose/${service}.yml $COMPOSE_CMD
- if [[ $? -ne 0 ]]; then
- echo "Call docker-compose -f ./compose/${service}.yml $COMPOSE_CMD fail."
- exit 1
- fi
-}
-
-function process_all {
- process rabbitmq
- process mariadb
- process keystone
- process glance-api-registry
- process nova-api-conductor-scheduler-consoleauth-novncproxy
- if [[ "${NETWORK_MANAGER}" == "nova" ]] ; then
- process nova-compute-network
- else
- # Defaulting to neutron
- process nova-compute
- process neutron-server
- process neutron-linuxbridge-agent
- process neutron-agents
- fi
- process heat-api-engine
- process magnum-api-conductor
- process horizon
- process cinder-api-scheduler
- process cinder-backup
- process cinder-volume
- process ceilometer
- # TODO(coolsvap) add again with resolution for #LP1478145
- #process gnocchi
-}
-
-function check_selinux {
- # Check for SELinux in Enforcing mode and exit if found
- if [[ -x /usr/sbin/getenforce ]]; then
- if [[ $(/usr/sbin/getenforce) == "Enforcing" ]]; then
- echo "You must execute this script without SELinux enforcing mode."
- echo "Turn off SELinux enforcing mode by running:"
- echo "$ sudo setenforce permissive"
- exit 1
- fi
- fi
-}
-
-function pre_start {
- check_selinux
-
- if [[ -r ./openrc ]]; then
- # Source openrc for commands
- source ./openrc
- else
- echo 'Could not find ./openrc; bootstrap your environment with "./tools/genenv".'
- exit 1
- fi
-}
-
-function post_start {
- echo -n "Waiting for OpenStack services to become available"
-
- until [ $(nova service-list 2>&1 | grep -c enabled) -ge 4 ]; do
- echo -n .
- sleep 2
- done
-
- until [ $(neutron agent-list 2>&1 | grep -c ':-)') -ge 4 ]; do
- echo -n .
- sleep 2
- done
- echo " done"
-
- echo Example Usage:
- echo source openrc # source keystone credentials
-
- echo Configure your environment once by running:
- echo tools/init-runonce
-}
-
-function usage {
- cat <<EOF
-Usage: $0 COMMAND
-
-Commands:
- pull Pull all of the Docker images
- start Start all kolla containers
- status List running kolla containers
- stop Stop all kolla containers
- restart Restart all kolla containers
- destroy Kill and remove all kolla containers and volumes
-EOF
-}
-
-case "$1" in
-
-(pull)
- ACTION="Pulling"
- COMPOSE_CMD="pull"
- process_all
- ;;
-
-(start)
- ACTION="Starting"
- COMPOSE_CMD="up -d"
- pre_start
- process_all
- post_start
- ;;
-
-(restart)
- ACTION="Restarting"
- COMPOSE_CMD="restart"
- process_all
- ;;
-
-(status)
- ACTION="Status of"
- COMPOSE_CMD="ps"
- process_all
- ;;
-
-(stop)
- ACTION="Stopping"
- COMPOSE_CMD="stop"
- process_all
- ;;
-
-(destroy)
- ACTION="Destroying"
- COMPOSE_CMD="kill"
- process_all
- COMPOSE_CMD="rm -f -v"
- process_all
- ;;
-
-(*) usage
- exit 0
- ;;
-esac