276 Commits

Author SHA1 Message Date
Bo Tran
6418132a9b Fix missing in workflow documents
Fix error missing of change-id: Ic3ca93c967269fe0f4c3f7124470fb04661122ed
Thanks you!

Change-Id: I334067414efdcca281f0a300d3cc9a4ebdb90cba
2019-09-10 15:21:11 +07:00
Bo Tran
f13b69ca69 Fix workflow documents
Change the way get result of tasks

Change-Id: Ic3ca93c967269fe0f4c3f7124470fb04661122ed
2019-09-09 17:40:56 +07:00
Andras Kovi
5eb2a21607 Improve workflow notifications and webhook data
The task_execution_id is required to be able to restore the hierarchy
of tasks and workflows on the notification receiver side. Also, including
the event in the notification is very useful.

Also fix the documentation as multiline strings are not supported in
ini files.

Change-Id: I714fd5c32b0f31f85ac5a4d22d161e662bf18687
2019-09-04 07:12:20 +02:00
Oleg Ovcharuk
4e926a1f13 Fail-on policy
Fail-on policy allows to fail success tasks by condition. It is useful
in cases we have to fail task if its result is unacceptable and it makes
workflow definition more readable.

Change-Id: I57b4f3d1533982d3b9b7063925f8d70f044aefea
Implements: blueprint fail-on-policy
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
2019-08-11 07:21:57 +00:00
Zuul
ee94087c89 Merge "Create docs for the workflow namespaces feature" 2019-08-08 09:31:02 +00:00
Renat Akhmerov
059248f86e Create docs for the workflow namespaces feature
Closes-Bug: #1757102

Change-Id: I4bc6feec72973469ddafab1ce06cff9c8affd48c
2019-08-07 15:53:26 +07:00
Renat Akhmerov
7ae3ec0caf Provide better docs for the "target" task attribute
Change-Id: Ibb0daac0f5f155f4aa7458ab81044fa097c0ea29
Closes-Bug: #1781556
2019-08-02 15:35:43 +07:00
TitanLi
1a2ff63733 A1 B should be tasks rather than workflow levels
recheck no bug A1 and B should be in the task area

Change-Id: If8ff2a19068fd3aebb3f9d3a55d9ed6dfaefdb14
2019-08-02 12:43:19 +08:00
Zuul
e35407a6d6 Merge "Bump openstackdocstheme to 1.30.0" 2019-06-06 10:09:44 +00:00
翟小君
6dc981d814 Bump openstackdocstheme to 1.30.0
Some minor updates including fixing issues with the HTML5 output
generated by Sphinx 2.0, inlining the OpenStack logo rather than
referencing it from elsewhere, and adding a new SOURCE_DATE_EPOCH option
for use in reproducible builds in new release openstackdocstheme 1.30.0.
...to pick up many improvements, including the return of table borders.

Change-Id: I22b652e1eb007616e697cb238fcd9e5f010cd693
2019-06-06 14:27:41 +08:00
pengyuesheng
0731cd1d87 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: Ia9ab0cfb134f0f6ca168e8e746582fe1fc7c9710
2019-06-06 11:02:02 +08:00
Zuul
38d0abb139 Merge "Add release notes to changes to wflanguage execution object" 2019-06-05 11:22:15 +00:00
apetrich
9289f7d28e Add release notes to changes to wflanguage execution object
Change-Id: I976fe5723a8bad81f1c6e30618475aa34e3e2050
depends-on: Ia6c954e688589f69a7463f1b8e02244d029e8b7a
2019-06-03 13:58:43 +02:00
Hervé Beraud
831162ac0a Constraint networkx to <2.3 for Python 2
NetworkX released 2.3, dropping support for Python 2.

 https://github.com/networkx/networkx/blob/master/doc/news.rst

 Also see I0a9700926c9a0db93e782c853c33f1aaee3d4876

 fixed sphinx requirements also according to global requirements
 
 jsonschema should be uncaped also according to global requirements
 but there are conflicts with zakarclient designateclient and irconicclient
 
 so for now I put it in remark

Change-Id: Iea3dbcfa1f6ddf2c413ede5e73fa076c6edccfdf
2019-05-23 09:10:07 +00:00
Zuul
d5d258e552 Merge "Docs improvements: task timeout, global context, Docker and jinja" 2019-05-03 18:35:02 +00:00
Vitalii Solodilov
09cd21d561 Docs improvements: task timeout, global context, Docker and jinja
A not obvious point for users is the task does not retry after a
timeout is triggered. Added clarification in the retry section.

