1867 Commits

Author SHA1 Message Date
hardik
8d53a25ee2 Release note for murano actions support
Change-Id: Iba8fc02e9cedee7093f24676ac83ea18aa295afc
2016-06-15 10:39:04 +05:30
hardik
40a4b124bd Release note for role base access control
Change-Id: Ib477249fb2cad405500fd33df5df8d8e94983f2c
2016-06-14 14:16:05 +05:30
Jenkins
8015d66490 Merge "Added role base authentication support" 2016-06-14 08:31:18 +00:00
Jenkins
a43dd17ef6 Merge "Added murano actions" 2016-06-14 08:24:14 +00:00
Jenkins
440c8e0e3f Merge "Support JSON data in JSON API type" 2016-06-14 05:24:04 +00:00
hardik
11e443efeb Added role base authentication support
Mistral api access can be restricted base on role
by modifying /etc/mistral/policy.json file.

Change-Id: I4c78ca4cc04d25f46aea55948bce339cfe460ff0
Implements: blueprint mistral-customize-authorization
2016-06-14 05:15:00 +00:00
hardik
10fa24731d Added murano actions
Change-Id: I80e971e54cf165396fd6f96d6c1a19d9c17e4dac
Implements: blueprint mistral-murano-actions
2016-06-14 09:40:53 +05:30
Marcos Fermin Lobo
4314ea9ef7 Add magnum bays actions
Change-Id: I0c7ddc061827d8792cbf342c2cde9f89f8462d48
Implements: blueprint add-magnum-action-pack
2016-06-13 09:44:12 +02:00
Thomas Herve
e97e3acf64 Support JSON data in JSON API type
JSON API type now tries to load a string all the time, even if the data
is already decoded as part of the request. It seems easy to support
loading the data directly. We also handle TypeError so that we handle
non-dict incorrect values.

Change-Id: Ib8c21d95df96743e65bdf2bc88af5207cf78fd8f
Closes-Bug: #1590789
2016-06-09 20:26:49 +02:00
Jenkins
468bd83b29 Merge "Add Magnum actions" 2016-06-09 16:07:49 +00:00
Jenkins
88b399449b Merge "Removing redundant wf_ex_id parameter for rerun across the code" 2016-06-09 11:11:26 +00:00
Jenkins
13acb757ee Merge "Add explicit preconditions for methods of Action, Task and Workflow" 2016-06-09 11:11:16 +00:00
Marcos Fermin Lobo
b0a2fc64b3 Add Magnum actions
- Implement MagnumAction class
- Map first actions (baymodels) from Magnum
- Tests

Change-Id: Ib61bee8c3d18e1f6ef8a580e3ec3e5157926f89c
Implements: blueprint add-magnum-action-pack
2016-06-09 08:41:56 +02:00
OpenStack Proposal Bot
9921b8ce6a Updated from global requirements
Change-Id: I5d29372213f35f9227e8e233efdb863d10664abe
2016-06-08 21:59:12 +00:00
Renat Akhmerov
6a22bca60c Removing redundant wf_ex_id parameter for rerun across the code
* Since this parameter was removed from engine rerun() method it should
  also be removed from RCP client and server

Change-Id: Ia4cc30ae20c6700d3ff1dcc83a3ad77b2a4bc68c
2016-06-08 16:59:23 +07:00
Renat Akhmerov
0233356091 Add explicit preconditions for methods of Action, Task and Workflow
Change-Id: Id5834773a4347550f989d57f24a37722473c861b
2016-06-08 12:06:07 +07:00
Renat Akhmerov
70adb4512f Add a test that verifies an old bug with join
* There was a bug in stable/libery that occurred in case when we
  had a "join" task that joined multiple branches sourced from
  the same task. In this case line 302 (in the current revision)
  in direct_workflow.py caused IndexError when evaluating in_t_ex[-1]
  as described in the bug. This bug was implicitly fixed since then
  but a test for it was missing. This patch adds a test to prevent
  this bug occurrence in the future.

Change-Id: If277989cc9149b219a9c63287290daa321a3e438
Closes-Bug: #1539173
2016-06-08 11:42:38 +07:00
Jenkins
f6fd4da1d7 Merge "Refactoring workflow handler" 2016-06-07 17:29:14 +00:00
Renat Akhmerov
e2c89f777d Refactoring workflow handler
* Introduced new class Workflow that manages life-cycle of running
  workflows and is responsible for managing workflow persistent state
