3880 Commits

Author SHA1 Message Date
Zuul
f5d1ebd1bb Merge "Pass auth context to the event publishers" 2019-05-17 13:46:37 +00:00
apetrich
dbc4c91150 Remove deprecated nova commands
novaclient.cert was removed 18 months ago
4bc4078fcb
this commit removes those calls.

Change-Id: Ie5159ba52b6a682e00027ce6bf6d3c5c3f4f1eb9
2019-05-16 16:25:37 +02:00
Zuul
e51730b511 Merge "Reduce the number of "on-xxx" evaluations" 2019-05-16 08:53:12 +00:00
Zuul
6dcc048725 Merge "Adds private_key parameter in the standard ssh actions" 2019-05-16 06:40:47 +00:00
Zuul
1f704c8fd7 Merge "inspect.getargspec is deprecated on py3" 2019-05-15 10:02:59 +00:00
Renat Akhmerov
83c541acbf Reduce the number of "on-xxx" evaluations
* Mistral evaluates expressions under "on-xxx" clauses more than
  once during the processing of a workflow. It's now been fixed by
  storing crucial information about the result of those expressions
  after it was first obtained in the DB.
* Added two boolean fields "has_next_tasks" and "error_handled" in
  the TaskExecution class and the required migration. These fields
  allow not to calculate expressions under "on-xxx" clauses many
  times which leads to reducing execution time in case of heavy
  expressions and/or their data contexts.
* Minor style changes.

Closes-Bug: #1824121
Change-Id: Ib236ba7a72d8e578f9c52460d2a7d8d4540f9c37
2019-05-15 07:39:05 +00:00
Jose Castro Leon
eb59216281 Removes insecure parameter from barbican client
This removes the parameter insecure in the client creation as this
no longer exists in the client. It also changes the client class
to be called as other clients in openstack using sessions

Change-Id: I3cb7ed4255f8996b8bfd9a3e1edba6de50f4e492
Closes-Bug: #1800819
2019-05-13 06:54:39 +00:00
Zuul
c15a0770cf Merge "Add back the secrets_store action into mapping.json" 2019-05-13 06:24:08 +00:00
Zuul
b2b94e070b Merge "Fix the import for filter_utils" 2019-05-13 04:05:08 +00:00
Jose Castro Leon
7e0f4eeed3 Add back the secrets_store action into mapping.json
This action is not included in the mapping.json and it is required
to retrieve secrets from barbican in the workflows

Change-Id: I68f2a75a30cbafba1dc5cc2ca222483c7b92dca1
Closes-Bug: #1800820
2019-05-13 02:28:51 +00:00
Zuul
8e59d27ba1 Merge "Adding root_execution_id to the jinja executor function" 2019-05-07 09:29:18 +00:00
Zuul
2c430f4242 Merge "Reformat retry logic for tasks with join" 2019-05-07 09:27:18 +00:00
apetrich
f172e5da24 Adding root_execution_id to the jinja executor function
This makes getting a root_execution_id possible without having to go
through filtering and querying the executions search.

Change-Id: Ia6c954e688589f69a7463f1b8e02244d029e8b7a
2019-05-06 13:39:48 +02:00
apetrich
a83b4a6702 Fix the import for filter_utils
Changed from importing utils and calling it via utils.filter_utils
to a proper import utils.__init__.py didn't export it so the way it
was called probably worked for python 2 only.

This way is a more ubiquitous way of calling it.

Change-Id: Ie6a073dc286f0d8704c67f8295dfd76bce7897bb
2019-05-06 10:28:00 +00:00
Zuul
2c7056b709 Merge "Adds secrets_retrieve to the list of available actions in barbican" 2019-05-03 21:33:54 +00:00
Zuul
d5d258e552 Merge "Docs improvements: task timeout, global context, Docker and jinja" 2019-05-03 18:35:02 +00:00
Jose Castro Leon
b7107c848f Adds secrets_retrieve to the list of available actions in barbican
This method allows to retrieve the payloads of secrets in the
workflows.

Change-Id: I7d391a6b46ddd4b388c11a69b75f2a2cd7e40384
Closes-Bug: #1800821
2019-05-03 17:42:24 +00:00
Winson Chan
1df722d90d Pass auth context to the event publishers
Pass the auth context to the event publishers for integration with other OpenStack services.

Change-Id: Id0ee6780386f28e44e354ca36e4bacab87e96beb
Implements: blueprint mistral-execution-event-subscription
2019-05-03 17:38:10 +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
Oleg Ovcharuk
88e5af4148 Reformat retry logic for tasks with join
Change-Id: Ie31f08a20265a59bcaa63dd6480834eb6918f349
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
2019-04-26 16:21:49 +03:00
Oleg Ovcharuk
243c09d505 Add option to start subworkflow via RPC.
In case of several engine instances, starting subworkflows not in the
same instance with parent task, could significantly smooth load between
engine instances. Furthermore, starting workflow is not always
a lightweight operation and we should try to make it as more 'atomic'
as possible.

