1802 Commits

Author SHA1 Message Date
Michal Gershenzon
594b3e27f9 Add API to validate ad-hoc action
Add an API that gets an ad-hoc action DSL and validates it.
This is done in the same way workflows are validated today.

Change-Id: Ibbb949ef38befae1ef83a2a56cda4c817ceb41d4
Implements: blueprint validate-ad-hoc-action-api
2016-05-18 11:02:59 +00:00
OpenStack Proposal Bot
2eb1e1e603 Updated from global requirements
Change-Id: I55f3df8021b4888eb6ac2ada13eb9d6c2ce5da57
2016-05-17 04:38:28 +00:00
Jenkins
57f2097f47 Merge "Remove oslo.messaging hack since it's broken with 5.0.0 version" 2016-05-17 04:23:26 +00:00
Jenkins
ce3b188fc8 Merge "Add Designate apis as mistral actions" 2016-05-16 21:39:56 +00:00
ravikiran
42ca859c27 Add Designate apis as mistral actions
Implement designate actions in Mistral, useful for automating the designate tasks

Change-Id: Id6f9d1c7a29530068be453a7c8c1fc607af23e91
Implements: blueprint designate-api-actions
2016-05-16 02:54:41 -04:00
Renat Akhmerov
87aeb0ac5a Remove oslo.messaging hack since it's broken with 5.0.0 version
Change-Id: If25e96f0712dd2c9129101325c4cd23d3c9ca259
Closes-Bug: #1580139
2016-05-16 12:17:18 +07:00
Jenkins
e36a99b4b4 Merge "Fix the yaql github repository" 2016-05-16 04:25:54 +00:00
venkatamahesh
32b0121720 Fix the yaql github repository
Change-Id: I0a4320a3f2169ee75b1a9809f89c115878d05d20
Closes-Bug: #1581973
2016-05-15 21:35:39 +05:30
OpenStack Proposal Bot
50210a770a Updated from global requirements
Change-Id: Ic2f88e4e3e607cde76a343fdbbed19cb27a3e8cb
2016-05-13 17:04:36 +00:00
OpenStack Proposal Bot
627145b311 Updated from global requirements
Change-Id: I4d302b637b7b049b875575ed5df87c80f7790ee0
2016-05-11 13:59:03 +00:00
Anastasia Kuznetsova
2b517d8838 Fix mistral installation in devstack
After pip upgrading following error has occured during
mistral installation:
Invalid requirement, parse error at "'[-e]'"

I assume that this is because of extra '-e' flag that was passed
in mistral script and that is redundant ('-e' flag will be added
automatically in setup_develop function).

Change-Id: Ifed16935b045c723881a9da157a8759eea421c2c
2016-05-11 14:14:20 +03:00
Renat Akhmerov
96e6d7e403 Refactoring exception hierarchy
* Clear separation for problems that can be handled so that the program
  can continue and problems that can't handled automatically due to major
  issues in configuration, environment or code itself
* Split YAQL exceptions into two types: grammar exception and evaluation
  exception
* General NotFoundException is replaced with more specific DBEntryNotFoundException
  for better consistency with other DB exceptions and more clear semantics
* Fixed corresponding tests

Change-Id: I07f495ab316b0f164caece78b1f101219199e68c
Implements: blueprint mistral-engine-error-handling
2016-05-11 10:13:33 +00:00
Jenkins
fa9f46b542 Merge "Fixing engine facade hierarchy" 2016-05-11 10:08:33 +00:00
OpenStack Proposal Bot
18f171576e Updated from global requirements
Change-Id: Ic4d52fb9bc3995de2f7d4c8d0bc0cca774ed19f9
2016-05-10 00:45:16 +00:00
Renat Akhmerov
cc32c82c16 Fixing engine facade hierarchy
* Method rerun_workflow() was missing in Engine interface
* Renamed parameters in the hierarchy to be more consistent
* Added missing docstrings

Change-Id: I08b2b552130fd16a20f6647349006939619b6659
2016-05-06 09:44:19 +00:00
Jenkins
09ab84d9ff Merge "Fixed issue related to docker image creation" 2016-04-20 22:08:28 +00:00
hardik
c93405f6b1 Fixed issue related to docker image creation
by default cgroup-lite is not installed on
ubuntu-trusty node.

