Empty Daily Report Page

Bug #1324218 reported by David Bajot
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Haifeng.Yan
Icehouse
Fix Released
Undecided
Unassigned
Juno
Fix Released
Medium
Haifeng.Yan

Bug Description

Is the Daily Report tab implemented yet?
OpenStack Icehouse on CentOS 6.5 (2.6.32-431.11.2.el6.x86_64 #1 SMP)

I can see and select both resource usage tabs, however the Daily Report page is empty (for over 2 weeks)
I see no errors in apache, keystone or ceilometer logs on the cloud controller node.
On the compute nodes, I see many of these:
2014-05-27 09:17:21.625 18382 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecessor: (<ceilometer.sample.Sample object at 0x24ce810>,)

Here are package versions of relevant RPMs on the controller node:
=====================
Name : openstack-ceilometer-collector Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 06:07:35 PM PDT Build Host: buildvm-16.phx2.fedoraproject.org

Name : openstack-ceilometer-api Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 06:07:35 PM PDT Build Host: buildvm-16.phx2.fedoraproject.org

Name : python-ceilometerclient Relocations: (not relocatable)
Version : 1.0.8 Vendor: Fedora Project
Release : 1.el6 Build Date: Mon 16 Dec 2013 11:20:29 AM PST
Install Date: Mon 05 May 2014 12:23:26 PM PDT Build Host: buildvm-25.phx2.fedoraproject.org
Name : openstack-ceilometer-notification Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 06:07:26 PM PDT Build Host: buildvm-16.phx2.fedoraproject.org

Name : openstack-ceilometer-central Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 06:07:35 PM PDT Build Host: buildvm-16.phx2.fedoraproject.org

Name : openstack-ceilometer-common Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 06:07:26 PM PDT Build Host: buildvm-16.phx2.fedoraproject.org

Name : openstack-ceilometer-alarm Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 06:07:35 PM PDT Build Host: buildvm-16.phx2.fedoraproject.org

Name : python-ceilometer Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 06:07:26 PM PDT Build Host: buildvm-16.phx2.fedoraproject.org

Name : mongodb Relocations: (not relocatable)
Version : 2.4.6 Vendor: Fedora Project
Release : 1.el6 Build Date: Thu 19 Sep 2013 12:24:03 PM PDT
Install Date: Mon 05 May 2014 05:45:00 PM PDT Build Host: buildvm-09.phx2.fedoraproject.org
=====================

Relevant RPMs on the compute nodes:
=====================
Name : python-ceilometer Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 09:47:30 AM PDT Build Host: buildvm-16.phx2.fedoraproject.org

Name : python-ceilometerclient Relocations: (not relocatable)
Version : 1.0.8 Vendor: Fedora Project
Release : 1.el6 Build Date: Mon 16 Dec 2013 11:20:29 AM PST
Install Date: Mon 12 May 2014 09:47:28 AM PDT Build Host: buildvm-25.phx2.fedoraproject.org

Name : openstack-ceilometer-common Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 09:47:31 AM PDT Build Host: buildvm-16.phx2.fedoraproject.org

Name : openstack-ceilometer-compute Relocations: (not relocatable)
Version : 2014.1 Vendor: Fedora Project
Release : 2.el6 Build Date: Wed 07 May 2014 11:33:07 AM PDT
Install Date: Mon 12 May 2014 09:47:31 AM PDT Build Host: buildvm-16.phx2.fedoraproject.org
=====================

"ceilometer meter-list" gives me what I would expect (~1700 lines)

Revision history for this message
gordon chung (chungg) wrote :

just to confirm, you see the expected meter/samples in Ceilometer db and when using the api, the expected samples are returned? am i correct to assume this bug is meant for Horizon?

Changed in ceilometer:
status: New → Incomplete
Revision history for this message
Eoghan Glynn (eglynn) wrote :

Bumping to Horizon.

no longer affects: ceilometer
Revision history for this message
David Bajot (dbajot) wrote :

I have no clue how to interact with the Ceilometer db. The api appears to return what is expected.

I have no idea what the daily report tab page is supposed to look like (no screen shots anywhere in the OpenStack docs or online), so I am not sure if it is supposed to be totally blank (the way it is for me) or whether it should display dancing purple elephants. Seriously, I have no idea what is missing there -- no baseline to go on.

Revision history for this message
Kieren Hamps (kieren-hamps-deactivatedaccount) wrote :

There appears to be a line of code missing from the daily report template.

In "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin/metering/templates/metering/daily.html" the beginning of the file should have the following code:
---
{% load i18n %}
{% load url from future %}
<div id="ceilometer-report">
---

But line two is missing which (I am guessing) is stopping the template rendering as it cannot resolve horizon url variables?!!?

When you add the missing line the daily report page works.

Unfortunately I am new to OpenStack and I am not yet able to make changes to code so if someone would like to change the code to reflect this that would be great.

Changed in horizon:
status: New → Confirmed
Lawrance (jing)
Changed in horizon:
assignee: nobody → Lawrance (jing)
Changed in horizon:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Rabi Mishra (rabi) wrote :

I did try this change, but I am still getting 'not data received' blank page.

Revision history for this message
Sina Sadeghi (sina-sa) wrote :

Hi,

I can confirm the fix proposed by Kieran Hamps in post #4 fixed this issue.

Revision history for this message
Haifeng.Yan (yanheven) wrote :

hei,
I haved tried add a line"{% load url from future %}"to "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin/metering/templates/metering/daily.html",
it really works.

Haifeng.Yan (yanheven)
Changed in horizon:
assignee: Lawrance (jing) → yanheven@gmail.com (yanheven)
Haifeng.Yan (yanheven)
Changed in horizon:
status: Triaged → Confirmed
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/148214

Revision history for this message
Matthias Runge (mrunge) wrote :

Tell me the version of your django package, please

Revision history for this message
Haifeng.Yan (yanheven) wrote :

my environment is django 1.4,
it seems that if the version of django is lower than 1.5,we need to add {% load url from future %} to the template file.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/148296

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/juno)