Change-Id: I895bee811496f920b075880a6c438c53f7ecb2ca
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
2019-04-26 00:29:00 +03: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
OpenDev Sysadmins
a461e07916 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:37:05 +00:00
Zuul
6045847fe6 Merge "Fix an action execution controller test" 2019-04-18 15:59:27 +00:00
Marc Gariepy
279fcc5b41 Add release notes for reply-to feature
Change-Id: I4b8a730940c24edd903f1f9a28807573c6d4449a
2019-04-18 08:01:55 -04:00
Renat Akhmerov
9a60cd62d2 Fix an action execution controller test
* test_get_all_with_and_without_output failed sometimes failed on
  Python 3.7 with a weird error coming from simplejson library:
  "AttributeError: 'MagicMock' object has no attribute 'items'"
  It seems like that the mock object used in the test got broken
  magically sometimes after the first use. So splitting the test
  into two solved the issue.

Change-Id: Ic2e0ad75b666dd4c258764018dd68d0ef0b032a8
2019-04-17 18:16:29 +07:00
Zuul
7704797493 Merge "Don't use default mutable parameter" 2019-04-17 06:41:00 +00:00
Eyal
97b493ade6 Don't use default mutable parameter
Using default mutable parameter is bad.
Default parameters are evaluated only once
if you mutate it you will get unexpected results.
Since we don't mutate here the default paramter, make
sure it is unmutable.

Change-Id: Ib5c451a8c8cad7b6c9a009369c1c039563023368
2019-04-15 10:30:34 +03:00
Eyal
59a96b73f1 inspect.getargspec is deprecated on py3
use inspect.getfullargspec instead

Change-Id: Ibdadb08b23738490646db676312bc87c3bf27eaa
2019-04-15 10:30:20 +03: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
Zuul
1c1923746e Merge "Dropping the py35 testing" 2019-04-15 03:53:03 +00:00
Ghanshyam Mann
c5808e54e0 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I182dbda3e602e15bac229518e3e0704f7ee6a4c9
2019-04-14 23:32:08 +00:00
Zuul
db8a46a5e1 Merge "Drop py35 jobs" 2019-04-13 14:31:35 +00:00
Oleg Ovcharuk
401eeddb2d Fix E305 codestyle errors
Change-Id: Ied1474f1f07f2b565014956c314c690001d3d56d
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
2019-04-12 11:07:02 +03:00
Zuul
9f6f9df89d Merge "Fix doc" 2019-04-12 05:59:30 +00:00
zhulingjie
1af2683db4 Drop py35 jobs
Python 3.5 was the target runtime for the Rocky release. The current
target py3 runtime for Stein is Python 3.6, so there is no reason to
keep testing against the older version.

https://governance.openstack.org/tc/reference/runtimes/stein.html#python-runtime-for-stein

Change-Id: Idec9e2647090ee7329330d4b5727b037c60891c7
2019-04-11 08:31:42 +00:00
Zuul
c33899a059 Merge "Fix an expression context for all_errors_handled()" 2019-04-11 08:04:24 +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
Renat Akhmerov
b0829f943b Fix an expression context for all_errors_handled()
* "__task_execution" wasn't included in this case into the
  expression data context so the function task() didn't work
  properly

Change-Id: I3cacae90f9031d09a5e6d8153d728ddc01e1bb21
Closes-Bug: #1823875
2019-04-10 11:49:48 +07:00
Zuul
30667396e4 Merge "Add a script to generate a report about profile traces" 2019-04-09 13:36:08 +00:00
Zuul
e645dd7baf Merge "Fix an obsolete name of a profiler trace" 2019-04-09 11:30:50 +00:00
Zuul
eba2314bb3 Merge "Stop sending workflow output to on_action_complete" 2019-04-09 06:47:56 +00:00
Renat Akhmerov
20c2b78d04 Fix an obsolete name of a profiler trace
Change-Id: I896145ec4b1a547eacb8bbfbd45aafe07e707147
2019-04-08 17:15:33 +07:00
Renat Akhmerov
1fce28c1ce Add a script to generate a report about profile traces
* It allows to convert a profiler log into a convenient report
  that has a general statistics about profile traces: total time,
  maximum time, average time and number of occurrences.

Change-Id: I68ff2a6eb74f1f8b11cd7568dc27bcbc9430e8e1
2019-04-08 11:00:09 +07:00
Zuul
0775d2cc81 Merge "Add release note for I04ba85488b27cb05c3b81ad8c973c3cc3fe56d36" 2019-04-05 00:43:52 +00:00
Zuul
8b2fe42beb Merge "Add "convert_input_data" config property for YAQL expressions" 2019-04-04 18:36:53 +00:00
Vlad Gusev
5d2be3458d Add release note for I04ba85488b27cb05c3b81ad8c973c3cc3fe56d36
Change-Id: I3ad0a7769e2d61665d5ea76b90485e582993ddd2
2019-04-04 16:01:28 +00:00