To build a reference dashboard you must use the two projects together. Here are the overall steps for building the dashboard.

  1. Get the source for both django-nova and openstack-dashboard.

  2. Optionally, build django-nova with the bootstrap script and build-out commands as shown.

  3. Build and configure the openstack-dashboard.

  4. Create the openstack-dashboard database with the syncdb command.

  5. Run the server that starts the dashboard.

Before you begin, you must have bazaar installed. It's straightforward to install it with sudo apt-get install bzr.

Create a source directory to house both projects:

mkdir src
cd src            

Now you can configure the dashboard application. The first step in configuring the application is to create your local_settings.py file. An example is provided that you can copy to local_settings.py and then modify for your environment.

cd ../openstack-dashboard/trunk
cd local
cp local_settings.py.example local_settings.py
vi local_settings.py

In the new copy of the local_settings.py file, change these important options:

If you are using an admin user that is named something other than "admin", add the following two options to the local_settings.py file. In this example, the admin user is named "osadmin".

  • NOVA_ADMIN_USER = 'osadmin'

  • NOVA_PROJECT = 'osadmin'

One additional option is available in the local_settings.py file, the default region. This can be set to anything, but is set to nova by default.

  • NOVA_DEFAULT_REGION = 'nova'

Now install the openstack-dashboard environment. This installs all the dependencies for openstack-dashboard (including the django-nova from earlier). If you don't already have easy_install installed, use sudo apt-get install python-setuptools.

sudo easy_install virtualenv
python tools/install_venv.py ../../django-nova/trunk

This step takes some time since it downloads a number of dependencies.

Once the download completes, create the database and insert the credentials for your Nova user:

tools/with_venv.sh dashboard/manage.py syncdb

Midway through the script, you are asked, "You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no):" Answer Yes, and insert these values as shown:

Username (Leave blank to use 'root'): *ENTER YOUR NOVA_ADMIN-LEVEL_USERNAME FROM NOVARC*
E-mail address: *ENTER YOUR EMAIL ADDRESS*
Password: *MAKE UP A PASSWORD*
Password (again): *REPEAT YOUR PASSWORD*                    

Once this configuration is complete, you should be returned to the prompt with no errors. If you get 403 errors, it probably means the user is undefined. Check the nova-api log file (typically /var/log/nova/nova-api.log) for specifics.


User Notes On This Page

User notes powered by Disqus
loading table of contents...