3614 Commits

Author SHA1 Message Date
Jenkins
c2803984ed Merge "Throw NotFoundException when object not found" 2014-05-28 02:28:46 +00:00
Sergey Murashov
d0fe92f90f Fix url in "get workbook definition" test
Change-Id: Ic3fe0f7b88437ea85da5c8c659d6dd35bd046abc
Closes-bug: #1323585
2014-05-27 14:44:53 +04:00
Angus Salkeld
5e9ffd5c47 Cleanup exceptions and add http code
- Remove redundant constructors
- always use "code" as an http_status
- fix the default message strings so you can pass nothing into the
  exception constructor and it will work.
- add some basic tests

Partial-bug: #1320136
Co-Authored-By: Nikolay Mahotkin <nmakhotkin@mirantis.com>

Change-Id: I9e21c6d5d39f1203324a37a39e5fd6069062b733
2014-05-27 09:31:53 +00:00
Nikolay Mahotkin
1efbf6e9e3 Throwing an error when workbook validation fails
Partially closes bug: #1322421

Change-Id: I86b730d7b98a0f684881d53da340596f3c9ce7fe
2014-05-23 17:02:18 +04:00
Nikolay Mahotkin
1d5a915145 Throw NotFoundException when object not found
* Done for workbooks and executions
 * Return 404 code on request to API if
   object does not exist

Change-Id: I057a8385b08af7375cd037d6a62a4efdcc4f8fa1
2014-05-22 15:02:54 +04:00
Jenkins
c989fd75e8 Merge "Task.publish now is processed as arbitrary structure" 2014-05-20 15:17:24 +00:00
Jenkins
30dd6e04f7 Merge "Fix creating trust on workbook creation" 2014-05-20 15:07:04 +00:00
Jenkins
772d4f7c06 Merge "Fix 500 status code on DELETE request" 2014-05-16 18:28:21 +00:00
Nikolay Mahotkin
b2d2dc554f Fix creating trust on workbook creation
* We used the wrong project name for creating the trust. 
   Now we are using project name from config

Closes bug: #1318603

Change-Id: I51d1da115b0e0e9551d0174c821ed2886f5a79d8
2014-05-16 07:38:29 +00:00
Winson Chan
2b1a2ea7d9 Allow launch script to start any combination of servers
Currently, the launch options are only all, api, engine, and
executor. We want to allow launch options to start any combination
of servers such as api and engine or engine and executor. The
launch script is modified to the --server command line option to
accept a comma delimited list.

Change-Id: I4ce31f5fabd4de3b2f8f0e4c5ef661ed4ec7e5b2
Implements: blueprint mistral-launch-options
2014-05-15 07:59:28 -07:00
Jenkins
ecec340b52 Merge "Fix issue with tempest tests" 2014-05-15 09:26:55 +00:00
Jenkins
1d67fd609b Merge "Add test on arbitrary output dict in action" 2014-05-14 08:38:51 +00:00
Jenkins
214ae36e75 Merge "Fix demo.yaml example in tempest tests" 2014-05-14 08:38:13 +00:00
Nikolay Mahotkin
a8ae8e336e Fix 500 status code on DELETE request
Closes bug: #1318620

Change-Id: I0a5876111dfbe8f1284f28b3b9bf914779c1f560
2014-05-12 16:11:32 +04:00
Sergey Murashov
0847ca4766 Fix issue with tempest tests
Change-Id: I20cce5910c4b166531267ce4014dfadbb83cc31c
2014-05-12 11:09:41 +04:00
Nikolay Mahotkin
e600f63237 Task.publish now is processed as arbitrary structure
Change-Id: I74cf7ea7f19356461d3d55af7541b8a4ced4eeae
2014-05-08 16:17:35 +04:00
Nikolay Mahotkin
deca14c5e8 Fix demo.yaml example in tempest tests
Change-Id: Icce921290976f80c70487b770ecd7811a3e4ba18
2014-05-07 17:32:28 +04:00
Nikolay Mahotkin
116488a60a Add test on arbitrary output dict in action
Change-Id: I3cf0453638014fc53bd3005e434c6160f75d0cb0
2014-05-07 14:09:47 +04:00
Sergey Kolekonov
1984b3ea54 Fix mistral tests
- corrected the path to tests
- removed check_api.sh script because it's not needed anymore
- made scripts executable

