Bug 1300918

Summary: /dashboard/admin/metering page in horizon doesn't work
Product: Red Hat OpenStack Reporter: Graeme Gillies <ggillies>
Component: python-django-horizonAssignee: Matthias Runge <mrunge>
Status: CLOSED CANTFIX QA Contact: Ido Ovadia <iovadia>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: aortega, athomas, mrunge, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 14:31:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Graeme Gillies 2016-01-22 04:55:43 UTC
When using horizon on a moderately loaded RHOS 7.0.3 installation, if you browse to the url

http://openstack.example.com/dashboard/admin/metering/

the page sits there taking forever to load, eventually timing out with a 504 error.

This 504 error is coming from haproxy which has a hard limit set to time out pages that take longer than 1 minute to load.

The underlying issue looks like this page and the way it interacts with ceilometer is simply sub par.

Comment 2 Matthias Runge 2016-01-22 07:40:40 UTC
Unfortunately, this is a well known issue; see https://julien.danjou.info/blog/2014/openstack-ceilometer-the-gnocchi-experiment

The only recommendation I can currently give is to disable the metering panel:

[root@euler enabled(keystone_admin)]# pwd
/usr/share/openstack-dashboard/openstack_dashboard/local/enabled

[root@euler enabled(keystone_admin)]# cat _99_disable_metering_panel.py
# The slug of the panel to be added to HORIZON_CONFIG. Required.
PANEL = 'metering'
# The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'admin'
# The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'admin'

REMOVE_PANEL = True


That's not a real fix; on the long term, horizon should stop using ceilometer and should switch to gnocchi.

Comment 4 Matthias Runge 2016-02-18 14:31:51 UTC
Unfortunately, there not really anything we can do to fix this. Ceilometer is the wrong tool for this kind of task. Upstream will remove metering via ceilometer in horizon.