This commit makes the necessary changes to
platform::sm to configure and provision the new dc-certmon service.
Note: The certmon module will be revisited later to remove
migrated functionality once dccertmon is fully implemented
and operational.
These changes are part of a greater set of commits to introduce
the dccertmon service:
[1] https://review.opendev.org/c/starlingx/distcloud/+/941210
[2] https://review.opendev.org/c/starlingx/ha/+/941205
For background and context, please see commit message from [1].
Test plan:
- PASS: Bootstrap and unlock a DC system:
1) Subcloud
2) DC System Controller
Verify service is started.
- PASS: Bootstrap and unlock a non-DC system (standalone AIO):
- Verify Standalone non-DC system controller doesn't have
service started
- PASS: Run 'sm-restart service dccertmon' and verify the dccertmon
service was correctly restarted and service is working as
expected.
- PASS: Induce a failure in dccertmon code. Verify sm correctly
restarts the service until the failure is corrected.
Note: This commit has been tested alongside the related changes and
their respective test plans. [1][2]
Depends-on: https://review.opendev.org/c/starlingx/ha/+/941205
Story: 2011311
Task: 51668
Change-Id: Idaa598a405693adcff577e55ade58a7bb986280b
Signed-off-by: Salman Rana <salman.rana@windriver.com>