ha/service-mgmt-api/sm-api/sm_api/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
..
controllers Deploy state sync on swact 2024-02-28 20:07:48 +00:00
middleware py3: use real division operator 2021-08-12 08:57:13 -04:00
__init__.py Fix flake8 errors and disable ignore case 2018-11-07 08:12:37 +08:00
acl.py Fix flake8 errors and disable ignore case 2018-11-07 08:12:37 +08:00
api.ini StarlingX open source release updates 2018-05-31 07:36:26 -07:00
api.py Re-enable important py3k checks for ha 2021-10-28 17:10:41 -03:00
app.py Fix flake8 errors and disable ignore case 2018-11-07 08:12:37 +08:00
config.py Fix flake8 errors and disable ignore case 2018-11-07 08:12:37 +08:00
hooks.py Fix flake8 errors and disable ignore case 2018-11-07 08:12:37 +08:00