diff options
author | 2017-12-10 12:10:31 -0800 | |
---|---|---|
committer | 2017-12-10 13:10:18 -0800 | |
commit | 00a470b032fc94b7d340770928ed003099e41a31 (patch) | |
tree | a15d1d069bdfb1d030dfafc706b5aab24a96693e /tools/maas | |
parent | c5ad6561884f1ee8e868b7922c8b27bda588d6d9 (diff) |
AIO and centos deploy support
JIRA: MODELS-2
serial worker deploy
ceph not yet working for multi-node centos
Change-Id: Id46e3eb10486fd96b4acab45c87be8475a1a7163
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools/maas')
-rw-r--r-- | tools/maas/deploy.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/maas/deploy.sh b/tools/maas/deploy.sh index 484a389..bf6b01f 100644 --- a/tools/maas/deploy.sh +++ b/tools/maas/deploy.sh @@ -28,6 +28,11 @@ #. <hosts>: space separated list of hostnames managed by MAAS #. <extras>: optional name and parameters of script for extra setup functions +function fail() { + log "$1" + exit 1 +} + function log() { f=$(caller 0 | awk '{print $2}') l=$(caller 0 | awk '{print $1}') @@ -38,6 +43,9 @@ function wait_node_status() { status=$(maas opnfv machines read hostname=$1 | jq -r ".[0].status_name") while [[ "x$status" != "x$2" ]]; do log "$1 status is $status ... waiting for it to be $2" + if [[ "$2" == "Deployed" && "$status" == "Failed deployment" ]]; then + fail "$1 deployment failed" + fi sleep 30 status=$(maas opnfv machines read hostname=$1 | jq -r ".[0].status_name") done |