The documentation contains enough example with Jinja usage. Improved
only the create_vm workflow definition.

Added global publishing to the doc. It is brash copy-paste from
https://specs.openstack.org/openstack/mistral-specs/specs/pike/approved/advanced_publishing.html without mention of atomic publish.

Move Docker guides to the installation section.

Change-Id: I149b2e1dff7f86bd356f4dd2f758659469e6a4a8
Closes-Bug: #1789384
Closes-Bug: #1690156
Closes-Bug: #1779244
Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
2019-05-03 17:26:57 +00:00
zhu.boxiang
13d8f532b9 Docs: Change description from on-success to on-error
As was explained above from the example, here it is
on-error clause.

Change-Id: I67d649091e46df0123a236044eb46b3a078b68d2
2019-04-29 14:45:15 +08:00
Zuul
8e94e87259 Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-04-24 15:11:36 +00:00
zhulingjie
46fd1b8a75 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I52d44a333d2eaa4a2e65c150e3640a4a84e291aa
2019-04-24 15:44:25 +08:00
Oleg Ovcharuk
f9f994751a Add delay option to std.echo to emulate external lags.
Change-Id: Id177246996434d2ad1c111b0b7bf78664390045a
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
2019-04-24 07:25:19 +00:00
Marc Gariepy
2cbf543103 Add reply-to to std.email
Reply to address is useful when sending email from an unmonitored email
address and to give user a place to respond in order to contact us.

Add Reply-to as described in section 3.6.2 of RFC5222
https://tools.ietf.org/html/rfc5322#section-3.6.2

Change-Id: Ib6b2bdc130e4f9e5170eb88760d69c3e08d2a1c7
2019-04-15 06:35:31 +00:00
Marc Gariepy
9c65b7d271 Fix doc
smtp_password is Optional in 'std.email'.

Change-Id: If2ae751780eb99f04f920ebb6b7e121225a81280
2019-04-10 11:36:29 -04:00
Brad P. Crochet
0085d08baa Stop using deprecated keystone_authtoken/auth_uri
keystone_authtoken/auth_uri is deprecated [1]. Use www_authenticate_uri
instead.

keystonemiddleware in requirements and lower constraints should be increased
because www_authenticate_uri was introduced in keystonemiddleware 4.18.0.

[1] https://review.openstack.org/#/c/508522/

Change-Id: I99b0ee941d702a28fb4f392d9747d0e2257a42c8
Closes-Bug: #1788174
2019-02-19 10:37:23 +00:00
Zuul
fdd50f0e25 Merge "Omit the twice occured words in index.rst" 2019-01-09 04:52:21 +00:00
guotao.bj
278fc3319a Remove those copy words occured twice times in wf_lang_v2.rst
Change-Id: I5e8e0fca235e34b0663c4557c9e3405abfcd5e36
2019-01-04 11:50:58 +00:00
Zuul
916393eca8 Merge "Fix error workbook example" 2018-11-19 08:50:48 +00:00
guotao.bj
0744042d98 Omit the twice occured words in index.rst
Change-Id: I6ed04a81074e8a38424506d8d3d2b8e7573268e7
2018-11-13 17:21:25 +08:00
visnyei
0aa73edbc1 Mistral install guide
First attempt at creating the mistral install guide

Change-Id: I30142b46e36270b573b9ec10201907811040d94b
Signed-off-by: visnyei <andrea.visnyei@nokia.com>
2018-10-19 10:45:29 +02:00
Zuul
ff8b0cae58 Merge "Remove -u root as mysql is executed with root user" 2018-08-28 07:57:26 +00:00
wanghao
ea40339d05 Fix some format errors in installation guide.
There are some format errors in installation guide,
fix them for better docs.

Change-Id: I351d0d3d0c74ae1fa187aacc44fadc3adf04de15
2018-08-22 17:24:05 +08:00
zhang.lei
1ea5cf8299 Remove -u root as mysql is executed with root user
As openstack installation guides suggest to run mysql with root shell
user, mysql will not ask for password, so the "-u root -p" is useless.