Change-Id: I2c6364e8ad4355b8b8565904d58773e8412bdf6d
2014-05-06 12:36:22 +04:00
Jenkins
c37061ca5e Merge "Refactor engine to use plugins" 2014-05-06 05:07:07 +00:00
Jenkins
3b23751166 Merge "Update mistral tests" 2014-05-06 04:53:01 +00:00
Sergey Murashov
623e12320e Update mistral tests
Update mistral tests for devstack gate job

Change-Id: Ia56ea50d9f0da6ca0e98efa53a88ab2dfb499f3c
Partly-Implements: blueprint mistral-open-qa-process
2014-05-05 17:44:15 +04:00
Nikolay Mahotkin
14009d9eea Context contains results of all previous tasks now
* Also fix publishing a variables in case
   non-dict action result

Closes bug: #1316028

Change-Id: I6c72a79d33600ea990c5f78849d928d63a47eaec
2014-05-05 13:17:58 +04:00
TimurNurlygayanov
580946cc3a Fixed issue with tarballs
Change-Id: I4155a5c78c46cb4d0eae6957b5c7a9914c4e7ad7
2014-04-30 18:12:55 +04:00
Jenkins
5305521323 Merge "Fixes list of requirements" 2014-04-30 09:48:36 +00:00
Winson Chan
6c5ca50b4c Refactor engine to use plugins
Refactor current engine process to instantiate the concrete engine using
stevedore. The current engine uses importutils to load the concrete engine.
Since the executor is tightly coupled to the engine, it is also refactored
to use stevedore. The ScalableEngine is renamed to DefaultEngine and moved
to the mistral.engine.drivers.default namespace. The setup.cfg file is
updated to include entry points for the engine and executor plugins.

Change-Id: Ia9d15b25ca96387e5ac22c1a86cffc7a816e92fd
Implements: blueprint mistral-engine-plugin
2014-04-30 01:28:14 -07:00
Jenkins
62d47c6d82 Merge "Added Devstack integration" 2014-04-30 07:13:06 +00:00
TimurNurlygayanov
646bc3ee30 Fixes list of requirements
Please see the following link for more detailed information:
https://github.com/openstack/requirements/blob/master/global-requirements.txt

Change-Id: I2fae60646c56f29d4d8238356553b667b787f6cc
2014-04-30 10:51:14 +04:00
TimurNurlygayanov
f928c8c11b Fixes README.rst formatting
Change-Id: I5343a6b249295b235aec553ca95c7b4244459dae
2014-04-30 10:25:38 +04:00
Jenkins
cde8a9a23a Merge "Making workflow trace logging more consistent" 2014-04-29 18:00:03 +00:00
Renat Akhmerov
6fdff6989e Making workflow trace logging more consistent
* Deleted a comma everywhere in workflow trace logging

Change-Id: I98c6c96e283b08f076ddc4b9617548dad844dcad
2014-04-29 22:50:55 +07:00
Sergey Kolekonov
55b9dc53ea Added Devstack integration
- added devstack integration files
- added a simple api test (for the devstack-gate job)

Partial implements blueprint mistral-devstack-gate-job

Change-Id: Ibb859c5eda7719d0e046bf833a6eec69bcbeb8be
2014-04-29 15:24:23 +04:00
Renat Akhmerov
e5b8879eb1 Fixing setup.cfg
* Added registration of a console script

