← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1278796] [NEW] Horizon Ceilometer hard-coded availability zone

 

Public bug reported:

I spent the last couple of hours trying to figure out why nothing was
showing up under the 'Compute' menu in the 'Resource Usage' panel in
Horizon. I am using a custom availability zone name for my Nova compute
nodes. I am using 'openstack-dashboard' version 2013.2.1-1 on a CentOS
6.5 server. If you look in:

/usr/share/openstack-
dashboard/openstack_dashboard/dashboards/admin/metering/tabs.py

at around line 40, you will see a 'query' object that looks for
instances by availability zone:

query = [{"field": "metadata.OS-EXT-AZ:availability_zone",
                  "op": "eq",
                  "value": "nova"}]

The ceilometer panel in Horizon should account for the fact that users
may have custom (and possibly multiple) availability zones. You could
add an additional drop down menu in the panel to select from a list of
the current availability zones in the database. Replace the hard-coded
value of 'nova' with a variable that is populated from a drop down menu
in Horizon.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1278796

Title:
  Horizon Ceilometer hard-coded availability zone

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  I spent the last couple of hours trying to figure out why nothing was
  showing up under the 'Compute' menu in the 'Resource Usage' panel in
  Horizon. I am using a custom availability zone name for my Nova
  compute nodes. I am using 'openstack-dashboard' version 2013.2.1-1 on
  a CentOS 6.5 server. If you look in:

  /usr/share/openstack-
  dashboard/openstack_dashboard/dashboards/admin/metering/tabs.py

  at around line 40, you will see a 'query' object that looks for
  instances by availability zone:

  query = [{"field": "metadata.OS-EXT-AZ:availability_zone",
                    "op": "eq",
                    "value": "nova"}]

  The ceilometer panel in Horizon should account for the fact that users
  may have custom (and possibly multiple) availability zones. You could
  add an additional drop down menu in the panel to select from a list of
  the current availability zones in the database. Replace the hard-coded
  value of 'nova' with a variable that is populated from a drop down
  menu in Horizon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1278796/+subscriptions


Follow ups

References