Skip to content
Snippets Groups Projects

OpenStack Dashboard Accounting plugin

Horizon plugin that provides a tab to display accounting data for projects.

Installation

  1. Install the package on the server running Horizon:

    $ pip install git+ssh//git@git.garr.it/cloud/GUI/dashboard.git
  2. Edit file conf.env, setting prooper values for variables, e.g.:

    DB_HOST=90.147.165.86
    DB_NAME=cloudusage
    DB_USER=accounting
    DB_PASS=cloudbase!****
    HASHING_ALGORITHM=sha1
    KEYSTONE_USER_PASS=*****.
  3. Run:

    ./install.sh

Features

User CRUD

The plugin brovides CRUD operations on GARR users, using the same UI, as the ones for Keystone users.

The following variables need to be added to local_settings.py in order to enable the functionality:

# Database settings
DATABASES = {
       'default': {
           'ENGINE': 'django.db.backends.mysql',
           'NAME': 'db_name',
           'USER': 'db_user',
           'PASSWORD': 'db_pass',
           'HOST': 'db_host',
       }
}

# Hashing algorithm to be used for saving passwords
HASHING_ALGORITHM = 'default'

For the HASHING_ALGORITHM the following values can be used: pbkdf2_sha256, pbkdf2_sha1, sha1, md5.

Keystone User Creation

Cloud users can be automatically created in Keystone by using the Create Keystone User action or by customizing some of the fields, when using Create Custom Keystone User action.

KEYSTONE_USER_PASS='default_pass_value' needs to be appended to the local_settings.py file in order to have a predefined default password when new users are enabled in Keystone.