3653 Commits

Author SHA1 Message Date
hardikj
834747b5d9 Add namespace support for workbooks
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
2018-07-26 17:13:58 +05:30
Dougal Matthews
0867becb8f Use json.loads instead of eval() on the config
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
2018-07-24 10:30:03 +01:00
Zuul
8806b5b7d8 Merge "Use register_session_conf_options API" 2018-07-24 08:50:20 +00:00
Zuul
b123bb56e6 Merge "Update the Custom Action documentation to use mistral-lib" 2018-07-24 07:58:52 +00:00
Zuul
2ffa23a082 Merge "Add documentation on event notifier" 2018-07-24 07:58:51 +00:00
Dougal Matthews
e1e6c7a0cf Update the Custom Action documentation to use mistral-lib
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
2018-07-23 14:14:40 +01:00
Winson Chan
38bfd91a22 Add documentation on event notifier
Add documentation on the notifier architecture and configuration
of the event publishers.

Co-Authored-By: Dougal Matthews <dougal@redhat.com>
Change-Id: I5e7d8ac81225cfe4082a827a52447f95dd4789a0
2018-07-23 13:59:26 +01:00
Dougal Matthews
fe6f0c5c34 Migrate mistral to using the serialization code in mistral-lib
We previously ported the code to mistral-lib, but Mistral has been using
the original copy.

Closes-Bug: #1782765
Change-Id: Ifb518d821097fdf2ec76161ae00f312ced19c272
2018-07-23 12:55:41 +01:00
Zuul
8b0171ba25 Merge "Install mistral-lib as a sibling for tox jobs" 2018-07-23 10:52:50 +00:00
Zuul
6c4e089f00 Merge "Use on-clause and retry_policy get_spec for validation" 2018-07-20 11:47:53 +00:00
Zuul
e788284086 Merge "Return the result of the MistralHTTPAction" 2018-07-20 11:47:52 +00:00
Zuul
369c513c09 Merge "Fix testenv cover in tox.ini" 2018-07-20 07:21:09 +00:00
wangxiyuan
dcb4355e59 Use register_session_conf_options API
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
2018-07-20 09:22:59 +08:00
Brad P. Crochet
4bb9d5d5a0 Install mistral-lib as a sibling for tox jobs
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
2018-07-19 12:56:52 -04:00
Zuul
a5249e3904 Merge "Replace port 35357 with 5000 for "identity_uri"" 2018-07-19 11:41:57 +00:00
Zuul
d2b0c103d7 Merge "Release note for adding "oslo_rpc_executor" config option" 2018-07-19 08:22:36 +00:00
Renat Akhmerov
d3305c709e Release note for adding "oslo_rpc_executor" config option
Change-Id: Iddd02f3f428cc0ab68a7a301cf5f5db19f6a083a
Closes-Bug: #1696469
2018-07-19 12:08:04 +07:00
Ha Manh Dong
a73fa351c8 Fix testenv cover in tox.ini
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
2018-07-19 11:43:35 +07:00
Zuul
910948abaa Merge "Add the config option for Oslo Messaging executor type" 2018-07-18 13:39:02 +00:00
hardikj
03fbd83cd9 Fix rev-id parameter in mistral-db-manage
Accept '--rev-id' parameter, and forward it to alembic revision
command internally.

Change-Id: Ib4d5a056eba792f468868b12ab011f71999713a2
Closes-Bug: #1782127
2018-07-17 17:13:56 +05:30
Zuul
41e663411c Merge "modify grammar mistake" 2018-07-16 12:24:05 +00:00
Dougal Matthews
549ec1f3bf Return the result of the MistralHTTPAction
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
2018-07-16 11:43:26 +01:00
sunqingliang6
30e3062385 modify grammar mistake
Change-Id: Ibefc994787ddf009afbe685771923f5753731495
2018-07-16 07:47:52 +00:00
Zuul
9b55db4bf0 Merge "Pin get-pip.py to 3.2" 2018-07-15 09:22:51 +00:00
Zuul
31e97e2c6b Merge "add docs for states. add docs explaining what each state mean." 2018-07-12 17:30:17 +00:00
amassalh
259d8a8099 add docs for states.
add docs explaining what each state mean.

