config/sysinv/sysinv/sysinv/sysinv/cert_mon
Kyle MacLeod da21e1f9f7 Fix cert-mon PriorityQueue regression in python3
In python3 the PriorityQueue raises an exception
due to

TypeError: '<' not supported between
        instances of 'SubcloudAuditData' and 'SubcloudAuditData'

The fix is to include a __lt__ method in SubcloudAuditData.
A timestamp field is added (primarily used in the tuple added to the
queue, but easy enough to include here) in order to aid in the sorting.

Test Plan:

PASS: trigger cert-mon audit for subclouds. Verify that the exception
is not raised, and that subclouds are properly enqueued for audit.

Closes-Bug: 1992680
Change-Id: Ibaa9a421eb809edc434793bc7e8ae92691be021f
Signed-off-by: Kyle MacLeod <kyle.macleod@windriver.com>
2022-10-12 13:03:56 -04:00
..
__init__.py Add cert-mon service 2020-07-20 14:06:31 -04:00
certificate_mon_manager.py update license statements 2022-06-28 13:56:11 +00:00
context.py Deprecate old policy engine and restrict access 2022-08-10 11:18:38 -03:00
messaging.py update license statements 2022-06-28 13:56:11 +00:00
service.py update license statements 2022-06-28 13:56:11 +00:00
subcloud_audit_queue.py Fix cert-mon PriorityQueue regression in python3 2022-10-12 13:03:56 -04:00
utils.py Merge "Increase timed out for cert-mon certificate installation" 2022-09-01 14:26:39 +00:00
watcher.py update license statements 2022-06-28 13:56:11 +00:00