cert-mon: uncaught exceptions within audit greenpool are not logged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Manoel Benedito Neto |
Bug Description
Brief Description
-----------------
It was difficult to catch an uncaught exception within the subcloud audit greenpool thread was not logged.
We need to ensure the greenpool is properly hooked into logging subsystem.
Severity
--------
Minor
Steps to Reproduce
------------------
Create an uncaught exception in certificate_
Expected Behavior
-----------------
We should see a traceback in the log file.
Actual Behavior
---------------
Silence
Reproducibility
---------------
Reproducible
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
unknown
Last Pass
---------
unknown
Timestamp/Logs
--------------
2021-12-
2021-12-
2021-12-
2021-12-
2021-12-
2021-12-
Alarms
------
N/A
Test Activity
-------------
System testing
Workaround
----------
N/A
Changed in starlingx: | |
assignee: | nobody → Manoel Benedito Neto (mbenedit) |
Changed in starlingx: | |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.security |
tags: | added: stx.config |
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