update/software/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
..
api Add deletion constraint 2024-03-20 22:41:48 +00:00
authapi Create 2nd thread to handle USM REST API requests 2024-03-01 14:39:33 +00:00
db Deploy show implement 2024-03-05 12:27:56 -03:00
templates USM State Machine 2023-06-29 17:53:39 +00:00
tests Remove duplicate load import script copy 2024-02-28 17:38:51 -03:00
utilities Improve logging for deploy python scripts 2024-02-28 11:00:50 -03:00
__init__.py Package the pecan templates with the code 2023-07-17 15:33:45 +00:00
apt_utils.py Fix pep8 errors 2024-01-23 20:22:42 +00:00
base.py Update unit tests for new software component 2023-05-01 21:09:15 +00:00
certificates.py Setup controller and agent processes for "software" 2023-04-20 19:22:30 +00:00
config.py Use "apt-ostree" to manage software deploy start 2024-01-10 21:23:24 +00:00
constants.py Add deletion constraint 2024-03-20 22:41:48 +00:00
dc_utils.py Add deletion constraint 2024-03-20 22:41:48 +00:00
exceptions.py Create release_data wrapper classes 2024-02-14 18:35:35 +00:00
messages.py deploy state changed update 2024-02-23 13:43:09 +00:00
ostree_utils.py Add retry logic for mount 2023-11-29 21:09:06 +00:00
release_data.py Add deletion constraint 2024-03-20 22:41:48 +00:00
release_signing.py Setup controller and agent processes for "software" 2023-04-20 19:22:30 +00:00
release_verify.py Setup controller and agent processes for "software" 2023-04-20 19:22:30 +00:00
software_agent.py Fix deploy host for in-service patch 2024-03-19 11:40:34 -03:00
software_controller.py Add deletion constraint 2024-03-20 22:41:48 +00:00
software_entities.py Add deletion constraint 2024-03-20 22:41:48 +00:00
software_functions.py Add deletion constraint 2024-03-20 22:41:48 +00:00
software_worker.py Create wrapper to run commands and log structured output 2023-11-24 16:26:07 -03:00
sysinv_utils.py Add deletion constraint 2024-03-20 22:41:48 +00:00
utils.py Add deletion constraint 2024-03-20 22:41:48 +00:00