path: root/doctor_tests
diff options
authordongwenjuan <>2019-04-09 10:22:52 +0800
committerdongwenjuan <>2019-04-09 14:16:21 +0800
commit468f1f1c88b993de227c9c6df7d53f1d5b2fef87 (patch)
tree870ad99df81afa8b88dba634500f13a9ecaf3302 /doctor_tests
parent2eb1c7f3fbd2a4bf6468f63e64ea3c1496236fe5 (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 <>
Diffstat (limited to 'doctor_tests')
1 files changed, 4 insertions, 0 deletions
diff --git a/doctor_tests/scenario/ b/doctor_tests/scenario/
index a110b88..5216aa8 100644
--- a/doctor_tests/scenario/
+++ b/doctor_tests/scenario/
@@ -209,6 +209,10 @@ class FaultManagement(object):
detected = self.monitor.detected_time
notified = self.consumer.notified_time
+ if None in [vmdown, hostdown, detected, notified]:
+'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