3494 Commits

Author SHA1 Message Date
Renat Akhmerov
e42c515a5f Release note for not persisting '__task_execution' in DB
Change-Id: I55bdc141e0d8ca73df06aa8dfaec49e8798366f9
2018-04-18 13:11:59 +07:00
Renat Akhmerov
6b7b58ed6c Add '__task_execution' structure to task execution context on the fly
* Previously we stored the data structure describing the current
  task execution (id and name) in the inbound task execution context
  directly so that it'd be saved to DB. This was needed to evaluate
  YAQL/Jinja function task() without parameters properly. However,
  it's not needed, we can just build a context view on the fly
  just before evaluating an expression.

Change-Id: If523039446ab3e2ccc9542617de2a170168f6e20
Closes-Bug: #1764704
2018-04-17 18:13:35 +07:00
Renat Akhmerov
4936d778e5 Optimizing big 'on-XXX' clauses
* Fixed the implementation of data_flow.evaluate_task_outbound_context
  method so that it doesn't use copy.deepcopy() because it may be
  very expensive (both CPU and RAM) on big dictionaries.

Change-Id: I6cc77c6ded1e8f00ff164156be9312e1ccb86efb
2018-04-17 14:30:41 +07:00
Renat Akhmerov
7d8e7db499 Adding a test for std.test_dict action
(just a side effect of a different activity)

Change-Id: I2ba5f290f0091c4861eae701a709f3b141fccf67
2018-04-16 10:43:30 +07:00
Zuul
4abae22742 Merge "Update Duplicate entry exceptions to provide more information" 2018-04-13 21:57:21 +00:00
Zuul
fc7877ec52 Merge "Adding WWW-Authenticate info." 2018-04-12 09:48:40 +00:00
Zuul
5fc42d7a07 Merge "Fix tag searching" 2018-04-12 06:45:52 +00:00
Zuul
38acd22676 Merge "do not list setuptools as explicit dependency" 2018-04-12 06:17:59 +00:00
Zuul
11be913329 Merge "uncap eventlet" 2018-04-12 06:17:58 +00:00
Zuul
e9d6df039d Merge "Fix call to model_query in sqlalchemy.api._get_collection" 2018-04-12 06:17:56 +00:00
Zuul
f69c11ace0 Merge "Add Swift Service OpenStack Actions" 2018-04-11 17:28:15 +00:00
Kevin Pouget
96f1f223e7 Fix call to model_query in sqlalchemy.api._get_collection
Fix `columns` parameter in call to `model_query` when
sqlalchemy.api._get_collection called with insecure to
true, and specific fields defined.

Change-Id: Ib46173d42d794775cfa302856cf9703ce8549389
Closes-Bug: #1763068
2018-04-11 17:49:33 +02:00
Doug Hellmann
a6a53105e9 do not list setuptools as explicit dependency
Projects should not need to list setuptools as a dependency,
especially when they don't import it directly. The only use here seems
to be in setup.py, and setuptools must already be installed before
that is run anyway since setuptools is what runs it.

Change-Id: I573c3a5981e9f207811f5438c89e94d3c75e13f8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-11 11:01:22 -04:00
Doug Hellmann
f14f507fd5 uncap eventlet
We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

This change also removes the redundant entry for eventlet from
test-requirements.txt.

Change-Id: I810741a01614609f86cb792629a253d128029c80
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-11 11:00:46 -04:00
Zuul
29c31206ea Merge "explicitly set the notifier type in unit tests" 2018-04-11 09:28:03 +00:00
Idan Narotzki
1ece440ac5 Adding WWW-Authenticate info.
Sometimes when mistral requests are failing with "401 Unauthorized"
against keycloak, the reason are not mentioned in the logs.

In case keycloack return 401 it must provide the www-Authenticate
response header with the reason:
https://www.w3.org/Protocols/HTTP/1.0/spec.html#WWW-Authenticate

This code take care of it by adding the WWW-Authenticate value to
mistral api-log.

