This commit is to ensure both controllers
deployment state is in synced before host
swact during platform upgrade.
If the USM deploy is not started, this host swact
pre-check is always passed.
During the pre-swact check, the SM calls
USM REST API endpoint to get the controller
sync status. If the controllers deployment state
is not in sync, the host swact is stopped.
Depends-on: https://review.opendev.org/c/starlingx/update/+/906005
Test Plan:
PASS: executed host swact when controllers are in sync
PASS: executed host swact when controllers are not in sync
Task: 49425
Story: 2010676
Change-Id: I8d262a731583f691fd0d85a33ddebcbb12f549e8
Signed-off-by: junfeng-li <junfeng.li@windriver.com>