
This commit introduces dccertmon, a new managed service for DC certificate auditing and management. Currently, platform cert management, DC cert management, and subcloud cert auditing are coupled into a single platform service (certmon). To meet the requirements of DC scalability and portability, DC specific functionality must be decoupled. These changes lay the groundwork for the new service, by: - Creating the necessary service files. - Introducing configs for the service. - Declaring high level methods (Skeleton - lifecycle and manager) DC-specific functionality will be migrated to this dccertmon service and optimized in subsequent changes. Non-DC cert management will continue to be handled by certmon. Overall, this commit introduces: - The OCF file necessary for high availability management of the dccertmon service by SM. - Package configurations to build the service (Package: distributedcloud-dccertmon). - Lifecycle manager for a running DC cert monitor service. - Skeleton/base service application logic - CertificateMonitorManager. - RPC notification handlers for subcloud online/managed. - Configuration for the log folders and log rotation. The logs will be available in /var/log/dccertmon/dccertmon.log. These changes are part of a set of commits to introduce the dccertmon service: [1] https://review.opendev.org/c/starlingx/ha/+/941205 [2] https://review.opendev.org/c/starlingx/stx-puppet/+/941208 Test Plan: - PASS: Build dccertmon package - PASS: Install and bootstrap system with custom ISO containing the newly created dccertmon package - PASS: Verify that the dccertmon.service is loaded - PASS: Verify dccertmon is being properly logged to the correct folder. - PASS: Check logged messages and verify execution of - Cert Watcher thread - Task Executor (Audit thread) - Periodic tasks running at expected intervals - PASS: Configure and provision the service using SM and verify it has correctly started and can be restarted with 'sm-restart'. - PASS: Tox checks running on dccertmon Note: This commit has been tested alongside the related changes and their respective test plans. [1][2] Story: 2011311 Task: 51663 Change-Id: Ic23d8d13e4b292cf0508d23eaae99b8e07f36d31 Signed-off-by: Salman Rana <salman.rana@windriver.com>
40 lines
2.4 KiB
Plaintext
40 lines
2.4 KiB
Plaintext
# Distributed Cloud Log destination
|
|
destination d_dcmanager { file("/var/log/dcmanager/dcmanager.log" template(t_preformatted)); };
|
|
destination d_dcmanager_api { file("/var/log/dcmanager/dcmanager-api.log" template(t_preformatted)); };
|
|
destination d_dcmanager_audit { file("/var/log/dcmanager/audit.log" template(t_preformatted)); };
|
|
destination d_dcmanager_state { file("/var/log/dcmanager/state.log" template(t_preformatted)); };
|
|
destination d_dcmanager_orch { file("/var/log/dcmanager/orchestrator.log" template(t_preformatted)); };
|
|
destination d_dcorch { file("/var/log/dcorch/dcorch.log" template(t_preformatted)); };
|
|
destination d_dcdbsync { file("/var/log/dcdbsync/dcdbsync.log" template(t_preformatted)); };
|
|
destination d_dcagent { file("/var/log/dcagent/dcagent.log" template(t_preformatted)); };
|
|
destination d_dccertmon { file("/var/log/dccertmon/dccertmon.log" template(t_preformatted)); };
|
|
|
|
# Distributed Cloud Log Filters
|
|
filter f_dcmanagermanager { facility(local4) and program(dcmanager-manager); };
|
|
filter f_dcmanageraudit { facility(local4) and program(dcmanager-audit); };
|
|
filter f_dcmanagerstate { facility(local4) and program(dcmanager-state); };
|
|
filter f_dcmanagerorchestrator { facility(local4) and program(dcmanager-orchestrator); };
|
|
filter f_dcmanagerapi { facility(local4) and program(dcmanager-api); };
|
|
|
|
filter f_dcorchengine { facility(local4) and program(dcorch-engine); };
|
|
filter f_dcorchapiproxy { facility(local4) and program(dcorch-api-proxy); };
|
|
|
|
filter f_dcdbsyncapi { facility(local4) and program(dcdbsync-api); };
|
|
|
|
filter f_dcagentapi { facility(local4) and program(dcagent-api); };
|
|
|
|
filter f_dccertmon { facility(local4) and program(dccertmon); };
|
|
|
|
# Distributed Cloud Log Path
|
|
log {source(s_src); filter(f_dcmanagermanager); destination(d_dcmanager); };
|
|
log {source(s_src); filter(f_dcmanageraudit); destination(d_dcmanager_audit); };
|
|
log {source(s_src); filter(f_dcmanagerstate); destination(d_dcmanager_state); };
|
|
log {source(s_src); filter(f_dcmanagerorchestrator); destination(d_dcmanager_orch); };
|
|
log {source(s_src); filter(f_dcmanagerapi); destination(d_dcmanager_api); };
|
|
log {source(s_src); filter(f_dcorchengine); destination(d_dcorch); };
|
|
log {source(s_src); filter(f_dcorchapiproxy); destination(d_dcorch); };
|
|
log {source(s_src); filter(f_dcdbsyncapi); destination(d_dcdbsync); };
|
|
log {source(s_src); filter(f_dcagentapi); destination(d_dcagent); };
|
|
log {source(s_src); filter(f_dccertmon); destination(d_dccertmon); };
|
|
|