Currently, dcorch will try to parse all subcloud responses for
platform as if they were issued by dcagent, which is incorrect for
N-1 subclouds as they don't have dcagent. This commit fixed this by
restricting the parse to subclouds that have dcagent and leaving N-1
subclouds to the old processing style.
Test plan:
- PASS: Manage a subcloud running N-1 version for the first time and
verify all endpoint get audited normally. Soak the subcloud
and verify new audit rounds in dcorch don't try to re-sync
the same previous resources.
- PASS: Run the previous test again with a N release subcloud and
verify the output is the same.
- PASS: Install a certificate without going through dcorch proxy
and verify the discrepancy is detected and the certificate
is installed in all subclouds in the next audit cycle. Soak
the system and verify new audit cycles don't attempt to
install the certificate again.
Closes-bug: 2093104
Change-Id: I0b276353d84e3dcbff03b560315f86e201c58246
Signed-off-by: Victor Romano <victor.gluzromano@windriver.com>