Change-Id: I525a3fdb77f1dfc93d87cc5fe619315d36e7004d
Related-Bug: #1785025
2018-08-21 11:47:29 +00:00
Zuul
12081eb94a Merge "Add namespace parameter to Workbook API doc" 2018-08-01 06:45:16 +00:00
Jose Castro Leon
3c430ef0a2 Improve std.email action
Adds support for cc and bcc addresses to send mails as copy to
administrators and also html formatting. If the html body is specified
the mail will be sent as multipart.

Closes-Bug: #1783349

Change-Id: I2b90354c33052c4b7ae3a98a08e7df1055524a25
2018-07-31 08:43:03 +02:00
Zuul
c54c35c82d Merge "Allow engine commands as task name" 2018-07-30 15:39:01 +00:00
hardikj
9e2074d1eb Add namespace parameter to Workbook API doc
Update API documentation to include namespace parameter details.
Update quickstart guide to latest client outputs.
And minor typo fixes.

Change-Id: I0a2324d0386d5543387ea4bff1d2569b50ad22dd
Implements: blueprint mistral-namespace-for-actions-workbooks
2018-07-30 15:28:34 +05:30
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
Andras Kovi
c08e44f17b Allow engine commands as task name
A change for disabling some task names has introduced a massively
backward incompatible behavior. E.g. even though there is a 'noop' engine
command, the usual way of handling noop is in many cases is to create a
task called the same. The other commands are not used that often but
noop is massively present in currently deployed workflows and it is
not possible to mitigate the error if the workflows are coming from
3rd parties.

This change re-enables the usage of the engine commands as task names
and adds documentation on why this is a useful feature.

Change-Id: If90ee5f787e4587a25c156d12c7750407081bf0d
Related-Change: https://review.openstack.org/#/c/535297
2018-07-19 14:23:18 +00:00
Zuul
a5249e3904 Merge "Replace port 35357 with 5000 for "identity_uri"" 2018-07-19 11:41:57 +00:00
Zuul
9b55db4bf0 Merge "Pin get-pip.py to 3.2" 2018-07-15 09:22:51 +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
Guy Shaanan
2bfc9d1ad8 Add CloudFlow info to Mistral documentation
Change-Id: I7990abcbefbae08f69b3c2f7632eff95f0229f89
2018-07-04 09:29:57 +03:00
pengdake
47a293dabc Update install guide about running mistral
1.Add event-engine and notifier for running by shell.
2.Add service manage by systemd

Change-Id: I156f7d4da91ca30f42275961f8238edadd6720ca
Signed-off-by: pengdake <19921207pq@gmail.com>
Co-Authored-By: Vitalii Solodilov <mcdkr@yandex.ru>
2018-06-24 09:35:36 +04:00
Kupai József
ce18c0bf67 A mechanism to close stuck running action executions
If an executor dies while running an action execution, then the
execution will remain in RUNNING state (because the dead executor
can't signal the error).

Implements blueprint: action-execution-reporting

Change-Id: I51b4db6aa321d0e53bbb85a74f8ebaea0376d22e
2018-06-12 14:15:15 +00:00
zhangdebo
8a8c4bba11 Replace Chinese quotes with English quotes
Change-Id: I85890aff285243cec69ee0a3039290e924324d1b
2018-05-23 16:30:41 +08:00
Vu Cong Tuan
3ee4510f27 Replace port 35357 with 5000 for "identity_uri"
Based on the change in Keystone Install Guide [1],
this patch replace port 35357 with 5000 for "identity_uri".

For more details, please check similar changes which have been done
on other projects: Nova [2], Neutron [3], Cinder [4], Glance [5].

[1] https://review.openstack.org/#/c/541857
[2] https://review.openstack.org/#/c/562812
[3] https://review.openstack.org/#/c/566491
[4] https://review.openstack.org/#/c/565464
[5] https://review.openstack.org/#/c/558932

Change-Id: I79185e6dd147bc3baa5faeb32b7824411798a170
2018-05-21 11:17:58 +07:00
pengdake
93d4a7f8ec Fix error workbook example
Change-Id: I27b213a45b70bd719dd60809545f83fabaae5a84
Signed-off-by: pengdake <19921207pq@gmail.com>
2018-05-04 14:47:22 +08:00
Zuul
022cabbe69 Merge "Update mistral upgrade guide" 2018-04-26 11:23:57 +00:00
Zuul
85a24b20a6 Merge "Added 'safe-rerun' policy to task-defaults section" 2018-04-25 15:56:53 +00:00