3614 Commits

Author SHA1 Message Date
Pierre Gaxatte
522f388709 Add a policy to control the right to publish resources
This change intends to add the following policies:
- actions:publicize
- workflows:publicize

A refactor of the policy tests is included to increase the coverage.

Change-Id: I8bd637f7de63f02c63f3c304cb6f5198fc0c5f42
Closes-Bug: 1779293
2018-07-05 11:46:52 +02:00
Guy Shaanan
2bfc9d1ad8 Add CloudFlow info to Mistral documentation
Change-Id: I7990abcbefbae08f69b3c2f7632eff95f0229f89
2018-07-04 09:29:57 +03:00
Zuul
c08cbf241c Merge "Remove time.sleep from tests" 2018-07-03 09:31:55 +00:00
Zuul
38b28db168 Merge "Fix typos" 2018-07-02 15:24:22 +00:00
Zuul
2abd94b6d1 Merge "Add missing query paramater scope to the workbook api" 2018-07-02 12:54:54 +00:00
Zuul
bfe6c895fa Merge "switch mysql functional tests to PyMySQL" 2018-07-02 12:46:49 +00:00
Zuul
c0f6157cbd Merge "Update install guide about running mistral" 2018-07-02 10:24:52 +00:00
Zuul
3471c439da Merge "Add missing Tacker actions to Mistral" 2018-07-02 08:56:04 +00:00
Zuul
f12d80244f Merge "Add better output to the user deleting executions" 2018-07-02 08:56:03 +00:00
Cong Phuoc Hoang
49ccf8ea7b Add missing Tacker actions to Mistral
Add missing Tacker actions to Mistral that includes vnf forwarding
graph (vnffg), vnffg descriptor, network service (ns) and ns
descriptor actions

Change-Id: I0b0f214ad3f3990fa0af98923d34efebf6e2f8f3
2018-06-29 10:40:26 +09:00
chenxiangui
d74f7cb286 Fix typos
Fix typos 'a action' with 'an action'

Change-Id: I06fd03ba4bd40b5783a212762e766a06f52011a4
2018-06-28 12:35:05 +00:00
Adriano Petrich
981b210508 Add better output to the user deleting executions
Add a better hint on what to do if the user cannot delete the execution.

Closes-Bug: 1778756
Change-Id: I3322b4b29d8be7555a2fa3a5a3524a31ed5637a6
2018-06-28 09:29:43 +01:00
Doug Hellmann
59e43988fd switch mysql functional tests to PyMySQL
The mysql-python library does not support Python 3, so to be able to
run the functional tests under Python 3 we need a new library. The
oslo.db package uses and supports PyMySQL.

In addition to changing the dependency, change the database connection
string used.

Change-Id: Ide944f8df051bb5e011af1c881387a166d041b7c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Vitalii Solodilov <mcdkr@yandex.ru>
2018-06-27 20:40:39 +00:00
Kevin Pouget
8d14c3ebc6 Add missing query paramater scope to the workbook api
Change-Id: I4f2ef1fcaa5a0b0e931319178f6cc5bae96e8fc3
Closes-Bug: #1757499
2018-06-27 14:18:39 +00:00
Adriano Petrich
dc8b50e036 Remove time.sleep from tests
Use the await method instead of time.sleep to improve the tests.

Closes-Bug: 1778757
Change-Id: I084b8acfa01e80ac287983667e3285d7fc0d58b9
2018-06-27 12:29:02 +01:00
tshtilma
821808a1b6 Generate default execution id
When execution id is not sent by the client, the api
will generate source execution id

Change-Id: Iae1ff327b5cb1af857d53ca53782d9fb30eefc27
Closes-Bug: #1774164
2018-06-27 05:49:06 +00:00
Adriano Petrich
211e396411 Fix mistral CI.
Last update on cron triggers left this test flaky. Adding a 1 second
sleep forces it to find a next cron trigger needing to be executed

Closes-Bug: #1778736
Change-Id: Icc98d322b3db683f8f842303b9f4b555f3b1046d
2018-06-26 15:22:06 +01:00
Zuul
00901db931 Merge "Add info about source execution to a workflow execution description" 2018-06-24 10:00:02 +00: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
Zuul
5691d36383 Merge "Amend the spelling error of a word" 2018-06-22 09:57:12 +00:00
Renat Akhmerov
56cf004f92 Add info about source execution to a workflow execution description
* When Mistral starts a new workflow based on an existing workflow
  execution object it needs to save the information about the source
  execution into the "description" field".

Closes-Bug: #1762470

Change-Id: I0ae154b008b6c8fb7e51bf6cc669ad6ca9a2a900
2018-06-22 13:21:43 +07:00
Zuul
846222cf2f Merge "Make cron-triggers not play catchup" 2018-06-18 16:03:03 +00:00
Zuul
916d560795 Merge "Update default Docker configuration and documentation" 2018-06-18 11:32:47 +00:00
chenjiao
7265217e21 Amend the spelling error of a word
Amend the spelling error of a word

Change-Id: Idd701c4cf48fea1d7490cfae4b15061866531d89
2018-06-18 15:47:30 +08:00
Zuul
e6aa24b9a7 Merge "A mechanism to close stuck running action executions" 2018-06-17 08:42:56 +00:00
Adriano Petrich
07c26e50dc Make cron-triggers not play catchup
Currently if the API is stopped for a length and restarted the crontrigger
jobs will have their next execution in the past and will do a catchup
running a lot of times. That happens because the next execution is
calculated based on the first time it was executed. This change makes it be
the next execution time be the max of the calculated time and utcnow so
that if the server is lagging we keep uptodate with the calculated next
execution times.

