Billing plugin for Horizon

Now nova-billing has a Django-based web interface – horizon-billing (

horizon-billing is packaged to a homonymous RPM (path for RHEL:, for CentOS:

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

  • 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”.

9 thoughts on “Billing plugin for Horizon

  1. Boris Deschênes

    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/
    I added ‘billing’ to the dashbords key in HORIZON_CONFIG in /etc/openstack-dashboard/local/

    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?


  2. Leonillo

    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 and 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 Error was: No module named openstackx.api.exceptions
    Request Method: GET
    Request URL:
    Django Version: 1.3
    Exception Type: TemplateSyntaxError
    Exception Value:
    Caught ViewDoesNotExist while rendering: Could not import Error was: No module named openstackx.api.exceptions
    Exception Location: /usr/lib/pymodules/python2.7/django/core/ in _get_callback, line 167
    Python Executable: /usr/bin/python
    Python Version: 2.7.2
    Python Path:
    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.

    1. aababilov Post author

      Ciao, Leonillo!

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

      Buon pro ti faccia!

  3. guisantogui

    Hello aababilov, i want to congratulate you by the nice manual, but i don’t got this! :(

    I’ve executed the setup using “sudo python install”, then after, I’ve copy and pasted the code in /etc/openstack-dashboard/, like this:


    HORIZON_CONFIG = {‘dashboards’:(‘nova’, ‘syspanel’, ‘settings’, ‘billing’)}
    INSTALLED_APPS = (‘horizon_billing’)


    I’ve added the endPoint too, but i’m getting this error >> << this is a html page!
    Do you know a way to fix this?

    1. aababilov


      If your dashboard looks for
      django_openstack/syspanel/instances/usage.html, it must be too old.
      The new Openstack Dashboard stores its templates in horizon/
      directory, not django_openstack.

      Could you update your dashboard to a new one? You can use our
      – they are new enough. And don’t forget to restart your apache after

      Don’t be confused: it is an essex dashboard, but it does work with
      diablo nova and glance!

      1. guisantogui

        I’m trying to install this on ubuntu, then i parse both packages usign alien. But when i did executed “openstack-dashboard … .deb” i got this stack:

        (Reading database … 98664 files and directories currently installed.)
        Unpacking openstack-dashboard (from openstack-dashboard_2012.1-1_all.deb) …
        dpkg: error processing openstack-dashboard_2012.1-1_all.deb (–install):
        error creating hard link `./etc/openstack-dashboard/local/__init__.pyo’: No such file or directory
        dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
        Errors were encountered while processing:

        Before trying install i did purge on package “openstack-dashboard”, it’s correct?

        Thanks aababilov

Leave a Reply

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

You are commenting using your 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 )

Google+ photo

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

Connecting to %s