This commit replaces the usage of PatchingClient, following the changes
from 1. It also, additionally, removes the sync status 'not-available'
and updates the software audit to use the software_audit_requested
column in the subcloud_audits table.
Test plan:
1. PASS: Deploy a DC system.
2. PASS: Manage a subcloud and verify that all endpoints are set as
'in-sync'.
4. PASS: Unmanage a subcloud and verify that all endpoints are set as
'unknown'.
5. PASS: Leave audit running for a while and ensure that there are no
errors logged.
6. PASS: Verify that the 'dcmanager subcloud list' command appropriately
displays the resulting sync-status column based on the audit status
of each endpoint.
7. PASS: In a newly installed system, execute a select statement in the
subcloud_audits table and verify that the software_audit_requested
column exists and it is filled with False by default.
8. PASS: Apply the migrations in an already deployed system and verify
that the values in spare_audit_requested are moved to
software_audit_request in the subcloud_audits table.
9. PASS: Upload an iso using the dcorch proxy and verify it completes
successfully.
10. PASS: Perform a system upgrade successfully.
[1] https://review.opendev.org/c/starlingx/distcloud/+/949363
Story: 2011311
Task: 52197
Change-Id: I8837c1f4faf308d2a380c0133121427de6ed64a2
Signed-off-by: Raphael <Raphael.Lima@windriver.com>