This patch brings namespace support to workbooks.
Namespace of the workbook is inherited by workflows.
Implements: blueprint mistral-namespace-for-actions-workbooks
Change-Id: I2c66b3961915f0f35a9c468eb6dd0c0c70995234
eval isn't safe or secure and shouldn't ever be used in this situation.
We can possibly use oslo.config for this, so this is only a partial fix
but might be good enough. This change removes a security issue.
Partial-Bug: #1783293
Change-Id: Id5c02d92ad7335c3d7d42ac353b88376cdb704fb
We should have updated this some time ago. Importing mistral itself
hasn't been the best way to write actions for a while.
Change-Id: I27df8865f8fef81fcfd1cb3de1a2bde6c6281cf6
Add documentation on the notifier architecture and configuration
of the event publishers.
Co-Authored-By: Dougal Matthews <dougal@redhat.com>
Change-Id: I5e7d8ac81225cfe4082a827a52447f95dd4789a0
We previously ported the code to mistral-lib, but Mistral has been using
the original copy.
Closes-Bug: #1782765
Change-Id: Ifb518d821097fdf2ec76161ae00f312ced19c272
Using this API is needed to correctly initialize the configuration.
[keystone_authtoken] group is used for keystonemiddleware to validating
token.
The new [keystone] group is used for keystoneauth to initialization
the keystone session.
Co-Authored-By: wangxiyuan<wangxiyuan@huawei.com>
Change-Id: Ie3ab512b0ab42c0f97b3099e0787f4edee08ddce
Partial-Bug: #1775140
If mistral-lib is not processed as a required-project, it won't get
treated properly as a depends-on. This should fix that.
Change-Id: I1f42836ec549a3e56681af29738868bf5896e971
In [testenv:cover] section, the setenv need add the {[testenv]setenv}
to inherit from the global setenv configuration, and also the $project
shoud be replace to mistral.
Change-Id: I0fd56730cc921da6d177eaa05070decf264a1f18
Accept '--rev-id' parameter, and forward it to alembic revision
command internally.
Change-Id: Ib4d5a056eba792f468868b12ab011f71999713a2
Closes-Bug: #1782127
If the HTTP request fails, we need to fail the task. Returning the error
from the parent class will do this. While this means we also return the
success result it will be ignored by the Mistral engine.
Credit to @lijianying10 on GitHub for sending this fix via a pull
request. Tests were then added to verify the change.
Closes-Bug: #1779973
Change-Id: Ib8754c8de2d6677d71383b3793d0fa168be575f5
* With Pymysql driver and "eventlet" Oslo Messaging executor type
Mistral seems to work fine. Just in case there's a regression in
comparison with using "blocking" executor this patch makes a
a change in a form of a config option that defines an RPC
executor rather making it hardcoded.
Change-Id: Id73364eee29f2113fc983718b9891a496ca32ee4
As get-pip.py evolves based on pip 10, while we're still using
pip 9, changes in the way it can be used are causing problems.
For example, the ability to use --download is no longer there.
As such, let's pin to a known good version and leave it at that
until we no longer need to use this script. Version 3.2 maps to
pip 7.1.2 which fulfills our needs.
Change-Id: Ic9210c3389776385286f6215e6673d75fa2d01d9
Add missing Tacker actions to Mistral that includes vnf forwarding
graph (vnffg), vnffg descriptor, network service (ns) and ns
descriptor actions
Change-Id: I0b0f214ad3f3990fa0af98923d34efebf6e2f8f3
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I23197a23001cd28f7137fa5741a8a7ddcc05c101
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
The mysql-python library does not support Python 3, so to be able to
run the functional tests under Python 3 we need a new library. The
oslo.db package uses and supports PyMySQL.
In addition to changing the dependency, change the database connection
string used.
Change-Id: Ide944f8df051bb5e011af1c881387a166d041b7c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Vitalii Solodilov <mcdkr@yandex.ru>