Check that nodes have not failed commissioning or testing 93/38893/1
authorMartin Kulhavy <martin.kulhavy@nokia.com>
Tue, 8 Aug 2017 09:07:24 +0000 (12:07 +0300)
committerMartin Kulhavy <martin.kulhavy@nokia.com>
Tue, 8 Aug 2017 09:07:24 +0000 (12:07 +0300)
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>
ci/03-maasdeploy.sh

index 835e3f7..1e93627 100755 (executable)
@@ -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