
* 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
Follow Devstack documentation to setup a host for Devstack. Then clone Devstack source code.
Copy Mistral integration scripts to Devstack:
$ cp lib/mistral ${DEVSTACK_DIR}/lib $ cp extras.d/70-mistral.sh ${DEVSTACK_DIR}/extras.d
Create a
local.conf
file as input to devstack.The Mistral service is not enabled by default, so it must be enabled in
local.conf
before runningstack.sh
. This examplelocal.conf
file shows all of the settings required for Mistral:# Enable Mistral enable_service mistral # Use Keystone Identity API v3 (override 2.0 default) IDENTITY_API_VERSION=3
Deploy your OpenStack Cloud with Mistral:
$ ./stack.sh