Change-Id: I7ae221aaeb2233184bd4818490e72ff662dca5cb
Closes-Bug: #1737500
2018-04-11 07:24:46 +00:00
Zuul
d2f1d0080c Merge "Fix malformed state_info when json is set to it" 2018-04-10 09:19:02 +00:00
Adriano Petrich
be2bfe744c Fix tag searching
When python-mistralclient filters it passes a dictionary not just the
string. This clears the dictionary and fix the search parameters into
lists for multiple tags to be searched if separeted by commas
like:

openstack workflow list --filter tags=tripleo-common-managed,foo

Change-Id: Ie082901fd7eb8b61a6306da1275a79aeb6c4a6de
Closes-Bug: #1716648
2018-04-10 09:38:25 +01:00
Dougal Matthews
1a65bc447e Add Swift Service OpenStack Actions
Implements: blueprint mistral-support-swift-service-methods
Change-Id: I41649d15c57e16bffcf7870a52bc01177aae7cc8
2018-04-10 09:27:19 +01:00
Doug Hellmann
0d74eddb10 explicitly set the notifier type in unit tests
Running the unit tests with lower-constraints.txt fail if the option
is not set explicitly.

Change-Id: Id559b33d1e4ae34eab897e2b4bc14b1b2938d0da
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-09 18:16:11 -04:00
Zuul
fde8ca1085 Merge "Update cut_list() to return the specified number of characters" 2018-04-09 16:31:49 +00:00
hardikj
6de2c15e6a Fix malformed state_info when json is set to it
Fix bug where setting a dict to state_info did not convert to
JSON format properly.

Change-Id: Ib78d65483dd628e03de2484d3176ab7f275bc9d6
Closes-bug: #1662350
2018-04-09 18:24:21 +05:30
Zuul
df22712079 Merge "Add a release note for new indexes" 2018-04-09 10:29:36 +00:00
Zuul
f091b1ecb7 Merge "Fix join examples and text" 2018-04-09 10:25:57 +00:00
Bob Haddleton
d456ba2716 Update cut_list() to return the specified number of characters
This patch updates cut_list() to ensure that it does not return
more than the number of characters specified in the limit
parameter.

Change-Id: I9dbd061a5ba1976aae9d1acf1e501a3c98782972
Closes-Bug: 1761246
2018-04-08 12:26:33 -05:00
Vitalii Solodilov
e7da5b6dc8 Add a release note for new indexes
Change-Id: I53b70b741134326301e40e3b25dd9733adca265e
Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
2018-04-08 20:22:44 +04:00
Vitalii Solodilov
82d226a36a Replace the unsupported format character with the format method
Change-Id: I72f035d9b2171e106f243a4483500ca1e83863fe
2018-04-08 16:23:00 +04:00
Brad P. Crochet
7657458e61 Fix join examples and text
The 'join' example for using a number did not have a proper workflow.
It looks like it was copied from the 'all' example and not completely
changed. Also, disambiguate the wording of the description for that
example. It used the word 'once' in a place where it looked as though
it meant 'one time' instead of 'as soon as'.

Change-Id: I9b89768c0f0b7d325db08ea9345965a9263a64c8
Closes-Bug: #1761827
2018-04-06 14:17:39 -04:00
Zuul
54fe5b0109 Merge "Fix WF execution getting stuck on null description" 2018-04-04 07:45:26 +00:00
Zuul
fe25d7ce22 Merge "Change unreasonable title" 2018-04-04 02:56:35 +00:00
Zuul
f58df93bdc Merge "Update cut_dict() to return no more than specified by length" 2018-04-04 01:05:28 +00:00
Zuul
67050049cd Merge "Add new indexes to optimize task().result expression function" 2018-04-03 14:19:18 +00:00
Zuul
2453783822 Merge "Remove unused nova actions" 2018-04-03 13:38:04 +00:00
hardikj
95f412ad30 Fix WF execution getting stuck on null description
Fix bug where creating wf execution with null description
marks workflow as RUNNING even if all tasks are complete.