Change-Id: Ia8543d7887a854ecbfdc76c1a91a53bd02fb77d5
2016-04-20 11:40:18 +00:00
OpenStack Proposal Bot
a1891fd29d Updated from global requirements
Change-Id: I919ed731479645a1b81efc573b12fe5913229275
2016-04-19 12:24:40 +00:00
Renat Akhmerov
1216ae63e1 Rename base API test class
* Base class for API tests was called "FunctionalTest" which is
  no longer a valid name (module itself is in "api" package).
  Renamed it from FunctionalTest to APITest to reflect its meaning
  better.
* Changed unit test for expiration policy so it does not inherit from
  APITest because it doesn't need to. DBTestCase as a parent is enough.

Change-Id: Ia86da0df49c4170e19520ee62528a6772fdec641
2016-04-18 08:36:28 +00:00
Jenkins
01a2f9396a Merge "Disabled ssl warnings while runing tempest tests" 2016-04-18 08:02:20 +00:00
Renat Akhmerov
1586c3e1d9 Disable cron trigger thread for API unit tests
* API unit tests activated cron trigger thread whereas all unit tests
  assume that it's not started. Tests  where it needs to be activated
  should do it explicitly and shut down it after completion.
  This was causing unpredictable results where we were assuming that
  there weren't any active cron trigger threads.
* Minor cosmetic changes

Change-Id: I7e30f80b29520e03f2e1673788c764aabe1e4a8b
Closes-Bug: #1564353
2016-04-17 21:54:43 +00:00
hardik
49d04cf45b Disabled ssl warnings while runing tempest tests
While running tempest tests over https, warnings
are shown for unverified HTTPS request beacause
by default urllib3 don't verify ssl certificates.
So now, certification validation warnings have been
disabled.

Change-Id: I0e99af8364e262baa37a56b0a8846abde3a8d2b0
Closes-bug: #1570451
2016-04-17 09:25:01 +00:00
Jenkins
d3ef00a122 Merge "Added script to create docker image" 2016-04-14 21:15:47 +00:00
Jenkins
ea0639540d Merge "Add extra checks for the existance of executor_callback" 2016-04-14 08:37:20 +00:00
Derek Higgins
22769b7c70 Add extra checks for the existance of executor_callback
In version of oslo.messaging > 4.6.1, the __call__ method of
dispatcher.RPCDispatcher no longer exists. It is now a 'method-wrapper'
from the "object" object.

Calling inspect.getargspec on a method-wrapper doesn't work
TypeError: <method-wrapper '__call__' of ABCMeta object at 0x2cc3650> is not a Python function

Change-Id: Ie2ca1a2b9163a5edfe1e779cff462692197a471d
2016-04-14 08:49:14 +01:00
OpenStack Proposal Bot
bb078af02f Updated from global requirements
Change-Id: I51c91e346ede4d8e0053c6fd0b2171be927a2d40
2016-04-14 02:33:58 +00:00
OpenStack Proposal Bot
11c26cffcc Updated from global requirements
Change-Id: Ib4d869042a75317ad03e262c6dbfe9207fe4cd3a
2016-04-13 12:44:04 +00:00
Jenkins
dcaccf84ff Merge "Switch to auto-generated cron trigger names in unit tests" 2016-04-13 12:39:47 +00:00
hardik
6bb604685e Added script to create docker image
Once this patch is merged, I will modify gate
job to use this script to create image.

Change-Id: Ieed72e184d5eb8a5f57cb557df8dabce54d122cf
2016-04-13 14:46:36 +05:30
Jenkins
025f4791d5 Merge "tempest: fix dir_path" 2016-04-12 08:54:32 +00:00
Renat Akhmerov
597665579d Switch to auto-generated cron trigger names in unit tests
* Before this change there was a possibility of conflicts between
  different tests working with cron triggers, especially if run
  in parallel, because of using same trigger names (e.g. 'test').
  To prevent such potential situations all trigger names should
  be unique and generated randomly.

Change-Id: I57b0ac8072ab5f9158547fa0611a1003d1dc5e8a
Partial-Bug: #1564353
2016-04-12 06:29:43 +00:00
Emilien Macchi
99edd17105 tempest: fix dir_path
This patch fix the dir_path that helps to get the directory of
Mistral resources.

Without this patch, this is what we get when running Tempest:

IOError: [Errno 2] No such file or directory:
'/usr/lib/python2.7/site-packages/mistral_mistral/tests/resources/openstack/action_collection_wb.yaml'

