1781 Commits

Author SHA1 Message Date
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
Jenkins
6953f11391 Merge "Updated from global requirements" 2016-04-06 00:12:02 +00:00
Jenkins
e456c189ff Merge "Fixing issue with different versions of oslo_messaging" 2016-04-05 21:39:34 +00:00
OpenStack Proposal Bot
6aac26931d Updated from global requirements
Change-Id: I1604a4a8dcc28b9aea554cfa2a3a6455debc2cbc
2016-04-05 18:47:49 +00:00
Jenkins
5746d83592 Merge "Getting rid of task result proxies in workflow context" 2016-04-05 14:22:51 +00:00
Jenkins
18a5351448 Merge "Hacking log for warning" 2016-04-05 14:11:24 +00:00
Nikolay Mahotkin
d04dd4d13a Fixing issue with different versions of oslo_messaging
Change-Id: I4555061c2b4ee9939d7ce4bc00d1b53e3f90ad4e
2016-04-05 14:16:37 +03:00
Renat Akhmerov
4a88302f49 Getting rid of task result proxies in workflow context
* Task result proxies were needed to be able to access
  task result as $.task_name. But this was deprecated in Mitaka
  in favor of using task() YAQL function. So it's time to get
  rid of complicated internal machinery before making further
  improvements

Change-Id: I9b8c1c9ac6e9561c6aa66151011ae2f7d906179a
Implements: blueprint mistral-remove-task-result-proxies
2016-04-05 17:47:47 +07:00
Nguyen Hung Phuong
6c6484e7b9 Fix typos in Mistral files
Change-Id: I2e2d8a7e0802db74782f62d21006c6c6dcc7ed9d
2016-03-31 06:46:39 +00:00
zhangguoqing
7e0ffb7bec Hacking log for warning
specially checking LOG.warn to LOG.warning
https://review.openstack.org/#/c/263112/

Reference: https://review.openstack.org/#/c/264334/

Change-Id: I694ca1d30bb8fac503dbe11b53b5f8bae3a86864
2016-03-30 11:50:15 +00:00
Jenkins
ea935a0f5f Merge "Fixing engine transaction model and error handling" 2016-03-30 11:38:36 +00:00
Renat Akhmerov
ad07ba0d68 Fixing engine transaction model and error handling
* Transaction in on_action_complete() must not be splitted into 2 parts,
  it caused the bug with after task completion logic
* Fix executor behavior so that it doesn't send an error back to engine
  if a error came from engine itself. It should report back only errors
  occurred with an action itself.
* YAQL and other expected Mistral exceptions in transitions should not
  lead to transaction rollback and rollback of action result. For example
  if action result came and it's valid but while evaluating transition
  conditions we got a YAQL exception then action result should be stored
  normally w/o transaction rollback and corresponding task and workflow
  should fail with corresponding state_info.
* Fixed all tests
* Minor cosmetic changes

Closes-Bug: #1524477

Change-Id: I09086e40a5902bbb6c977bf195cb035e31f21246
2016-03-30 17:19:13 +07:00
Jenkins
df1cab7a26 Merge "Also package mistral_tempest_tests" 2016-03-29 14:39:02 +00:00
Renat Akhmerov
9a1a157274 Refactor workflow controller and fix a bug in _fail_workflow()
* Method get_controller is moved out from WorkflowController class
  because it's not related with its functionality directly
* Fixed tests accordingly
* "not found" test has been removed because there's no way now to
  make "not found" exceptin get raised. In order to make it happen
  we need to have a new workflow specification class w/o corresponding
  WorkflowController implementation. So that exception is just left
  just to check ourselves when we're working on a new WorkflowController
  implementation.

Change-Id: I0330870e4382f01c4519b5c48e43ac50a08db338
2016-03-28 14:49:36 +07:00
Renat Akhmerov
3e9aa8b310 Fixing a bug in DB API method that acquires entity lock
* Before this change method acquire_lock() would override all changes
  made for an entity by a concurrent transaction when calling
  entity.update() although one line before it should have read this
  entity from DB and update only a timestamp to acquire the lock.
  The solution is just to append "FOR UPDATE" to an SQL statement
  when fetching an entity from DB. In this case we don't need to
  artificially update a timestamp at all.
* Unit test for MySQL or Postgres is currently impossible, all unit
  tests are run against sqlite
* Adding "PYTHONHASHSEED = 0" into "venv" environment in tox.ini to
  prevent sphinx from failing. It should be added to "venv" because
  docs building run with command "tox -evenv -- python setup.py build_sphinx".
* Fixed minor style issues

Change-Id: Ia749f397e18e927820ff7ae6bac7d28dc2aa2ba4
2016-03-28 14:47:09 +07:00
Thomas Goirand
a4c4eadbce Also package mistral_tempest_tests
With the current setup.cfg, the folder mistral_tempest_tests is not
being packaged, making it more difficult for package maintainer like
myself to run tempest tests. Please allow this change, so that I don't
have to carry such a patch in the Debian package.

Change-Id: I5c34f3516c4f171ab4f34647f1cc4a08883feacf
2016-03-25 14:24:31 +01:00
Nina Goradia
fdb24bd697 module docs are not being generated
The pbr section in setup.cfg is not defined, so the module docs are not being
generated. This causes the 404 when clicking on the ‘Module Index’ link under
the 'Indices and Tables’ section in [0].

[0] http://docs.openstack.org/developer/mistral/

Change-Id: I337e9f6e78257a3e8e9222779dfcd600ba6cebd8
Closes-bug: #1558574
2016-03-21 17:27:14 -05:00
Jenkins
411bedc4dc Merge "Update reno for stable/mitaka" 2016-03-17 13:16:28 +00:00
Jenkins
ff9db64c66 Merge "Run mistral services as separate processes" 2016-03-17 11:08:37 +00:00
Thierry Carrez
554e14e435 Update reno for stable/mitaka
Change-Id: I263ce614eecab3011f4333c6bcfa1663493e6311
2016-03-17 08:52:54 +00:00
Jenkins
85b7b9c1fa Merge "Ack message after processing (oslo.messaging)" 2016-03-16 16:42:45 +00:00
Jenkins
2f8c62d5c5 Merge "Reduce spec parsing some more" 2016-03-16 16:12:51 +00:00