* Moved all workflow level logic to workflow handler and Workflow class
* Changed semantics if how workflows start errors are handled.
  Previously, in case of invalid user input Mistral engine would store
  information about error in "state_info" field of workflow execution
  and bubble up an exception to the user. This approach was incorrect
  for a number of reasons including broken semantics: if an exception
  was raised due to invalid input it's normal to expect that system
  state has not changed. After this refactoring, engine only raises
  an exception in case of bad user input. That way behavior is
  consistent with the idea of exceptional situations.
* Fixed unit tests in according to the previous point
* Fixed a number of logical issues in tests. For example, in
  test_default_engine.py we expected one type of errors (e.g. env not
  found) but effectively received another one (invalid input).

Partially implements: blueprint mistral-engine-error-handling

Change-Id: I09070411fd833df8284cb80db69b8401a40eb6fe
2016-06-07 18:38:38 +07:00
Jenkins
957d2bd680 Merge "mistral actions for designate v1 api's not working" 2016-06-07 09:53:10 +00:00
Renat Akhmerov
c496775331 Fix invalid type usage for join
Change-Id: Ifa75f3042e87910868e1c4cab93a81404ceff4d3
Closes-Bug: #1589714
2016-06-07 11:20:07 +07:00
Venkata Mahesh Jonnalagadda
d2af0dfd70 mistral actions for designate v1 api's not working
Corrected the actions, json, import calls for designate v1 api's

Change-Id: Ifc464a7dc047a54b9c6743e1419463c59f446cec
Closes-Bug: #1587457
2016-06-06 07:41:31 -04:00
OpenStack Proposal Bot
e700a491d0 Updated from global requirements
Change-Id: I52714e7d1ec177b9dae78eb9cca8bdc47f2414ee
2016-06-03 18:14:05 +00:00
Dougal Matthews
927bc19d0e Remove AUTHORS file
In commit 6e6af3955067f5f3d8ab093580de21124f607036 AUTHORS was
added to the .gitignore but as the file was already tracked this
wont make a difference until the file is removed from the repo.

Change-Id: If3f630be705a4b791129a18ffec37d9b831869c1
2016-06-03 08:05:38 +01:00
Jenkins
7b2857a17b Merge "Remove AUTHORS file from git tracking" 2016-06-03 05:16:01 +00:00
Jenkins
39c19b9aed Merge "Add missing argument in exception string" 2016-06-03 04:06:35 +00:00
Lingxian Kong
6e6af39550 Remove AUTHORS file from git tracking
Change-Id: I44c32ab76d91520a87d3fbcac3b41f5cc389d30c
2016-06-03 10:28:39 +12:00
Jeff Peeler
7e793d2d4d Add missing argument in exception string
TrivialFix

Change-Id: I3e3488b011f1ff1970d57916cfde05a35a345e87
2016-06-02 18:03:10 -04:00
OpenStack Proposal Bot
a8f7a05bfe Updated from global requirements
Change-Id: I5aab8ffcf62007b91196e5560f4f6f967be95317
2016-06-02 21:06:44 +00:00
Dougal Matthews
09c4151a9e Use LOG.exception when logging exceptions
This replaces usage of log.error that manually formats the
exception. It doesn't remove uses of LOG.warning with traceback
formatting as that would change the log level.

Change-Id: Ib0ab3a60496e20277e1a619dd266cccb1f8ba5b5
2016-06-02 08:27:38 +01:00
Jenkins
64afe2aa54 Merge " Release notes for fail/pause/success transition message" 2016-06-02 06:17:43 +00:00
hardik
67b2584c1c Release notes for fail/pause/success transition message
Change-Id: I3a8bca3cbc4573e2a74e5bd75bf5ef19b79795ae
2016-06-02 11:08:39 +05:30
Jenkins
06bcf79491 Merge "Fail/Success/Pause transition message" 2016-06-02 03:27:12 +00:00
OpenStack Proposal Bot
979d0e9c42 Updated from global requirements
Change-Id: Ia8d7f9ccb13c93d90de3e2a1455b1164bf258079
2016-06-01 13:49:27 +00:00
Jenkins
0419fd7089 Merge "Update .mailmap" 2016-06-01 11:57:44 +00:00
hardik
6b8f15385a Fail/Success/Pause transition message
Now user can provide customize message for
fail/success/pause transition.

