2815 Commits

Author SHA1 Message Date
Adriano Petrich
4c53234e27 Adding log to db_sync
if called by mistral-db-manage it will log info level
    to /var/log/mistral/mistral-db-manage

Included some debug level logging also for main actions.

Change-Id: I0574b38efcc0dd7485953bf3089ff0a5a3ef6394
Closes-Bug: #1689821
2017-05-16 05:17:08 +00:00
Winson Chan
b6de4720db Fix WSGI script for gunicorn
The previous patch to add support for apache breaks gunicorn. The gunicorn
setup loads the mistral.api.wsgi module and requires the application
variable be assigned. The support for apache make the assumption that the
mistral.api.wsgi be called as a python script. This patch moves the init
function required by apache to a different location.

Change-Id: Ib5af50a55d3f3bb9d0fa0d1ee6b8e7564f909d70
Closes-Bug: #1689943
2017-05-10 21:31:42 +00:00
Emilien Macchi
2a2c8e733b Revert "Support transition to keystone auth plugin"
This patch broke Ironic introspection workflow:
https://bugs.launchpad.net/tripleo/+bug/1688767

This reverts commit 1c485867c456df32cf0401a47d177b2478a51313.
Related-Bug: #1688767

Change-Id: I86d4b40e19b3b0b3cfe0d30e2c5a588e29af6d98
2017-05-09 13:02:12 +00:00
Jenkins
bffc72df4a Merge "Force Python 2 for pep8 linting" 2017-05-07 13:38:59 +00:00
Boris Bobrov
074a04ad6d Change service name to workflowv2 in docs
Today we use workflowv2 instead of workflow. Clients and puppets expect
it.

Change-Id: Id2994db9bbb2b1440bd9c92706dbd1ff6616569b
Closes-Bug: 1688219
2017-05-05 11:11:54 +00:00
Brad P. Crochet
1c485867c4 Support transition to keystone auth plugin
The puppet module puppet-mistral is moving to use a proper keystone
authtoken module. This supports that transition. A follow on patch
will remove the transition code.

Change-Id: Ief32ae01372c8c8d32fc5e2c89a2927510983a5b
2017-05-04 17:40:55 -04:00
chenaidong1
97e2d359b6 Fix a typo
Change-Id: I64e8a5ca2ac3dd79ab9a8e4199aeea344f43226f
2017-05-04 16:48:43 +08:00
Jenkins
f3bcd58a37 Merge "Add support for mistral-lib to Mistral" 2017-05-03 04:40:48 +00:00
Jenkins
a6173a0330 Merge "Refactor Kombu-based RPC" 2017-05-03 02:14:00 +00:00
Dougal Matthews
a4a8e96a97 Force Python 2 for pep8 linting
It will otherwise fail with errors in the tempest tests, as they are not
Python 3 compatible.

Change-Id: I1a023cc58672de2b51da8d30ad621e67d6a93093
2017-05-02 09:04:24 +00:00
Dougal Matthews
20f66fd8f2 Add support for mistral-lib to Mistral
This patch wont pass CI until mistral-lib is packaged for the TripleO
CI.

Depends-On-External: https://review.rdoproject.org/r/6266
Depends-On: Icec6d1a3c483a30e9e3fa3175ed0233053c69daa
Change-Id: Iab8d093f53477585e60a99413ed5379fb7e5b4ae
2017-05-02 10:04:01 +01:00
Jenkins
b55f5a90bb Merge "Optimizing lang schema validation" 2017-05-02 07:59:47 +00:00
Jenkins
f41879b009 Merge "Don't save @property methods with other attributes" 2017-05-02 03:23:27 +00:00
OpenStack Proposal Bot
86940b33b5 Updated from global requirements
Change-Id: Id70091df71adc17074ec284c2a08060790b1bea0
2017-05-01 14:00:27 +00:00
Renat Akhmerov
a4d6de6759 Refactor Kombu-based RPC
* Tests didn't work if we ran them individually in a local env
  because not all config options were set. Options set by
  oslo.messaging were missing. Calling the method
  oslo_messaging.get_transport() in KombuRPCClient and KombuRPCServer
  during initialization solved this problem.
* Removed _transport_url from KombuRPCClient and KombuRPCServer
  since it was never used except for validating rpc_backend config
  option.
* Fixed incorrect mocking of KombuRPCListener in KombuRPCClient tests
* Other minor style changes.

