aboutsummaryrefslogtreecommitdiff
path: root/tests/deploy_aio.sh
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-11-04 04:58:22 +0000
committerSam Yaple <sam@yaple.net>2015-11-05 10:58:29 +0000
commit3d7a0c6f55d5d4db33ff5ecb25466423e5d36b2d (patch)
treef0d050ad4e32337513e0e2f2b242719676f74754 /tests/deploy_aio.sh
parent6a9beb4a33a0a44ba7ffbafc80d794604f030d57 (diff)
downloadkolla-3d7a0c6f55d5d4db33ff5ecb25466423e5d36b2d.tar.gz
kolla-3d7a0c6f55d5d4db33ff5ecb25466423e5d36b2d.zip
Restrucutre gate scripts
So we can respect DRY and share as much code as possible I have broken out the common code between the aio and multinode gate scripts. Additionally, this lays the ground work for removing our policy on root-everywhere by using sudo. Once we get the non-root stuff worked out we can gate as non-root user. Change-Id: I781c597ab10f2296b95f51ae27e0fa617ffe0a66 Partially-Implements: blueprint multinode-gate
Diffstat (limited to 'tests/deploy_aio.sh')
-rwxr-xr-xtests/deploy_aio.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/deploy_aio.sh b/tests/deploy_aio.sh
new file mode 100755
index 000000000..2d76aca8d
--- /dev/null
+++ b/tests/deploy_aio.sh
@@ -0,0 +1,36 @@
+#!/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
+ docker logs bootstrap_keystone
+ 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_pull_policy: "missing"
+docker_restart_policy: "no"
+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