Change-Id: Iac85dddc1442d4353659f7186b5668f3226c9c30
2014-04-29 05:18:19 +00:00
Jenkins
47981943f1 Merge "Replace rabbit config to 'default' section" 2014-04-29 04:48:00 +00:00
Nikolay Mahotkin
b20853aa4c Fix work on MySQL backend
Closes Bug: #1313543

Change-Id: I87eb2274aa13445a793de896648438067ad12282
2014-04-28 14:19:37 +04:00
Nikolay Mahotkin
46c049d480 Replace rabbit config to 'default' section
* Rabbit configs are moved to 'default' section due to
   oslo.messaging doesn't read these parameters from
   section 'rabbit'

Change-Id: I39393a779076f36c6142d770efa268178437332b
2014-04-28 14:15:05 +04:00
Jenkins
abf318a3f4 Merge "Improved README file" 2014-04-25 15:22:33 +00:00
Renat Akhmerov
c4130e6736 Additional workflow trace logging in abstract_engine.py
Change-Id: Ibb0384d3d5c1d9b3e653cf4ce30f641fbc481576
2014-04-25 19:15:26 +07:00
Renat Akhmerov
345590ec15 Fixing wrong comparison in retry.py
Change-Id: I12254834558823fe02ce1eebfa1cfc525a091f61
2014-04-25 17:15:51 +07:00
Winson Chan
e003849ecf Engine as a standalone process
Refactored engine to run as a standalone process. The engine is
modified to use the RPC client/server design pattern from
oslo.messaging. A new launch option is included to run the
engine separately. The API server communicates with the engine
via the RPC client. A pecan hook is used to pass a common client
instance with appropriate transport configuration to the API.

Change-Id: I9ca757aedad764fd38645a5b858800d69808bb95
Implements: blueprint mistral-engine-standalone-process
2014-04-24 17:46:05 -07:00
Nikolay Mahotkin
53cc1d8d31 Improved README file
Change-Id: I79ede236c8493894b5eda91db8053074ec16fb38
2014-04-24 18:33:02 +04:00
Jenkins
ae46014ad8 Merge "Fix evaluating task parameters" 2014-04-24 09:02:43 +00:00
Nikolay Mahotkin
478b5cd9dc Fix evaluating task parameters
Change-Id: I5ee4b5ae22017e607f283ccfb19f86a27317e7cf
2014-04-24 12:23:21 +04:00
Jenkins
712f60d23c Merge "Adding all conf files in etc/ to .gitignore" 2014-04-24 08:14:45 +00:00
Renat Akhmerov
9ad619690b Adding all conf files in etc/ to .gitignore
Change-Id: Id6cf1818a64170fd8695cf7867cbf905646507ec
2014-04-24 12:45:45 +07:00
Manas Kelshikar
594fab664d Fix broken retry tests
* Failure was in output transformer specified in retry_task.yaml.
* Added assertion back to enable the tests.
* Extra logging to include more context in the logs to gather more insight from the logs.

Change-Id: Ic6f4665cd4d74d2676fc17891dbf66984926cd42
2014-04-23 21:47:33 -07:00
Jenkins
c55623c96d Merge "Remove etc/logging.conf" 2014-04-23 21:17:48 +00:00
Jenkins
e1a63d4bf6 Merge "Add workflow logging" 2014-04-23 20:54:57 +00:00
Nikolay Mahotkin
5a8442ab00 Remove etc/logging.conf
* We should not keep .conf files, only examples

Change-Id: If2e37dfb46048180cc0391b8ed9aa0d295d11148
2014-04-23 15:45:31 +04:00
Nikolay Mahotkin
8b4d2f6128 Add workflow logging
* Created new log configuration for pretty workflow output.
 * Since this config opt is used before importing
   executor.server, I include some refactor of unit tests.

Implements blueprint mistral-pretty-workflow-logging

Change-Id: Ia9b8b5d401afafe99d6133685a4d3abbcb8ba2e3
2014-04-23 15:43:29 +04:00