Change-Id: I085cdf3a6efbe0f5f24cfebda91a2453b7e74c26
2017-05-01 13:37:50 +00:00
Winson Chan
eb09a90749 Make rpc_backend not engine specific
The rpc_backend with kombu and oslo are being used by the executor
and event engine as well. This patch move the rpc_backend up one
level so it's not engine specific. Also Event engine has its own module
and the EventEngine class is defined in the engine module. This patch
moves the EventEngine to it's own base file in the event_engine module.

Implements: blueprint mistral-actions-run-by-engine

Change-Id: Ie814a26e05f5ca6bfba10f20a7d5921836aa7602
2017-04-27 20:02:40 +00:00
Winson Chan
62d8c5edaf Add option to run actions locally on the engine
Make executor pluggable and allow option to run the executor
locally on the engine or remotely over RPC.

Change-Id: I7cfb13068aa1d1f88136eaa092e629c34b78adf2
Implements: blueprint mistral-actions-run-by-engine
2017-04-27 20:02:27 +00:00
Dougal Matthews
aab7844904 Don't save @property methods with other attributes
When actions are registered, Mistral saves the attributes on the class,
if one of them is a method with the @property decorator then it will
fail - these appear to be regular attributes, not methods, but are of
the object type `property`.

This change adds a type check to ignore any property objects.

Change-Id: I7de3964b74d00d147d847ec664dc8c5d0b734321
2017-04-26 17:24:14 +01:00
Jenkins
a753759cad Merge "Optimize the link address" 2017-04-21 07:15:29 +00:00
Jenkins
3d9855356a Merge "Fix the keystone auth url problem" 2017-04-20 07:00:02 +00:00
yong sheng gong
f6e8099761 Fix the keystone auth url problem
use identity_uri to set up keystone connection settings to
avoid wrong keystone uri settings.

Change-Id: I4b0836a6a241de2ddebf175445fd86a0bf8dcf85
Closes-bug: #1684050
2017-04-20 00:18:33 +08:00
Jenkins
7877f1c683 Merge "Fix serialization issue" 2017-04-19 12:40:08 +00:00
Jenkins
672fb9e88f Merge "Fix the doc for 'concurrency' policy" 2017-04-19 11:32:05 +00:00
Jenkins
b037fe58f8 Merge "Advanced publishing: add 'global' function to access global variables" 2017-04-19 11:18:24 +00:00
Jenkins
9af5297481 Merge "Advanced publishing: add publishing of global variables" 2017-04-19 11:18:18 +00:00
Jenkins
a36bbc14c8 Merge "Advanced publishing: change workflow lang schema" 2017-04-19 11:18:12 +00:00
Jenkins
9888f01036 Merge "Add "Project Goals 2017" to README.rst" 2017-04-19 09:55:30 +00:00
Jenkins
ad5af62548 Merge "Enable WSGI under Apache in devstack" 2017-04-19 09:55:18 +00:00
loooosy
2ea1df5aa2 Optimize the link address
Use https instead of http to ensure the safety

Change-Id: If1f5f2ce86b82ed48a7d8a990773638363f6043a
2017-04-17 22:02:34 +08:00
Jenkins
d098c63505 Merge "Disable pbrs auto python-api generation" 2017-04-14 11:08:57 +00:00
Jenkins
7dafe4488b Merge "Set the basepython for the venv tox environment" 5.0.0.0b1 2017-04-14 05:19:16 +00:00
Brad P. Crochet
8f335f544e Enable WSGI under Apache in devstack
Add support for enabling WSGI in Apache for the devstack plugin. This
will allow an additional CI gate.

Change-Id: I953dbdab71029b392f8846c50fa3d801c293cc5a
2017-04-13 12:00:08 -04:00
Jenkins
8778de310a Merge "Add documentation for the engine commands" 2017-04-13 14:00:22 +00:00
Renat Akhmerov
ddc80dea81 Add "Project Goals 2017" to README.rst
Change-Id: I03df44f9779a643ae89514101f457990cd28bab4
2017-04-13 18:11:09 +07:00
Jenkins
5a3099765d Merge "Changed the README.rst and added debug guide" 2017-04-13 09:55:40 +00:00
Renat Akhmerov
4ef619961f Fix the doc for 'concurrency' policy
Change-Id: I489345a057743603f84b1debd2fd3cbab5b1cecf
Closes-Bug: #1671803
2017-04-13 16:12:53 +07:00
Dougal Matthews
0ad8cdd65c Add documentation for the engine commands
Change-Id: I857e825ab5529e23337ee9f8739dd0bb80b3e7bb
2017-04-13 08:55:17 +01:00
Renat Akhmerov
5c185c3481 Optimizing lang schema validation
* Before this patch some language specification schemas were
  validated twice (or even more) because some parent specs had
  references to specific schemas of child specs in their schemas.
  And due to our recursive parsing algorithm the same schemas were
  checked many times. It reduces performance and complicates
  the entire lang specification framework because there's too many
  relationships between different specs. The better approach is to
  reduce a number of relationships. One way is to not check schemas
  child specs when checking parent spec schema. This patch removes
  such references replacing them just common schemas like
  "non-empty" or "any" which don't lead to validating sub-schemas
  when validating parent schemas.
