Files
mistral/contrib/devstack
Nikolay Mahotkin c5d442e6e4 Modify action_factory to store actions in DB
* 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
2014-09-05 15:32:12 +04:00
..
2014-04-29 15:24:23 +04:00

  1. Follow Devstack documentation to setup a host for Devstack. Then clone Devstack source code.

  2. Copy Mistral integration scripts to Devstack:

    $ cp lib/mistral ${DEVSTACK_DIR}/lib
    $ cp extras.d/70-mistral.sh ${DEVSTACK_DIR}/extras.d
  3. Create a local.conf file as input to devstack.

  4. The Mistral service is not enabled by default, so it must be enabled in local.conf before running stack.sh. This example local.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
  5. Deploy your OpenStack Cloud with Mistral:

    $ ./stack.sh