3042 Commits

Author SHA1 Message Date
Istvan Imre
ff78d7f659 Dynamic workflow name evaluation.
Evaluate workflow names dynamically, so yaql or jinja expression
is allowed as sub-workflow name. Tasks names are not yet
dynamically evaluated.

Partially implements: blueprint mistral-dynamic-actions

Change-Id: Icfe591e27a4f45c2e3dcfa83512217f3b2122189
2017-08-16 13:17:10 +02:00
18bab73ed7 Update reno for stable/pike
Change-Id: I39e3f68f6dd868325a250892574cd8dbaf18f4c8
2017-08-11 13:32:53 +00:00
Jenkins
e7bbe4cd75 Merge "Cascade pause from pause-before in subworkflows" 2017-08-11 12:03:28 +00:00
Jenkins
a240e9921e Merge "Fix the pep8 commands failed" 2017-08-10 21:06:13 +00:00
Jenkins
134fb8c5c9 Merge "Add doc8 rule and check doc/source files" 2017-08-10 21:06:08 +00:00
Jenkins
77bae03e88 Merge "Move dsl_v2 document to user guide" 2017-08-10 21:05:52 +00:00
junboli
a2c1db4b14 Add doc8 rule and check doc/source files
doc8 is a linter for documents and used in openstack-manuals. It is better to enforce
document linters for simple checking. This change is to add doc8 in tox file and fix
line too long in some files.

The current rules are as bellow:
- invalid rst format - D000
- lines should not be longer than 79 characters - D001
- no trailing whitespace - D002
- no tabulation for indentation - D003
- no carriage returns (use unix newlines) - D004
- no newline at end of file - D005

Change-Id: Ibba3f0e1c3f724563deb27bbf4f13a8040799687
Closes-bug: #1709571
2017-08-09 16:50:33 +08:00
Nikolay Mahotkin
8a1572a7e8 [Triggers] Fix running openstack actions via triggers
Change-Id: I49f77861825e6c7bd91f7de74f44ff02cefb04c8
Closes-Bug: #1709566
2017-08-09 11:49:09 +03:00
Jenkins
bb30b1b51a Merge "Fix event-triggers workflow namespace" 2017-08-09 07:45:22 +00:00
Jenkins
3ef369f0e1 Merge "Cascade pause and resume to and from subworkflows" 2017-08-08 18:57:43 +00:00
liuyamin
827aca56e1 TrivialFix: Fix typo
Change-Id: I5cc1ba791f4b8508af521adfa0493c8caff85731
2017-08-08 16:14:10 +08:00
Winson Chan
16b54d8766 Cascade pause from pause-before in subworkflows
When a workflow is paused by pause-before, the state will cascade down
to other subworkflows and up to parent workflow.

Change-Id: Ied178fe08f8308455bf05b3168635a3b69799cec
Closes-Bug: #1700196
2017-08-07 21:02:15 +00:00
Winson Chan
8b642e9856 Cascade pause and resume to and from subworkflows
When a workflow is paused/resumed, the state will cascade down to
subworkflows. When a subworkflow is paused, the parent workflow
will also be paused. When a subworkflow is resumed, the parent
workflow will only resume if there are no other subworkflows in
paused state.

Change-Id: I4ae8cfb08d17f326fc2ef0864376ed594cd0b3cf
Closes-Bug: #1700196
2017-08-07 20:40:15 +00:00
Jenkins
3de1918c30 Merge "[Trusts] Fix deleting trust" 2017-08-07 12:09:31 +00:00
Sharat Sharma
4a64ae1bb5 Move dsl_v2 document to user guide
Also added a note for to indicate std.js as the alias for
std.javascript.

