summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordongwenjuan <dongwenjuan1122@gmail.com>2019-04-09 10:22:52 +0800
committerTomi Juvonen <tomi.juvonen@nokia.com>2019-04-15 10:12:31 +0000
commit364d2c2344be5775a0eef6fe19fda125d2c8853d (patch)
tree94e93160534e027380755e0ff605c22fef9ada96
parent73605c5c34b97ab56306bfa9af0f5888f3c7e46d (diff)
Handle the exception for running the profiler
Congress as inspector, currently we can't get the vmdown time and hostdown time unless we get the log of congress and extract the times. Change-Id: Ie8b9dff6048040a1f834033c4873c168225e9d8c Signed-off-by: dongwenjuan <dongwenjuan1122@gmail.com> (cherry picked from commit 468f1f1c88b993de227c9c6df7d53f1d5b2fef87)
-rw-r--r--doctor_tests/scenario/fault_management.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/doctor_tests/scenario/fault_management.py b/doctor_tests/scenario/fault_management.py
index a110b88a..5216aa80 100644
--- a/doctor_tests/scenario/fault_management.py
+++ b/doctor_tests/scenario/fault_management.py
@@ -209,6 +209,10 @@ class FaultManagement(object):
detected = self.monitor.detected_time
notified = self.consumer.notified_time
+ if None in [vmdown, hostdown, detected, notified]:
+ self.log.info('one of the time for profiler is None, return')
+ return
+
# TODO(yujunz) check the actual delay to verify time sync status
# expected ~1s delay from $trigger to $linkdown
relative_start = linkdown