3503 Commits

Author SHA1 Message Date
Brad P. Crochet
15bbcbb8d8 Fix docker image build job
The commands need to be run as root.

Also adds a test job for the docker image build so that zuul will run
the experimental job to test before merging.

Change-Id: I1d1cb6979865d7ef22587315544f39646bc9d49d
Closes-Bug: #1765421
2018-04-20 08:59:03 -04:00
Zuul
0b1e0bd626 Merge "Release note for not persisting '__task_execution' in DB" 7.0.0.0b1 2018-04-19 10:45:21 +00:00
Zuul
135353093b Merge "Add '__task_execution' structure to task execution context on the fly" 2018-04-19 09:31:46 +00:00
Renat Akhmerov
e42c515a5f Release note for not persisting '__task_execution' in DB
Change-Id: I55bdc141e0d8ca73df06aa8dfaec49e8798366f9
2018-04-18 13:11:59 +07:00
Zuul
ccfdbd791a Merge "Correct the string formatting in a info log message" 2018-04-17 19:18:11 +00:00
Zuul
bd7ee0a4d1 Merge "Optimizing big 'on-XXX' clauses" 2018-04-17 11:58:03 +00: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
Dougal Matthews
15e95d9b3c Correct the string formatting in a info log message
It should be "%s," not just "%,". The error observed was something
like...

ValueError: unsupported format character ',' (0x2c) at index 91

Closes-Bug: #1764696
Change-Id: I601c8640cec857746c2c17f94116da890f4d65e0
2018-04-17 09:41:35 +00: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
Zuul
a28f42f442 Merge "Adding a test for std.test_dict action" 2018-04-16 13:23:21 +00:00
Zuul
40a1620959 Merge "Fix DB connection url in config guide" 2018-04-16 08:32:20 +00:00
hardikj
e43cf4559a Fix DB connection url in config guide
Change MySQL DB default driver to PyMySQL in
config guide to align with Dockerfile.

And some grammar fixes.

Change-Id: Id4379c7c86e2f8b50341dcbd72f34af834f99261
Closes-Bug: 1762720
2018-04-16 12:41:55 +05:30
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