Change-Id: I20cd94d0423c1b97f8ec83973aabbb7ecee75b49
2017-08-07 16:10:04 +05:30
OpenStack Proposal Bot
f45f609ab5 Updated from global requirements
Change-Id: I0dcf670cf32702a90ccf2b7051418303d3281095
2017-08-07 00:45:42 +00:00
Nikolay Mahotkin
b8e16648eb [Trusts] Fix deleting trust
* Delete trust only after the last execution of
   cron-trigger or event-trigger is completed.
   Otherwise during workflow execution we get
   an error "Unauthorized error: No such trust <id>"

Closes-Bug: #1708139

Change-Id: I42849d4f7c517f8a27e0d26c9cf0d98f9c7fb94a
2017-08-04 12:22:19 +03:00
Jenkins
abebc649a0 Merge "Allow async action execution to be paused and resumed" 2017-08-04 05:07:31 +00:00
Jenkins
e779a6835b Merge "Fix some reST field lists in docstrings" 2017-08-04 04:01:52 +00:00
Nikolay Mahotkin
cab943528f Fix event-triggers workflow namespace
Related-Bug: #1708380

Change-Id: I5b23f22790230af2e917c3b3195373e00b87f64a
2017-08-03 21:19:28 +03:00
Jenkins
dbc2b32722 Merge "Fixed crontrigger execution error." 2017-08-03 17:59:39 +00:00
Jenkins
9f335810e4 Merge "Small typo fix" 2017-08-03 14:47:17 +00:00
Jenkins
514a4d23d6 Merge "Add Glare action pack" 2017-08-03 14:47:10 +00:00
Jenkins
f0e1e7b4fb Merge "Set mistral-dashboard default branch to master" 2017-08-03 14:47:03 +00:00
Jenkins
eee459e2e0 Merge "Use recommended function to setup auth middleware in devstack" 2017-08-03 14:46:52 +00:00
Sharat Sharma
0b93cfa9bf Small typo fix
Change-Id: Id7d3c206af61eaa5e642f425beed8165bc3393f9
2017-08-03 16:22:29 +05:30
Jenkins
75ed360270 Merge "Fix drop index in version 022 DB upgrade script" 2017-08-03 09:27:14 +00:00
wangxu
c5b46baa56 Fixed crontrigger execution error.
Change-Id: I9782ccbd863834fb8e515f06aeb5c905bfe9201e
Closes-Bug: #1708380
2017-08-03 16:56:04 +08:00
Jenkins
c7fe4e8453 Merge "Fix auth in actions if there is no auth_uri in context" 2017-08-03 00:45:44 +00:00
Winson Chan
1f35e91d7b Fix drop index in version 022 DB upgrade script
After the namespace related patch, the version 22 of the database upgrade
script returns an error on PostgreSQL database indicating that the index
"name" does not exist on the table "workflow_definitions_v2". This patch
adds a check before executing the drop index operation.

Change-Id: I9a11f489b39c091d84bf7ff9c6689fa5e96c21ce
Closes-Bug: #1708296
2017-08-02 21:33:49 +00:00
Winson Chan
c9fcb03c6d Allow async action execution to be paused and resumed
Allow async action execution to be paused and resumed by
updating the action execution via API. When an action
execution is paused, the state transition will cascade up
to the task execution.

Implements: blueprint mistral-action-ex-pause-resume
Change-Id: I87233d27c46cfe86a23beb8dfdc96f77e58d24c1
2017-08-02 19:02:33 +00:00
Jenkins
326da7b77a Merge "Use more specific asserts in tests" 2017-08-02 15:29:37 +00:00
Jenkins
0be45cb2ae Merge "Create and run a workflow within a namespace" 2017-08-02 15:29:30 +00:00
Jenkins
3de8302035 Merge "Allow to list all cron-triggers" 2017-08-02 15:24:45 +00:00
Brad P. Crochet
087f705659 Set mistral-dashboard default branch to master
It does not make sense to use MISTRAL_BRANCH as the default setting
for MISTRAL_DASHBOARD_BRANCH. When testing a gerrit patch manually
with devstack, it bombs out because it can't find the gerrit ref.