Change-Id: I05b35261b1adbe17a1b0316eee95da12634c3978
Closes-bug: 1719882
2018-06-14 09:49:24 +01:00
Zuul
734851fb1f Merge "Add the restructuredtext check to the flake8 job" 2018-06-13 06:17:22 +00: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
sunqingliang6
968e15e1e7 add the release note
Change-Id: If98f399af3e2b592247a5872a84a5627825fc8b2
2018-06-11 20:10:14 +08:00
Bob Haddleton
a8abfae0f5 Update default Docker configuration and documentation
Updated the default Docker configuration so it works with
the default sqlite condfiguration.  Also updated the README
file.

Updated .gitignore and .dockerignore to ignore .coverage.* files

Change-Id: I698f8d0c97e2c5dc202af714470b6e055c74eea2
2018-06-10 19:21:18 -05:00
Zuul
13b2b0fbaf Merge "Fix the call to start_workflow from events triggers" 7.0.0.0b2 2018-06-07 18:59:28 +00:00
Dougal Matthews
96a1bdd68f Add the restructuredtext check to the flake8 job
This follows a recommendation in this thread on openstack-dev.
http://lists.openstack.org/pipermail/openstack-dev/2018-June/131233.html

Change-Id: I76dc4f9ec1b71a5bd4ce1d551d2c96cb98448c3a
2018-06-07 12:45:40 +00:00
Dougal Matthews
a7314d2dd4 Fix the call to start_workflow from events triggers
See Ida361a53ffdb5426a39d276d567391d25261fb7f for a similar fix.

Closes-Bug: #1772897
Depends-On: Ifac7617decc2990ff87b76d39bf0f72a61ff2b99
Change-Id: I06304e83e3bc2fd53110daf5c829824d3614b02e
2018-06-07 10:17:13 +00:00
Brad P. Crochet
d9e4a86946 Register the collect_timing keystone_authtoken option
Icf00c66f57d20d2cef724c233160d3b1e0d52102 introduced a new option to
keystoneauth1.loading. This adds that option to make Mistral happy.
Also adds split_loggers.

Change-Id: Ifac7617decc2990ff87b76d39bf0f72a61ff2b99
Closes-Bug: #1775140
2018-06-06 11:15:48 -04:00
Zuul
55d350cda4 Merge "Release note for adding YAQL engine options" 2018-06-05 06:31:03 +00:00
Zuul
f89296b8fe Merge "Replace Chinese quotes with English quotes" 2018-06-05 05:55:03 +00:00
Zuul
65c4cfa2b3 Merge "Switch to using stestr" 2018-06-01 23:51:31 +00:00
Zuul
76ddff39cb Merge "Add YAQL engine options" 2018-06-01 17:04:06 +00:00
Renat Akhmerov
360fd8bd61 Release note for adding YAQL engine options
Change-Id: I8de0c011c94b9c399e12e010e1da6dd6f4459ebc
2018-06-01 17:07:10 +07:00
Xavier Hardy
fe0d441082 Add YAQL engine options
Change-Id: I2e2c85c8be90ee62c8f37f002e21098f17ba6f5c
Closes-Bug: #1700572
Closes-Bug: #1772864
2018-06-01 17:06:57 +07:00
Zuul
ae845ce9c8 Merge "Create Base class for Mistral Exceptions and Errors" 2018-05-31 12:56:09 +00:00
Zuul
d512f152e6 Merge "Fix workflows query with fields=input" 2018-05-31 12:36:22 +00:00
Zuul
b482b1373a Merge "Add test for _try_import" 2018-05-31 11:25:30 +00:00
Oleksiy Petrenko
6a672572bc Create Base class for Mistral Exceptions and Errors
Moved common logic in mistral/exceptions from
MistralError and MistralExceptions to MistralFailureBase

Change-Id: I79dc7b91c00a296a2c6d9c3b589ea3fa4fc7db48
2018-05-31 08:47:04 +00:00
Brad P. Crochet
9883814cdc Switch to using stestr
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that

Change-Id: Icd303c37d2371d44726d55c947bbc8b9e99f2a1c
2018-05-30 14:46:25 -04:00
MosheElisha
ec66e1d945 Add log message to log the stack trace
in case failed to send an HTTP request

Change-Id: I2fd3cfd1433ca7fe4e372014f0fc1c55901a4003
2018-05-29 08:23:02 +00:00
Oleksiy Petrenko
a1e2ac8acd Add test for _try_import
Add test for mistral/actions/openstack/actions
that tests that if we import module
that raises exception,
other modules won't fail

Change-Id: I7959de37e3ad63695379f03061c022d13b5fa541
2018-05-25 15:52:33 +03:00
Zuul
573d2d0682 Merge "Add "fields" argument to DB API methods" 2018-05-23 13:53:36 +00:00
zhangdebo
8a8c4bba11 Replace Chinese quotes with English quotes
Change-Id: I85890aff285243cec69ee0a3039290e924324d1b
2018-05-23 16:30:41 +08:00
Zuul
8b28138012 Merge "Release note for using "passive_deletes=True"" 2018-05-21 05:25:24 +00:00