Billing plugin for Horizon

Now nova-billing has a Django-based web interface – horizon-billing (https://github.com/griddynamics/horizon-billing).

horizon-billing is packaged to a homonymous RPM (path for RHEL: http://yum.griddynamics.net/yum/diablo/, for CentOS: http://yum.griddynamics.net/yum/diablo-centos/).

To enable it in dashboard, install the horizon_billing package and turn it
on in /etc/openstack-dashboard/local/local_settings.py:

  • add ‘horizon_billing’ to INSTALLED_APPS tuple;
  • add ‘billing’ to ‘dashboards’ key in HORIZON_CONFIG.

After installation, a new “Billing” panel is added after “Project” and “Admin”.

Advertisement
This entry was posted in Uncategorized. Bookmark the permalink.

5 Responses to Billing plugin for Horizon

  1. Boris DeschĂȘnes says:

    Thanks for this, your nova-billing plugin looks great, I’ve got a problem though;

    I added ‘horizon_billing’ to the INSTALLED_APPS tuple in (nova_path)/dashboard/settings.py
    I added ‘billing’ to the dashbords key in HORIZON_CONFIG in /etc/openstack-dashboard/local/local_settings.py

    With this, I see the billing tab in horizon but when I click on it it displays the page with no billing information and an error on top “Error: Unable to get usage info: Invalid service catalog service: nova_billing” and I have the same error in httpd.log. Do I have to set a catalog entry with keystone-manage?

    thanks

  2. Leonillo says:

    I’m testing OpenStack starting from the DevStack installation and your plugin seems exactly what I was looking for to complete horizon, but I have some problem with the installation.
    I have ubuntu 11.10 and to install the RPM I used “alien” to convert it in a DEB package.
    The spec script seems very simple and the converted package seems installed correctly.
    I modified both the local_settings.py and settings.py and I also added the endPoint to keystone.
    Unfortunately the dashboard doesn’t load anymore and I have the following error:
    ________________
    Caught ViewDoesNotExist while rendering: Could not import horizon_billing.total.views. Error was: No module named openstackx.api.exceptions
    Request Method: GET
    Request URL: http://10.0.2.101/
    Django Version: 1.3
    Exception Type: TemplateSyntaxError
    Exception Value:
    Caught ViewDoesNotExist while rendering: Could not import horizon_billing.total.views. Error was: No module named openstackx.api.exceptions
    Exception Location: /usr/lib/pymodules/python2.7/django/core/urlresolvers.py in _get_callback, line 167
    Python Executable: /usr/bin/python
    Python Version: 2.7.2
    Python Path:
    ['/opt/stack/horizon/openstack-dashboard/dashboard/wsgi/../..',
    '/opt/stack/python-keystoneclient',
    '/usr/local/lib/python2.7/dist-packages/prettytable-0.5-py2.7.egg',
    '/opt/stack/python-novaclient',
    '/opt/stack/keystone',
    '/opt/stack/glance',
    '/opt/stack/nova',
    '/opt/stack/horizon/horizon',
    '/usr/local/lib/python2.7/dist-packages/horizon_billing-0.0.2-py2.7.egg',
    '/usr/lib/python2.7',
    '/usr/lib/python2.7/plat-linux2',
    '/usr/lib/python2.7/lib-tk',
    '/usr/lib/python2.7/lib-old',
    '/usr/lib/python2.7/lib-dynload',
    '/usr/local/lib/python2.7/dist-packages',
    '/usr/lib/python2.7/dist-packages',
    '/usr/lib/python2.7/dist-packages/PIL',
    '/usr/lib/python2.7/dist-packages/gtk-2.0',
    '/usr/lib/pymodules/python2.7',
    '/opt/stack/horizon/openstack-dashboard/dashboard']
    Server time: gio, 23 Feb 2012 17:43:07 +0100
    ________________
    Can you give me any advice on how to do a correct installation or how to fix the problem?

    Thank you for your help.

    • aababilov says:

      Ciao, Leonillo!

      Sembra che devi installare `openstackx`! Questo e` un pacchetto piccolo. E poi fai nova-api riavviare.

      Buon pro ti faccia!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s