From 51b883ef68785306ca4441187921ad823f042fd0 Mon Sep 17 00:00:00 2001 From: Martin Kulhavy Date: Tue, 8 Aug 2017 12:07:24 +0300 Subject: 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 --- ci/03-maasdeploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ci') 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 -- cgit 1.2.3-korg