summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorMartin Kulhavy <martin.kulhavy@nokia.com>2017-08-08 12:07:24 +0300
committerMartin Kulhavy <martin.kulhavy@nokia.com>2017-08-08 12:07:24 +0300
commit51b883ef68785306ca4441187921ad823f042fd0 (patch)
tree0e5e5fa754c2c65cc6d18fb227dd98bee5a7717c /ci
parent3db5d19299a8b90dd77d7c7ed8f6572f9af52b27 (diff)
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 <martin.kulhavy@nokia.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/03-maasdeploy.sh6
1 files changed, 3 insertions, 3 deletions
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