blob: 18eaf024495b2bfe44ef4ef541d320571df49317 [file] [log] [blame]
Simon Pasquierd3a0b912017-05-02 15:32:20 +02001#!/bin/bash -x
2exec > >(tee -i /tmp/"$(basename "$0" .sh)"_"$(date '+%Y-%m-%d_%H-%M-%S')".log) 2>&1
3
4CWD="$(dirname "$(readlink -f "$0")")"
5
6# Import common functions
7COMMONS="$CWD"/common_functions.sh
8if [ ! -f "$COMMONS" ]; then
9 echo "File $COMMONS does not exist"
10 exit 1
11fi
12. "$COMMONS"
13
14# OVS deployment
15salt -C 'I@nova:compute' state.sls nova
16# If the compute nodes aren't in the default 'nova' AZ, the previous run will
17# fail because adding compute nodes to their AZ requires the compute services
18# to be registered.
19# So wait a bit and run the state once again
20sleep 10
21salt -C 'I@nova:compute' state.sls nova
22salt -C 'I@cinder:volume' state.sls cinder
23salt -C 'I@neutron:compute' state.sls neutron
24salt -C 'I@ceilometer:agent' state.sls ceilometer