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>
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