Fail cfg01 bootstrap if the bootstrap script is failed
Change-Id: I11f3f5c81257bdb0bf0ec5af36be0aaa92af5065
diff --git a/tcp_tests/helpers/exceptions.py b/tcp_tests/helpers/exceptions.py
index f6c2310..7bc4abc 100644
--- a/tcp_tests/helpers/exceptions.py
+++ b/tcp_tests/helpers/exceptions.py
@@ -133,3 +133,14 @@
def __str__(self):
return ("Salt pillar '{0}' error on minion {1}: {2}"
.format(self.minion_id, self.pillar, self.message))
+
+
+class EnvironmentNodeIsNotStarted(BaseException):
+ def __init__(self, node_name, message=''):
+ super(EnvironmentNodeIsNotStarted, self).__init__()
+ self.node_name = node_name
+ self.message = message
+
+ def __str__(self):
+ return ("Cloud-init failed on node {0} with error: \n{1}"
+ .format(self.node_name, self.message))