Change-Id: I84b1fbc63aaf8186c81eea9c852f5b49db93f0ff
Implements: blueprint mistral-fail-transition-message
2016-06-01 14:44:44 +05:30
Renat Akhmerov
3641b46d15 Remove unnecessary database transaction from Scheduler
Change-Id: I08f0fcd67e0cd0e40e76ed6cfc7bb214096a2c16
Closes-Bug: #1484521
2016-06-01 08:21:39 +00:00
Jenkins
5e042c7403 Merge "Refactor Mistral Engine" 2016-06-01 08:18:24 +00:00
Renat Akhmerov
d48b79601c Update .mailmap
Change-Id: I0dd8200e4d75f17a7553d1d8034e854d7e67abc5
2016-06-01 14:57:25 +07:00
Renat Akhmerov
816bfd9dcc Refactor Mistral Engine
* Introduced class hierarchies Task and Action used by Mistral engine.
  Note: Action here is a different than executor Action and represents
  rather actions of different types: regular python action, ad-hoc
  action and workflow action (since for task action and workflow are
  polymorphic)
* Refactored task_handler.py and action_handler.py with Task and Action
  hierarchies
* Rebuilt a chain call so that the entire action processing would look
  like a chain of calls Action -> Task -> Workflow where each level
  knows only about the next level and can influence it (e.g. if adhoc
  action has failed due to YAQL error in 'output' transformer action
  itself fails its task)
* Refactored policies according to new object model
* Fixed some of the tests to match the idea of having two types of
  exceptions, MistralException and MistralError, where the latter
  is considered either a harsh environmental problem or a logical
  issue in the system itself so that it must not be handled anywhere
  in the code

TODO(in subsequent patches):
 * Refactor WithItemsTask w/o using with_items.py
 * Remove DB transaction in Scheduler when making a delayed call,
   helper policy methods like 'continue_workflow'
 * Refactor policies test so that workflow definitions live right
   in test methods
 * Refactor workflow_handler with Workflow abstraction
 * Get rid of RunExistingTask workflow command, it should be just
   one command with various properties
 * Refactor resume and rerun with Task abstraction (same way as
   other methods, e.g. on_action_complete())
 * Add error handling to all required places such as
   task_handler.continue_task()
 * More tests for error handling

P.S. This patch is very big but it was nearly impossible to split
it into multiple smaller patches just because how entangled everything
was in Mistral Engine.

Partially implements: blueprint mistral-engine-error-handling
Implements: blueprint mistral-action-result-processing-pipeline
Implements: blueprint mistral-refactor-task-handler
Closes-Bug: #1568909

Change-Id: I0668e695c60dde31efc690563fc891387d44d6ba
2016-05-31 14:08:36 +00:00
OpenStack Proposal Bot
6a72d2c2b7 Updated from global requirements
Change-Id: Iec914fb99a18e23540f6c45db2def47c573db03f
2016-05-31 03:01:42 +00:00
Jenkins
0ebc195506 Merge "Fixes the Mistral Docker image" 2016-05-30 05:30:20 +00:00
OpenStack Proposal Bot
385789d158 Updated from global requirements
Change-Id: I7b5021a36f22afa3b33c9bae66fc5d31e8a1cdf1
2016-05-30 00:34:46 +00:00
Andras Kovi
7b6d76659a Fixes the Mistral Docker image
Refactored to make the docker stuff self contained and removed the
unnecessary files from the root directory. Also created a readme file to
concretize how this feature works.

Also added an example script to set up Mistral with MySQL.

Closes-Bug: #1585911

Change-Id: I7fbcccb9d7ad168c5391e71326b205d074ab01ab
Signed-off-by: Andras Kovi <akovi@nokia.com>
2016-05-27 13:26:05 +02:00
OpenStack Proposal Bot
2e4a3cc020 Updated from global requirements
Change-Id: I6f8c3f72f49adc0bfee63826bb2eb50c13302d5b
2016-05-26 16:59:45 +00:00
Jenkins
54327485b4 Merge "Return 'Unknown error' when error output is empty" 2016-05-26 13:46:28 +00:00
Michal Gershenzon
5af4407291 Return 'Unknown error' when error output is empty
Make sure that the error output will not be empty.
This is to avoid unexpected behavior and be more user friendly

Change-Id: I761d87dcb722216f0ce43f1171f9d3c5d0ba47c8
Closes-Bug: #1581514
2016-05-26 08:08:55 +00:00
Jenkins
1e024ae4f0 Merge "Fix client in TroveActions" 2016-05-26 07:56:45 +00:00
Morgan Jones
18c6178c45 Fix client in TroveActions
Fixes the TroveActions to connect to the Trove v1 client.  Also
provides the required user/pass for the fake_client.

Change-Id: I03503007a5bd71f3d58c8ad09b0eb5ffd3f9050a
Closes-bug: 1585703
2016-05-25 21:19:06 +00:00
Dougal Matthews
a50dcfce4e Add Python 3.4 to the classifiers
Change-Id: I908c692b1fdf4c2530de95d38070f4c6f13c4393
2016-05-24 10:38:03 +01:00