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
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
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
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
* 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
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
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
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
use identity_uri to set up keystone connection settings to
avoid wrong keystone uri settings.
Change-Id: I4b0836a6a241de2ddebf175445fd86a0bf8dcf85
Closes-bug: #1684050
Add support for enabling WSGI in Apache for the devstack plugin. This
will allow an additional CI gate.
Change-Id: I953dbdab71029b392f8846c50fa3d801c293cc5a
* 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
* '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
* 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
* 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
* 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
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
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