Change abandoned by yanheven (<email address hidden>) on branch: stable/juno
Review: https://review.openstack.org/148296

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/juno)

Reviewed: https://review.openstack.org/148296
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=0723e709cf880e053d7e87d52fa55152a6aebf0c
Submitter: Jenkins
Branch: stable/juno

commit 0723e709cf880e053d7e87d52fa55152a6aebf0c
Author: yanheven <email address hidden>
Date: Mon Jan 19 23:30:01 2015 +0800

    Fix metering daily display

    For Icehouse and Juno ,add " {% load url from future %}" to
    openstack_dashboard/dashboards/admin/metering/templates/metering/daily.html,
    so template rendering can resolve horizon url variables

    Since this page in Kilo has been refactored,it does not have this problem.

    Closes-Bug: #1324218
    Change-Id: Ic52b1130fbe744caa1c1082037f139529513410a

tags: added: in-stable-juno
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/151287

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/icehouse)

Change abandoned by Matthias Runge (<email address hidden>) on branch: stable/icehouse
Review: https://review.openstack.org/148214

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by yanheven (<email address hidden>) on branch: stable/icehouse
Review: https://review.openstack.org/151287
Reason: since this page in the Juno version has changed,so we can not cherry-pick from Juno.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by yanheven (<email address hidden>) on branch: stable/icehouse
Review: https://review.openstack.org/148214

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/icehouse)

Reviewed: https://review.openstack.org/151287
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=4f12ca8421ab652e17543412ae68bfa501379190
Submitter: Jenkins
Branch: stable/icehouse

commit 4f12ca8421ab652e17543412ae68bfa501379190
Author: yanheven <email address hidden>
Date: Mon Jan 19 23:30:01 2015 +0800

    Fix metering daily display

    For Icehouse and Juno ,add " {% load url from future %}" to
    openstack_dashboard/dashboards/admin/metering/templates/metering/daily.html,
    so template rendering can resolve horizon url variables

    Since this page in Kilo has been refactored,it does not have this problem.

    Closes-Bug: #1324218
    Change-Id: Ic52b1130fbe744caa1c1082037f139529513410a
    (cherry picked from commit 0723e709cf880e053d7e87d52fa55152a6aebf0c)

tags: added: in-stable-icehouse
Haifeng.Yan (yanheven)
Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → kilo-3
Revision history for this message
Thierry Carrez (ttx) wrote :

@yanheven: if the fix for this has been committed in master, could you add a reference to the fix ?

Revision history for this message
Haifeng.Yan (yanheven) wrote :

this bug affect just Icehouse & Juno version, not Kilo, and patches have been merged in both Icehouse and Juno. so I think we should change milestone "OpenStack Dashboard (Horizon) kilo-3 "k3"" to "Icehouse".

Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.