591726bea6
With the creation of the new CLI [1] command software-deploy-strategy, the use_usm flag is no longer needed. The following commits will be reverted after this is merged: - https://review.opendev.org/c/starlingx/stx-puppet/+/890326 - https://review.opendev.org/c/starlingx/stx-puppet/+/891343 Test Plan: PASS: Execute the software orchestration successfully. - Use the new CLI [1] to execute software orchestration - Verify create, show, apply, abort, and delete for new strategy type: software - Software, load, and patching audits working properly. PASS: Execute the upgrade orchestration - Verify create, show, apply, abort, and delete for type: upgrade 1: https://review.opendev.org/c/starlingx/distcloud-client/+/908539 Story: 2010676 Task: 49556 Change-Id: I38c3868e054cf22dd986016ae5226aaf0e70dd67 Signed-off-by: Hugo Brito <hugo.brito@windriver.com> |
||
---|---|---|
.. | ||
controllers | ||
policies | ||
proxy | ||
__init__.py | ||
api_config.py | ||
app.py | ||
policy.py | ||
README.rst |
api
DC Orchestrator API is Web Server Gateway Interface (WSGI) applications 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 Orchestrator Engine through the queue. If the job will be processed by DC Orchestrator Engine in synchronous way, the DC Orchestrator API will wait for the response from the DC Orchestrator Engine. Otherwise, the DC Orchestrator API will send response to the API caller first, and then send the job to DC Orchestrator Engine in asynchronous way.
Multiple DC Orchestrator API could run in parallel, and also can work in multi-worker mode.
Multiple DC Orchestrator API will be designed and run in stateless mode, persistent data will be accessed (read and write) from the DC Orchestrator 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
- apicfg.py:
-
API configuration loading and init
- enforcer.py
-
Enforces policies on the version2 API's