From: Martin Kulhavy Date: Tue, 8 Aug 2017 09:07:24 +0000 (+0300) Subject: Check that nodes have not failed commissioning or testing X-Git-Tag: opnfv-5.0.RC1~77^2~1 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=51b883ef68785306ca4441187921ad823f042fd0;p=joid.git Check that nodes have not failed commissioning or testing Both states 'Failed commissioning' and 'Failed testing' are reasons to stop the deployment process because their interface cannot be updated in the next step. Change-Id: I8e9f2b9de24c67c4e08f36b04b80e0c4a02c7604 Signed-off-by: Martin Kulhavy --- diff --git a/ci/03-maasdeploy.sh b/ci/03-maasdeploy.sh index 835e3f71..1e93627e 100755 --- a/ci/03-maasdeploy.sh +++ b/ci/03-maasdeploy.sh @@ -463,10 +463,10 @@ addnodes(){ do sleep 60 - # Make sure that no nodes have failed commissioning - if [ "$(maas $PROFILE nodes read | grep 'Failed commissioning' )" ]; + # Make sure that no nodes have failed commissioning or testing + if [ "$(maas $PROFILE nodes read | grep 'Failed' )" ]; then - echo "Error: Some nodes have failed commissioning" 1>&2 + echo "Error: Some nodes have failed commissioning or testing" 1>&2 exit 1 fi