Change-Id: Ic8527fc95673337b200e10279ea9f244323e61fa
2017-08-02 07:02:40 -04:00
Jenkins
cf709573a8 Merge "TrivialFix: Fix typo" 2017-08-02 08:47:57 +00:00
Michal Gershenzon
356a1cf274 Create and run a workflow within a namespace
Add release note and improve docs.

Change-Id: I6edc4e22f90c029d7f3b6e149396cd741266c6a9
2017-08-02 05:19:47 +00:00
Jenkins
f2ed583540 Merge "Create and run a workflow within a namespace" 2017-08-01 20:02:02 +00:00
Jenkins
7e57dd69e3 Merge "Add releasenote for public event triggers" 2017-08-01 16:28:26 +00:00
Nikolay Mahotkin
7d8d4fba82 Allow to list all cron-triggers
Closes-Bug: #1707942

Change-Id: Ia69972493a070aac4d413e27b26b02f6c60b19de
2017-08-01 18:39:59 +03:00
Jenkins
a1a3182bca Merge "Remove deprecation warning from tests" 2017-08-01 13:59:24 +00:00
Michal Gershenzon
cbee740de5 Create and run a workflow within a namespace
Allow adding many workflows with the same name.
The way this works is by adding the new workflows under another
namespace.

Notice that:
  1. Namespaces are not part of the mistral DSL.
  2. When executing a workflow, the namespace passes down to the
     subworkflow.
  3. When searching for the sub-workflow definition -
     If no workflow was found in the given namespace, than the defualt
     namespace will be used.
  4. The default namespace is an empty string.
  5. The namespace property or the workflow execution will be under
     params

Partially-Implements: blueprint create-and-run-workflows-within-a-namespace

Change-Id: Id248ec5906a0899d188675d002b45f6249d36d90
2017-08-01 13:51:05 +00:00
Nikolay Mahotkin
5c15556fb6 Fix auth in actions if there is no auth_uri in context
Closes-Bug: #1702818

Change-Id: Ieee6b5133366e5618b8600db9d5672df20084206
2017-08-01 14:02:49 +03:00
Béla Vancsics
b345505866 Use more specific asserts in tests
Instead of assertTrue and assertFalse use more specific asserts.
They are compatible with Python 2.7[1] and 3.5[2]

[1]: https://docs.python.org/2.7/library/unittest.html
[2]: https://docs.python.org/3.5/library/unittest.html

Change-Id: I1494507c7dc76a9b2e4ff92b9f99abf8447e4543
2017-08-01 10:06:46 +02:00
Nikolay Mahotkin
96e2f8eeb8 Add releasenote for public event triggers
Change-Id: I15c2ece923a9477882f3859fb5cb67d7af2c7391
2017-08-01 10:44:53 +03:00
Jenkins
6bd95e1fa2 Merge "[Event-triggers] Allow public triggers" 2017-08-01 07:38:03 +00:00
Michal Gershenzon
4e38d9d789 Remove deprecation warning from tests
manager and alt_manager are marked for removal in Queens[1]
This commit replaces them with os_primary and os_alt.

[1] https://github.com/openstack/tempest/blob/master/tempest/test.py#L369-#L385

Change-Id: Icd3e9e3a52369fa159898346057c8322c63ef993
2017-07-31 15:33:44 +00:00
Mike Fedosin
fec851381d Add Glare action pack
This patch adds Glare action pack into Mistral.

Change-Id: Icf4ce5a37f555d01cf9c0b865a6816e3f6801f3a
Implements-blueprint: glare-action-pack
2017-07-31 15:08:22 +00:00
Jenkins
212119dcfc Merge "Fix cron-triggers and openstack actions" 2017-07-31 12:27:26 +00:00
junboli
1539bfad76 TrivialFix: Fix typo
Change-Id: I185843cacbb4626841a74f6577c467910adf6830
2017-07-31 18:57:22 +08:00