ha/service-mgmt-api/sm-api
junfeng-li 23f48bd545 Deploy state sync on swact
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>
2024-02-28 20:07:48 +00:00
..
etc/sm-api Create independent sm-api client 2018-08-13 14:16:57 -04:00
scripts Add debian package for service-mgmt-api 2021-11-03 13:45:22 +00:00
sm_api Deploy state sync on swact 2024-02-28 20:07:48 +00:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:26 -07:00
setup.py StarlingX open source release updates 2018-05-31 07:36:26 -07:00