aboutsummaryrefslogtreecommitdiff
path: root/tools/start
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-04-21 16:37:55 +0000
committerGerrit Code Review <review@openstack.org>2015-04-21 16:37:55 +0000
commita2eb42744baaf1c4af5e4dbbf11435622ec0c011 (patch)
tree054d23a2c9a6dbe724a18c725bf9e5fd2ae49e2a /tools/start
parent17fc2d9b475da15a571fe6ed1aa51fadc3b076cc (diff)
parent75a6c3bc9f9569b615b055597e9d73a9bccef287 (diff)
downloadkolla-a2eb42744baaf1c4af5e4dbbf11435622ec0c011.tar.gz
kolla-a2eb42744baaf1c4af5e4dbbf11435622ec0c011.zip
Merge "Introduce `tools/kolla` to interact with kolla"
Diffstat (limited to 'tools/start')
-rwxr-xr-xtools/start92
1 files changed, 0 insertions, 92 deletions
diff --git a/tools/start b/tools/start
deleted file mode 100755
index f5f8af8e3..000000000
--- a/tools/start
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/bash
-#
-# This script can be used to start a minimal set of containers that allows
-# you to boot an instance. Note that it requires that you have some openstack
-# clients available: keystone, glance, and nova, as well as mysql to ensure
-# services are up. You will also need these in order to interact with the
-# installation once started.
-
-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 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
-
-MY_IP=$(ip route get $(ip route | awk '$1 == "default" {print $3}') |
- awk '$4 == "src" {print $5}')
-
-NETWORK_MANAGER=$(grep -ri NETWORK_MANAGER compose/openstack.env | cut -f2 -d'=')
-
-# Source openrc for commands
-source ./openrc
-
-echo Starting rabbitmq.
-docker-compose -f ./compose/rabbitmq.yml up -d
-
-echo Starting mariadb.
-docker-compose -f ./compose/mariadb.yml up -d
-
-echo Starting keystone.
-docker-compose -f ./compose/keystone.yml up -d
-
-echo Starting glance.
-docker-compose -f ./compose/glance-api-registry.yml up -d
-
-echo Starting nova.
-docker-compose -f ./compose/nova-api-conductor-scheduler.yml up -d
-
-if [[ "${NETWORK_MANAGER}" == "nova" ]] ; then
- echo Starting nova compute with nova networking.
- docker-compose -f ./compose/nova-compute-network.yml up -d
-elif [[ "${NETWORK_MANAGER}" == "neutron" ]] ; then
- echo Starting nova compute with neutron networking.
- docker-compose -f ./compose/nova-compute.yml up -d
- docker-compose -f ./compose/neutron-server.yml up -d
- docker-compose -f ./compose/neutron-agents.yml up -d
-fi
-
-echo Starting heat.
-docker-compose -f ./compose/heat-api-engine.yml up -d
-
-echo Starting Horizon.
-docker-compose -f ./compose/horizon.yml up -d
-
-IMAGE_URL=http://download.cirros-cloud.net/0.3.3/
-IMAGE=cirros-0.3.3-x86_64-disk.img
-if ! [ -f "$IMAGE" ]; then
- curl -L -o ./$IMAGE $IMAGE_URL/$IMAGE
-fi
-
-until keystone user-list | grep glance
-do
- echo "Waiting for OpenStack services to become available"
- sleep 2
-done
-
-sleep 3
-
-echo Creating glance image.
-glance image-create --name cirros --is-public false --disk-format qcow2 --container-format bare --file ./$IMAGE
-
-echo Example usage:
-echo
-echo nova secgroup-add-rule default tcp 22 22 0.0.0.0/0
-echo nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
-echo nova network-create vmnet --fixed-range-v4=10.0.0.0/24 --bridge=br100 --multi-host=T
-echo
-echo nova keypair-add mykey > mykey.pem
-echo chmod 600 mykey.pem
-echo nova boot --flavor m1.medium --key_name mykey --image cirros kolla_vm