* Minor style changes

Change-Id: I6b695c1870bf8b70112332d4052115543382cdc7
2017-04-13 14:30:42 +07:00
Renat Akhmerov
ca1009c327 Advanced publishing: add 'global' function to access global variables
Partially implements: blueprint mistral-advanced-publishing-global-vars

Change-Id: I855e325db6309ce5a426ee71ba12db2ad17f3b9e
2017-04-13 12:05:57 +07:00
Renat Akhmerov
e721e7ff23 Advanced publishing: add publishing of global variables
Partially implements: blueprint mistral-advanced-publishing-global-vars

Change-Id: I964e367063f7e9a846b86c1057116d202d62715a
2017-04-13 12:05:56 +07:00
Renat Akhmerov
6c6e212688 Advanced publishing: change workflow lang schema
* 'on-success', 'on-error' and 'on-complete' can now look like
  described in "Advanced Publishing" specification [1]
* Refactored all places related to the spec changes
* Added unit tests for advanced schema of 'on-xxx' clauses

[1] https://github.com/openstack/mistral-specs/blob/master/specs/pike/approved/advanced_publishing.rst

Change-Id: I190fcec0a40ca6f97d712168f4be7a418bd1f0e8
Partially implements: blueprint mistral-advanced-publishing-global-vars
2017-04-13 12:05:34 +07:00
Renat Akhmerov
8da4c02d12 Fix serialization issue
* If serialization test runs first in the test suite it cleans up
  all registered entity serializers and therefore no other tests
  that need working messaging can pass. This patch fixes this
  problem by deleting only needed entity serializers in after
  this test.

Change-Id: Ic50c5ba67547aaf746a4522c1d555faf80ac5276
2017-04-12 18:39:13 +00:00
Renat Akhmerov
a772530af2 Fix a description of 'executor_thread_pool_size' option in Kombu RPC
* As it turned out, when we register this option in KombuServer
  we have to keep it exactly the same as it's registered in
  oslo.messaging. However, in oslo.messaging 5.21.0 the description
  of this option has changed so it our tests started failing with
  duplicate config option error. The reason is that oslo.config
  compares all option properties when it checks if an option is
  registered.

Change-Id: I87c8cac80214fffe919c67ff3c9c56ffae85b63a
2017-04-12 20:11:45 +07:00
Sharat Sharma
589b8e851f Changed the README.rst and added debug guide
* There was too much of information in the README.rst which was
  redundant. So, added some useful links in the file and removed
  redundant information.

* Added the debug_guide which provides some brief information
  about the debugging of mistral.

Change-Id: I9d3505864bec6b7ae4e4b2c386a98fd5a808564a
Partial-Implements: blueprint mistral-doc
Implements: blueprint mistral-docs-troubleshooting
2017-04-12 10:32:28 +00:00
Jenkins
1f71b81967 Merge "Add Apache License Content in index.rst" 2017-04-12 07:53:40 +00:00
Jenkins
3a3e33929c Merge "Add release note for resource RBAC feature" 2017-04-12 07:52:52 +00:00
OpenStack Proposal Bot
41e886a1c3 Updated from global requirements
Change-Id: I69ec777dca7b416c749f0c665c83f4ebe8bb7419
2017-04-12 04:13:58 +00:00
Dougal Matthews
2553b2be1a Disable pbrs auto python-api generation
Mistral is a service, without a public Python API (other than the
actions api which is being moved out). Therefore including the Python
code in the documentation isn't useful. While it is present, it often
comes up in search results which will be confusing for most users.

Change-Id: Ib9d5e1a7baecf70d8e224cff470f968012317edd
2017-04-11 16:18:21 +01:00
Dougal Matthews
28ea6be8df Set the basepython for the venv tox environment
CI uses the venv tox environment to build the documentation. We need to
make sure that Python 2 is used until out docs build correctly under
Python 3.

Change-Id: I1a1d3123f22bf89965eb65e48648aae38cbdd254
2017-04-11 16:11:39 +01:00
Jenkins
7af91479b9 Merge "Use Jinja2 sandbox environment" 2017-04-11 10:04:00 +00:00