distcloud/distributedcloud/dcmanager/api
Swapna Gorre eeb70d47c2 Add 'subcloud deploy delete' command to dcmanager
This commit adds the subcloud deploy delete command to dcmanager.
It is used to delete deploy files under /opt/platform/deploy.

Test Cases:

1) PASS: dcmanager subcloud deploy delete with no release
2) PASS: dcmanager subcloud deploy delete --release 23.09
3) PASS: dcmanager subcloud deploy delete --release 22.12
4) PASS: dcmanager subcloud deploy delete --release 21.12
         fails using the load 23.09 we support n-1.
5) PASS: dcmanager subcloud deploy delete --prestage-image
6) PASS: dcmanager subcloud deploy delete --deployment-files
7) PASS: dcmanager subcloud deploy delete fails when
	 deploy files doesn't exist already.

Story: 2010718
Task: 49190

Change-Id: I94d629009b185f67e3da45d010a6492b9b6d6f17
Signed-off-by: Swapna Gorre <swapna.gorre@windriver.com>
2024-01-09 03:51:31 -05:00
..
controllers Add 'subcloud deploy delete' command to dcmanager 2024-01-09 03:51:31 -05:00
policies Add 'subcloud deploy delete' command to dcmanager 2024-01-09 03:51:31 -05:00
__init__.py Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
api_config.py Implement access control for DC API 2022-09-22 18:26:35 -03:00
app.py DC Manager API request audit logging 2022-02-24 21:01:00 +00:00
policy.py Implement access control for DC API 2022-09-22 18:26:35 -03:00
README.rst Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00

api

DC Manager API is Web Server Gateway Interface (WSGI) application to receive and process API calls, including keystonemiddleware to do the authentication, parameter check and validation, convert API calls to job rpc message, and then send the job to DC Manager Manager through the queue. If the job will be processed by DC Manager Manager in synchronous way, the DC Manager API will wait for the response from the DC Manager Manager. Otherwise, the DC Manager API will send response to the API caller first, and then send the job to DC Manager Manager in asynchronous way.

Multiple DC Manager API could run in parallel, and also can work in multi-worker mode.

Multiple DC Manager API will be designed and run in stateless mode, persistent data will be accessed (read and write) from the DC Manager Database through the DAL module.

Setup and encapsulate the API WSGI app

app.py:

Setup and encapsulate the API WSGI app, including integrate the keystonemiddleware app

api_config.py:

API configuration loading and init

enforcer.py

Enforces policies on the version2 APIs