Change-Id: If53012a41f6481c88fef44a43a1f17738d558f02
Closes-bug: #1711423
2018-04-02 15:00:36 +05:30
Bob Haddleton
0090fe28e0 Update cut_dict() to return no more than specified by length
This patch updates the cut_dict() method to ensure that it only
returns strings up to the length specified.

Change-Id: Iecc1bd4f4c67606eed209a762e4d692691a37161
Closes-Bug: 1760134
2018-03-30 10:56:02 -05:00
Zuul
777ba58710 Merge "Add a release note for the 'pause' command fix" 2018-03-28 11:23:50 +00:00
Zuul
c02c549d3d Merge "Fix std.ssh "password" parameter" 2018-03-28 11:23:49 +00:00
Renat Akhmerov
8b30743d0a Add a release note for the 'pause' command fix
Change-Id: Ia609cb319a01b3685d91515c8d9d81e3006a001e
Related-Bug: #1714054
2018-03-28 09:06:48 +00:00
Zuul
f3ab048b4b Merge "Fix 'pause' engine command" 2018-03-27 23:08:15 +00:00
Zuul
921c2cfaf5 Merge "Improve Mistral API DB error handling" 2018-03-27 15:30:36 +00:00
hardikj
f5c0be6ee9 Fix std.ssh "password" parameter
Fixes the bug where calling std.ssh action without "password" input was resulting in error.
Closes-bug: #1756272

Change-Id: I5f7af13326933658014a9c42c495d779bec7f14f
2018-03-27 15:27:15 +05:30
OpenStack Proposal Bot
7bebd3b82d Updated from global requirements
Change-Id: Id75bfc5a30c19b180fe8ee6cf5d465f095a98262
2018-03-26 08:08:16 +00:00
Andras Kovi
f0b5196566 Improve Mistral API DB error handling
Everywhere the DB API is used, errors related to DB connectivity,
deadlocks or similar operational errors can happen. In order to
compensate this, all DB API calls are surrounded by the same retry
logic that matches the REST requirements (reasonable response time,
service specific error message)

Change-Id: I24227e1a763114b9895ac8901b7096445b7df77f
2018-03-25 19:36:56 +02:00
Zuul
9f0f16e0e6 Merge "Fixed a vhost in transport_url processing by kombu driver" 2018-03-25 08:14:57 +00:00
Renat Akhmerov
9726189c43 Fix 'pause' engine command
* Commands going after 'pause' in 'on-XXX' clauses
  were never processed after workflow resume. The
  solution is to introduce a notion of a workflow
  execution backlog where we can save these commands
  in a serialized form so that the engine dispatcher
  could see and process them after resume.
* Other minor changes

Change-Id: I963b5660daf528d1caf6a785311de4fb272cafd0
Closes-Bug: #1714054
2018-03-24 11:10:08 +00:00
OpenStack Proposal Bot
e3cb610c08 Updated from global requirements
Change-Id: I39e3525d6acc0ead0757fe873c60df69a6f35253
2018-03-23 07:33:48 +00:00
pengdake
b8d94fe4be Change unreasonable title
Content of "Mistral User Guide" is all of Installation.
So I think "Mistral Installation Guide" is a better title.

Change-Id: I1b20c2f665bee21b2f35f06912beab3e7e3e93ea
Signed-off-by: pengdake <19921207pq@gmail.com>
2018-03-23 11:46:23 +08:00
OpenStack Proposal Bot
9b47758e5f Updated from global requirements
Change-Id: I27f7876c9f7ad350af4494df55469f0427d4950f
2018-03-23 01:08:00 +00:00
Zuul
7167e4b71a Merge "Fix initializers of standard actions" 2018-03-22 13:48:20 +00:00
Vitalii Solodilov
328bb2cd8e Add new indexes to optimize task().result expression function
Change-Id: I94707368dbfe363a2b909985d3bd24dbae8e67f6
2018-03-22 01:40:42 +04:00