aboutsummaryrefslogtreecommitdiff
path: root/tools/deploy_aio.sh
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-01-26 03:04:43 +0000
committerGerrit Code Review <review@openstack.org>2016-01-26 03:04:43 +0000
commit06b16d577d502d95587e69c970c099850ad3f0ae (patch)
tree73e69b2a74fee87ca5e21bb1b68717ff2456bdb8 /tools/deploy_aio.sh
parentc6df0b41929d0000b621afb65e9f68053b0d7cd7 (diff)
parent6adb5c0aa5a5947bdeeb03b03cba29af30902d2f (diff)
downloadkolla-06b16d577d502d95587e69c970c099850ad3f0ae.tar.gz
kolla-06b16d577d502d95587e69c970c099850ad3f0ae.zip
Merge "Convert gate to file backend rather than partition"
Diffstat (limited to 'tools/deploy_aio.sh')
-rwxr-xr-xtools/deploy_aio.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/deploy_aio.sh b/tools/deploy_aio.sh
new file mode 100755
index 000000000..9ca10164b
--- /dev/null
+++ b/tools/deploy_aio.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+set -o xtrace
+set -o errexit
+
+export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+
+function print_failure {
+ docker ps -a
+ for failed in $(docker ps -a --format "{{.Names}}" --filter status=exited); do
+ docker logs --tail=all $failed
+ done
+ echo "FAILED"
+ exit 1
+}
+
+# Populate globals.yml
+cat << EOF > /etc/kolla/globals.yml
+---
+kolla_base_distro: "$1"
+kolla_install_type: "$2"
+kolla_internal_address: "169.254.169.10"
+docker_restart_policy: "never"
+network_interface: "eth0"
+neutron_external_interface: "fake_interface"
+EOF
+
+# Create dummy interface for neutron
+ip l a fake_interface type dummy
+
+# Actually do the deployment
+tools/kolla-ansible deploy || print_failure
+
+# TODO(SamYaple): Actually validate that all containers are started
+docker ps -a
+
+# TODO(SamYaple): Actually do functional testing of OpenStack