We are overjoyed to announce the release of: mistral 12.0.0: Mistral Project This release is part of the wallaby release series. The source is available from: https://opendev.org/openstack/mistral Download the package from: https://pypi.org/project/mistral Please report issues through: https://bugs.launchpad.net/mistral/+bugs For more details, please see below. Changes in mistral 11.0.0..12.0.0 --------------------------------- de4d0277 remove unicode from code 328988ed Drop lower-constraints job 421f8433 Fix a field name in the CodeSource class sample c00bf32a Fix action heartbeat checker test 4319dbcb Add API docs for code sources and dynamic actions 7cf2014c [goal] Deprecate the JSON formatted policy file ef162b9e Fix version of requests in constraints b3f609d1 Update doc8 version 6b0ff4b6 Delete redundant print() 1c44a2b1 Fix constraints a73fe5b8 Fix dynamic actions further f78f3350 Code improvements after the dynamic actions patch 9be4f8e1 created a new Api endpoints and added dynamic actions bce07476 Update TOX_CONSTRAINTS_FILE f0bc4366 The encoding parameter in json.loads has been removed in py3.9 0d3509e2 Import HTTPStatus instead of http_client 2cd44558 [doc]Fix invalid url link 87c63f42 Remove a TODO comment about saving an action spec d81dc75a Remove the module mistral/actions/action_factory.py 1d70823c Address a TODO comment in the legacy action provider test 175e5fd5 Add Python3 wallaby unit tests 0a74fb36 Update master for stable/victoria Diffstat (except docs and test files) ------------------------------------- .zuul.yaml | 3 +- .../admin/configuration/samples/policy-yaml.rst | 8 + lower-constraints.txt | 16 +- mistral/actions/action_factory.py | 29 --- mistral/actions/dynamic_action.py | 231 ++++++++++++++++++ mistral/actions/std_actions.py | 2 +- mistral/api/access_control.py | 10 +- mistral/api/controllers/resource.py | 1 + mistral/api/controllers/v2/code_source.py | 234 +++++++++++++++++++ mistral/api/controllers/v2/dynamic_action.py | 257 +++++++++++++++++++++ mistral/api/controllers/v2/resources.py | 113 +++++++++ mistral/api/controllers/v2/root.py | 4 + mistral/api/controllers/v2/workbook.py | 15 +- mistral/api/controllers/v2/workflow.py | 3 +- mistral/config.py | 5 + .../alembic_migrations/versions/001_kilo.py | 6 +- .../versions/012_add_event_triggers_v2_table.py | 2 +- .../013_split_execution_table_increase_names.py | 2 +- ..._dynamic_action_definitions_and_code_sources.py | 81 +++++++ mistral/db/v2/api.py | 77 +++++- mistral/db/v2/sqlalchemy/api.py | 175 +++++++++++++- mistral/db/v2/sqlalchemy/models.py | 58 +++++ mistral/engine/actions.py | 2 - mistral/executors/default_executor.py | 2 - mistral/notifiers/publishers/webhook.py | 4 +- mistral/policies/__init__.py | 4 + mistral/policies/code_sources.py | 83 +++++++ mistral/policies/dynamic_actions.py | 83 +++++++ mistral/services/actions.py | 1 - .../unit/actions/test_dynamic_action_provider.py | 131 +++++++++++ .../unit/actions/test_legacy_action_provider.py | 8 +- .../unit/engine/test_action_heartbeat_checker.py | 5 + releasenotes/notes/add_dynamic_actions.yaml | 13 ++ ...son-formatted-policy-file-0b46c3ef5c9450ef.yaml | 20 ++ releasenotes/source/index.rst | 1 + releasenotes/source/victoria.rst | 6 + requirements.txt | 12 +- setup.cfg | 3 +- test-requirements.txt | 4 +- tools/docker/DOCKER_README.rst | 2 +- tox.ini | 6 +- 48 files changed, 2027 insertions(+), 86 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index 9620816b..bb959f71 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,2 +17,2 @@ oslo.concurrency>=3.26.0 # Apache-2.0 -oslo.config>=5.2.0 # Apache-2.0 -oslo.context>=2.20.0 # Apache-2.0 +oslo.config>=6.8.0 # Apache-2.0 +oslo.context>=2.22.0 # Apache-2.0 @@ -23,2 +23,2 @@ oslo.middleware>=3.31.0 # Apache-2.0 -oslo.policy>=1.30.0 # Apache-2.0 -oslo.utils>=3.37.0 # Apache-2.0 +oslo.policy>=3.6.0 # Apache-2.0 +oslo.utils>=4.0.0 # Apache-2.0 @@ -27 +27 @@ oslo.serialization>=2.21.1 # Apache-2.0 -oslo.service!=1.28.1,>=1.24.0 # Apache-2.0 +oslo.service>=2.1.0 # Apache-2.0 @@ -34 +34 @@ PyYAML>=5.1 # MIT -requests>=2.14.2 # Apache-2.0 +requests>=2.18.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index 16c40073..1287f971 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -7 +7 @@ coverage!=4.4,>=4.0 # Apache-2.0 -doc8>=0.6.0 # Apache-2.0 +doc8>=0.8.1 # Apache-2.0 @@ -13 +13 @@ requests-mock>=1.2.0 # Apache-2.0 -tempest>=17.1.0 # Apache-2.0 +tempest>=21.0.0 # Apache-2.0