-
Notifications
You must be signed in to change notification settings - Fork 4
/
deploy-openstack-nova-lxd.sh
executable file
·32 lines (26 loc) · 1.17 KB
/
deploy-openstack-nova-lxd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash -e
#
# Depoy OpenStack Nova-LXD
# Gather additional tools and repos before deploy
# juju-wait: this plugin can also be used as a stand-alone command line tool
if [[ ! -d "$HOME/tools/juju-wait" ]]; then
mkdir -vp $HOME/tools/
git clone https://git.launchpad.net/juju-wait $HOME/tools/juju-wait
fi
# juju-deployer: Build a venv with juju-deployer from trunk
tox
. .tox/deployer/bin/activate
# Deploy OpenStack Nova-LXD (after Magpie infrastructure validation)
# Wait for deployment to complete [relations and hooks must settle before proceeding]
time juju bootstrap --constraints "arch=amd64 tags=demo" ||:
time juju-deployer -Svdc juju-bundles/magpie-metal.yaml
time timeout 1800 $HOME/tools/juju-wait/juju-wait -v
time juju-deployer -Svdc juju-bundles/openstack-nova-lxd.yaml
time timeout 2700 $HOME/tools/juju-wait/juju-wait -v
# Confirm basic OpenStack API health via command line clients
time ./tools/check-openstack-api-clients.sh
# Configure OpenStack: Tenant, Network, Images, Security Groups
time ./tools/configure-openstack-lxd.sh
# Launch and confirm a bastion instance
time ./tools/create-bastion.sh
time ./tools/check-exclusive-instances.sh