Change-Id: I0092473c3be7f5ef5a28532984ebbe753434becb
2018-07-12 08:50:52 +00:00
Renat Akhmerov
0448383d20 Add the config option for Oslo Messaging executor type
* 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
2018-07-12 14:36:19 +07:00
Zuul
b45fe9cb42 Merge "Follow the new PTI for document build" 2018-07-10 08:34:23 +00:00
Zuul
e2a658a53d Merge "detect https and act accordingly" 2018-07-09 13:12:35 +00:00
jacky06
f11ddeb6eb Pin get-pip.py to 3.2
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
2018-07-09 10:48:13 +00:00
Nguyen Van Trung
69d34b2e85 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I4dd494a46011aa8547f52b442f9cba4d402fb91a
2018-07-09 14:54:23 +07:00
Zuul
aa7b5d9fc0 Merge "Fix def _admin keystone client factory with trust scope" 2018-07-06 10:03:36 +00:00
Zuul
fdc597a424 Merge "fix tox python3 overrides" 2018-07-04 17:03:23 +00:00
Zuul
2ee75b8faa Merge "Refresh a number of retry a task when task was rerun" 2018-07-04 17:03:22 +00:00
Yuval Adar
5cfaa9ca06 detect https and act accordingly
Use six for url parsing

Closes-Bug: 1717354
Change-Id: Id6a08cf01f4bbc341e1488bebbdc175d86c27d54
2018-07-04 10:55:13 +03:00
Guy Shaanan
2bfc9d1ad8 Add CloudFlow info to Mistral documentation
Change-Id: I7990abcbefbae08f69b3c2f7632eff95f0229f89
2018-07-04 09:29:57 +03:00
Zuul
c08cbf241c Merge "Remove time.sleep from tests" 2018-07-03 09:31:55 +00:00
Zuul
38b28db168 Merge "Fix typos" 2018-07-02 15:24:22 +00:00
Zuul
2abd94b6d1 Merge "Add missing query paramater scope to the workbook api" 2018-07-02 12:54:54 +00:00
Zuul
bfe6c895fa Merge "switch mysql functional tests to PyMySQL" 2018-07-02 12:46:49 +00:00
Zuul
c0f6157cbd Merge "Update install guide about running mistral" 2018-07-02 10:24:52 +00:00
Zuul
3471c439da Merge "Add missing Tacker actions to Mistral" 2018-07-02 08:56:04 +00:00
Zuul
f12d80244f Merge "Add better output to the user deleting executions" 2018-07-02 08:56:03 +00:00
Cong Phuoc Hoang
49ccf8ea7b Add missing Tacker actions to Mistral
Add missing Tacker actions to Mistral that includes vnf forwarding
graph (vnffg), vnffg descriptor, network service (ns) and ns
descriptor actions

Change-Id: I0b0f214ad3f3990fa0af98923d34efebf6e2f8f3
2018-06-29 10:40:26 +09:00
Doug Hellmann
60fba7239e fix tox python3 overrides
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>
2018-06-28 12:46:57 +00:00
chenxiangui
d74f7cb286 Fix typos
Fix typos 'a action' with 'an action'

Change-Id: I06fd03ba4bd40b5783a212762e766a06f52011a4
2018-06-28 12:35:05 +00:00
Adriano Petrich
981b210508 Add better output to the user deleting executions
Add a better hint on what to do if the user cannot delete the execution.

Closes-Bug: 1778756
Change-Id: I3322b4b29d8be7555a2fa3a5a3524a31ed5637a6
2018-06-28 09:29:43 +01:00
Doug Hellmann
59e43988fd switch mysql functional tests to PyMySQL
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>
2018-06-27 20:40:39 +00:00
Kevin Pouget
8d14c3ebc6 Add missing query paramater scope to the workbook api
Change-Id: I4f2ef1fcaa5a0b0e931319178f6cc5bae96e8fc3
Closes-Bug: #1757499
2018-06-27 14:18:39 +00:00
Adriano Petrich
dc8b50e036 Remove time.sleep from tests
Use the await method instead of time.sleep to improve the tests.

Closes-Bug: 1778757
Change-Id: I084b8acfa01e80ac287983667e3285d7fc0d58b9
2018-06-27 12:29:02 +01:00