Jump to: navigation, search

Horizon/MerlinEval

Merlin Horizon Integration

This page walks through the instructions of how to install Merlin into Horizon.

Useful Links

https://wiki.openstack.org/wiki/Merlin 
https://github.com/stackforge/merlin

Steps

1. Create a workspace for horizon and merlin projects

$ mkdir <workspace>
$ cd <workspace>
$ git clone https://github.com/openstack/horizon.git
$ git clone https://github.com/stackforge/merlin.git

2a. Update Horizons local_settings.py

$ cd horizon/openstack_dashboard/local/
$ cp local_settings.py.example local_settings.py

2b. Add sqlite database

$ vi local_settings.py
...
DATABASES = {
   'default': {
      'ENGINE': 'django.db.backends.sqlite3',
      'NAME': 'horizon.sqlite3'
   }
}
...

3. Create Horizon's .venv

$ cd horizon/
$ ./run_test.sh

4. Create symlinks to from Merlin to Horizon

$ cd .venv/lib/python2.7/site-packages/
$ ln -s <workspace>/merlin/merlin/ .
$ ln -s <workspace>/merlin/extensions/mistral .

5. Add Mistral Panel to Horizon

$ cd <workspace>/openstack_dashboard/enabled/_50_add_mistral_panel.py .

6. Sync the database

$  cd <workspace>/horizon/
$  source .venv/bin/activate
$ python manage.py syncdb

7. Start Horizon dev server

$ ./run_test.sh --runserver

Screen Shots

Mistral1.png

Mistral2.png

Mistral3.png