blob: db6538c5e4ee10f0cc229aed95fb773e0816abec (
plain)
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
|
#!/bin/bash
set -o xtrace
set -o errexit
set -o pipefail
export PYTHONUNBUFFERED=1
function init_runonce {
. /etc/kolla/admin-openrc.sh
. ~/openstackclient-venv/bin/activate
echo "Initialising OpenStack resources via init-runonce"
KOLLA_DEBUG=1 tools/init-runonce |& gawk '{ print strftime("%F %T"), $0; }' &> /tmp/logs/ansible/init-runonce
# CI flavors
openstack flavor create --id 7 --ram 320 --disk 1 --vcpus 1 c1.tiny >> /tmp/logs/ansible/init-runonce
openstack flavor create --id 8 --ram 384 --disk 1 --vcpus 2 c2.tiny >> /tmp/logs/ansible/init-runonce
if [[ $IP_VERSION -eq 6 ]]; then
# NOTE(yoctozepto): In case of IPv6 there is no NAT support in Neutron,
# so we have to set up native routing. Static routes are the simplest.
sudo ip route add ${DEMO_NET_CIDR} via ${EXT_NET_DEMO_ROUTER_ADDR}
fi
}
init_runonce
|