Refactored to make the docker stuff self contained and removed the
unnecessary files from the root directory. Also created a readme file to
concretize how this feature works.
Also added an example script to set up Mistral with MySQL.
Closes-Bug: #1585911
Change-Id: I7fbcccb9d7ad168c5391e71326b205d074ab01ab
Signed-off-by: Andras Kovi <akovi@nokia.com>
This patch adds support for calling Mistral v2 APIs as actions in
Mistral.
There will be at least two more patch sets for this blueprint to
fully support these changes.
Change-Id: I0226482ddee1573232663e124837deb8a1985df8
Implements: blueprint mistral-mistral-actions
Add actions to post, pop and get messages from a Zaqar queue. As the
Zaqar client is built differently from other OpenStack modules, the
usual generator logic doesn't apply, we need to re-implement them
directly in the action
blueprint mistral-zaqar-integration
Change-Id: Ib9cc39a0053ad7c117e2fba4b3b64a216190567f
This patch adds support for all supported Swift v1 API
actions via Mistral.
Some updates are required to swiftclient before
can fully support it in tools/get_action_list.py.
Implements: blueprint swift-actions
Change-Id: Ie5de12a5eb921595be67b06fa68b29aee877ac6b
This patch adds support for all supported Ironic Inspector v1 API
actions via Mistral.
Some updates are required to python-ironic-inspector-client before
can fully support it in tools/get_action_list.py.
Implements: blueprint ironic-inspector-actions
Change-Id: I28c85a0354dd1880eed36bc4cee5a8051ac9d57b
Depends-On: 61f8de56a77187b87c3ae75c637a3aa9045f0beb
This patch adds support for all supported Ironic v1 API
actions via Mistral.
Implements: blueprint ironic-actions
Change-Id: Ib84caf28b7fe9f08bbaa8502b012132dff5dba58
This patch does several things:
-fixes an issue where trove_base now uses the Manager class
instead of HookableMixin. This would actually prevent
tools/get_action_list.py from running any service...
not just trove.
-adds 'trove' to the list of supported services by
using CLIENTS.keys() instead of the inline list
where 'trove' was previously missing
-The trove Client class now requires to arguments.
With these options I am again able to use get_action_list.py.
NOTE: The critical error here was actually the HookableMixin
exception in that it prevents you from using this tool with
other services.
Change-Id: I3207e1379101757b282260949a48d22fe193fe85
Closes-bug: #1521740
adding the action of ceilometer python client to mistral.
Change-Id: Icfb0fc6afa3cea5217493623079c8d25127957b5
Implements: blueprint mistral-ceilometer-actions
* use ',' instead of ', ' as separator, this way the trailing
whitespaces at the end of a line will be removed
* use an indent of 8 instead of 4, this way it is possible to paste
the generated JSON output into the mapping.json file
Change-Id: I5232490afabf5024e573109d3fc8ba3a6a003a47
This solves the following issue:
---snip---
UserWarning: 'novaclient.v2.client.Client' is not designed to be
initialized directly. It is inner class of novaclient. Please, use
'novaclient.client.Client' instead.
---snap---
Partial-bug: #1493576
Change-Id: Iceca8ccdfaa15108d3ea321ff164975f5f94ae95
* use oslo.log for logging functionality
* get rid of the file /mistral/openstack/common/log.py
Implements: blueprint mistral-log-enhancement
Partial-Bug: #1459188
Change-Id: I6b62cffda0a20b6caf59cc30bcc33c21ae1e5898
* It is simple CLI tool.
* Script now works fine for: Nova, Keystone,
Glance, Heat and Cinder.
* in case of Keystone, user must provide full
auth_info and use v3 auth_url.
TODO:
* Think on optimal way to do it for neutron.
Change-Id: I3ed144bd84a6fbd24dc518c17cd3962bf3af4caa
* Standard workflows are creating during sync_db.sh
* Standard workflows include:
- std.create_instance
- std.delete_instance
(list will be extended in future)
* Standard actions:
- std.wait_ssh (needed for std.create_instance)
* Make it possible to see these workflows from any project (global scope)
* Small changes in sqlalchemy api and workflows_service
Partially implements blueprint mistral-multitenancy
Change-Id: I8a8ace40949b2b711a292aac94d7e6354d1dff9c
The usage of $(COMMAND) shoud be preferred. Details can be
found at http://mywiki.wooledge.org/BashFAQ/082.
Also replaced two ` used in strings with '.
Change-Id: Ia729470c58da6fe2e505426bd5ce93214ec1f655
* Action factory register actions in DB at starting
* Added script tools/sync_db.sh for sync with db
(Updates system actions, it is required before
first Mistral launch)
* Changed init Mistral in devstack: we must do
sync_db before the launching.
* Since we have to write all actions in DB, unit
test are also modified:
* Now in tearDown() we don't drop db at all,
but just delete all things except Actions.
* Created heavy_init() method as a replacement
setUpClass(), see comments in tests/base.py
* Register actions operation is too much expensive
operation so we create db and init actions in
heavy_init() method.
TODO:
* Provide executor info to construct action class in
runtime using action_factory
* Modify/write an instruction 'How to start Mistral'
Change-Id: If4416c4da5c05189126c109aa613a0303c1b7ef0
Removed outdated configuration options from mistral.config. Used
cfg.CONF.import_opt in engine to avoid NoSuchOptError. Removed
the imports of mistral.config using importutils. Generated new
sample configuration file.
Change-Id: I4b5ea7ef2a9b6717e6f33256107409c228575048
Implements: blueprint mistral-config-cleanup
Updated openstack-common.conf and remove outdated modules. Ran update script
in oslo-incubator to generate modules in the mistral/openstack and tools
directories. Sqlalchemy backend has changed significantly in oslo-incubator.
Refactored mistral db api to address these changes and updated the base test
class DbTestCase accordingly.
Change-Id: I61327c33c0c8bc616af5e7633634461a2d7ac691
Implements: blueprint mistral-sync-with-incubator
- corrected the path to tests
- removed check_api.sh script because it's not needed anymore
- made scripts executable
Change-Id: I2c6364e8ad4355b8b8565904d58773e8412bdf6d
* Refactored API layer so that we can work with 'context' as with a
json object in underlying layers (DB, engine, etc.) rather than
a string
* Added "context" parameter in all required places
* Added necessary Data Flow related properties to DB models
* Refactored and fixed a series of tests
* Minor formatting changes
TODO:
* Calculation of task incoming context
* Abstract interface for expression evaluator
* Data Flow related tests
Partially implements blueprint: mistral-dataflow
Change-Id: Ie7f94d79265e9861f7ad15c76ff6d788ec62b683
* Adding required dependencies to use and test pecan/wsme app
* Adding additional modules from oslo-incubator
* Adding configuration files mistral.conf and specific file
loggin.conf for logging
* Adding dependencies for testing: fixtures, testtools, mock
* Updating tox.ini to run nosetests for py26 and py27 environments
Change-Id: I4fd63820aaaf3b50fb1c981031f60faa68a6d307