update/software
Bin Qian 229acb985f Add deletion constraint
This change adds checks before deleting software releases:
1. software release is available or unavailable
2. When it is on a system controller, the release is not being used by a
   subcloud
This change also update the following:
1. removed the exception handling in controller level, moved to
   exception hook
2. CLI code to display HTTP error, only handles 500 status code, by
   displaying message from API, all other 4xx, 5xx status code display
   HTTP error directly.
3. ensure CLI return 1 for unsuccessful requets (status code 500)
4. fixed some minor issues

Story: 2010676
Task: 49657

TCs:
     passed: observe delection rejected because of release not found,
release is not in available or unavailable state.
     passed: delete an available release
     passed: on system controller, successfully delete scenarios
     passed: (simulated) on system controller with subcloud, delete
     release used by subcloud is rejected

Change-Id: I306b1d8604113b92d907384844e8e8107835a463
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2024-03-20 22:41:48 +00:00
..
debian Improve logging for deploy start shell scripts 2024-02-28 11:07:03 -03:00
scripts Fix pxe files copy and permission during upload 2024-03-11 12:00:19 -03:00
service-files Create message class to sync deploy state between controllers 2024-02-16 15:51:49 +00:00
software Add deletion constraint 2024-03-20 22:41:48 +00:00
.coveragerc Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
Hacking.rst Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
LICENSE Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
README.rst Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
pylint.rc Add version to software-api and software client 2024-02-08 04:23:29 -05:00
requirements.txt Add version to software-api and software client 2024-02-08 04:23:29 -05:00
setup.cfg deploy state changed update 2024-02-23 13:43:09 +00:00
setup.py Bash completion for USM 2023-08-03 16:21:00 +00:00
test-requirements.txt Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
tox.ini update tox ignore list to skip H904 2023-10-18 17:14:49 +00:00

README.rst

software

StarlingX Unified Software Delivery and Management