Added an except clause to log uncaught exceptions that may happen when
_subcloud_audit function is called.
Test Plan:
PASS: In a DX DC system with AIO-SX subcloud offline, observe the log
exception message and callstack traceback to be thrown on the /var/log/cert-mon.log file, as code execution proceeds to
finally clause in do_subcloud_audit function.
PASS: In a DX DC system with simplex subcloud online, force an invalid
subcloud audit item to assume None value. Observe the log
exception message and callstack traceback to be thrown in the /var/log/cert-mon.log file, as code execution proceeds to finally
clause in do_subcloud_audit function.
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/872700 /opendev. org/starlingx/ config/ commit/ 51afe1ee79463ea 9879380819f9015 20e1cf9bdd
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 51afe1ee79463ea 9879380819f9015 20e1cf9bdd
Author: Manoel Benedito Neto <email address hidden>
Date: Fri Feb 3 15:59:40 2023 -0300
Add exception clause and logs for subcloud audit
Added an except clause to log uncaught exceptions that may happen when
_subcloud_audit function is called.
Test Plan:
/var/ log/cert- mon.log file, as code execution proceeds to
/var/ log/cert- mon.log file, as code execution proceeds to finally
PASS: In a DX DC system with AIO-SX subcloud offline, observe the log
exception message and callstack traceback to be thrown on the
finally clause in do_subcloud_audit function.
PASS: In a DX DC system with simplex subcloud online, force an invalid
subcloud audit item to assume None value. Observe the log
exception message and callstack traceback to be thrown in the
clause in do_subcloud_audit function.
Closes-Bug: 2006136 9637ea036b2c652 2a47b4a803f
Signed-off-by: Manoel Benedito Neto <email address hidden>
Change-Id: I3e92db11a9339a