With this patch:
/usr/lib/python2.7/site-packages/mistral/tests/resources/openstack/action_collection_wb.yaml
This path is correct and Tempest runs successfully.

Change-Id: Ie4bd3db8a4e729f7937a6f3c099d7c25abffcb1b
Closes-Bug: #1568413
2016-04-11 13:31:51 -04:00
Renat Akhmerov
b549137e97 Leave more relevant comment in engine race condition test
* It still fails with SQLite in unit tests but not reproducible on MySql

Change-Id: I499e5f953299eb81245a825b5fd4c8a71d793fe4
2016-04-11 16:46:21 +00:00
Renat Akhmerov
39e2b4a8d0 Add utility methods to test action executions more conveniently
Change-Id: Ib97d09ee96d8c8ba13f1088e79cf1c018092e3c9
2016-04-11 16:45:56 +00:00
Jenkins
f69dcb3cb4 Merge "Replace self._await(lamdba: ..) constructs with more readable calls" 2016-04-11 16:38:58 +00:00
Jenkins
0a7e3004f0 Merge "Add auth_enabled=False to a cron trigger test" 2016-04-11 10:03:59 +00:00
Jenkins
33957d8f10 Merge "Fixing failing functional tests for Cinder and Heat actions" 2016-04-11 09:31:09 +00:00
Jenkins
6fea957d1b Merge "Update OpenStack actions mapping" 2016-04-11 08:42:26 +00:00
Jenkins
229d572fe1 Merge "Unblock skipped test" 2016-04-11 08:22:38 +00:00
Renat Akhmerov
8821deebe9 Fixing failing functional tests for Cinder and Heat actions
Change-Id: Ia8acb0786009fc66f7a68a2dfae9f37d7ef61506
2016-04-11 15:07:24 +07:00
Renat Akhmerov
29732bf826 Update OpenStack actions mapping
* Regenerated mapping.json sections for Nova, Heat, Cinder, Trove and
  Barbican

Change-Id: I6a2217c6dcb2e00537127230f9b2ef83ac04ed44
2016-04-11 12:15:09 +07:00
OpenStack Proposal Bot
06f385e972 Updated from global requirements
Change-Id: I0e0b171c379fec53378f02042950f3224cf536d6
2016-04-08 20:32:14 +00:00
hardik
3a2af38f71 Unblock skipped test
Now bug 1383146 is fixed, we should unblock
tests which was skiped due to this bug.

Change-Id: I679f1f665d3213634202ec3694e784153dd8c258
2016-04-08 11:23:22 +00:00
Renat Akhmerov
73d1105829 Replace self._await(lamdba: ..) constructs with more readable calls
* Added methods like await_workflow_state() and await_task_state() to
  avoid using complex constructs based on _await() methods and lambdas.
* Minor style changes

Change-Id: I7f79ec819c955a5a624ff4d103bf6e97b30d9b91
2016-04-08 10:45:17 +00:00
Renat Akhmerov
ca66caa208 Add auth_enabled=False to a cron trigger test
* test_create_cron_trigger_with_pattern_and_first_time was failing
  if run individually in IDE

Change-Id: I4b8374bb45deceb7d4707e0abb0e71b1262d3129
2016-04-08 14:31:32 +07:00
OpenStack Proposal Bot
fcfb271607 Updated from global requirements
Change-Id: I72ad23401b697be034fd71d7e2519e61ba53f6f2
2016-04-08 00:28:16 +00:00
OpenStack Proposal Bot
fdefc803bc Updated from global requirements
Change-Id: I1421f4e8bfebe8ceebe016e63a050c8af3e10023
2016-04-07 17:19:20 +00:00
Jenkins
440448dab2 Merge "Unblock skipped tests in test_action_defaults.py" 2016-04-07 08:08:32 +00:00
OpenStack Proposal Bot
9f34b17f17 Updated from global requirements
Change-Id: I23498ff48e184f0d4404125fbcdc01818970e88c
2016-04-06 04:26:09 +00:00
Renat Akhmerov
60a8d96fb8 Unblock skipped tests in test_action_defaults.py
* It now makes sense because https://bugs.launchpad.net/mistral/+bug/1517020
  is closed.

Change-Id: I9294ef9254df7015202926685da6cf8d670eaa57
2016-04-06 11:08:48 +07:00