* 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
* 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
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
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>
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>
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
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
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>
Fix bug where setting a dict to state_info did not convert to
JSON format properly.
Change-Id: Ib78d65483dd628e03de2484d3176ab7f275bc9d6
Closes-bug: #1662350
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
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
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
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
Fixes the bug where calling std.ssh action without "password" input was resulting in error.
Closes-bug: #1756272
Change-Id: I5f7af13326933658014a9c42c495d779bec7f14f
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
* 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
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>