Index.html is not correctly created when using startpanel command

Bug #1325099 reported by Christian Martinez
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Unassigned
horizon (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Bug reason: the index.html generated through the startpanel command is not correct

Steps to reproduce:

0) pull latest horizon code
1) run ./stack
2) run ./run_tests.sh -m startpanel alarms --dashboard openstack_dashboard.dashboards.admin --target=auto command inside horizon folder in order to create/add a new panel called "alarms" on the dashboard admin section
3) change the dashboard.py file and add the new panel to the list.
4) open horizon dashboard within a browser and navigate to admin/alarms panel

Expected result:
* a blank panel with the name "Alarms"

Actual result
TemplateDoesNotExist at /admin/alarms/
admin/base.html

Request Method: GET
Request URL: http://localhost/admin/alarms/
Django Version: 1.6.5
Exception Type: TemplateDoesNotExist
Exception Value:

admin/base.html

Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/loader.py in find_template, line 131
Python Executable: /usr/bin/python
Python Version: 2.7.3

Horizon screen logs: http://paste.openstack.org/show/82240/

Revision history for this message
Christian Martinez (christian-martinez) wrote :

In my case, I solve it by changing (at index.html) this line

{% extends 'admin/base.html' %}

for this line

{% extends 'base.html' %}

I look over the startpanel.py file but I couldn´t find what could be the root cause.

Revision history for this message
James Page (james-page) wrote :

This does not appear to be a packaging bug; pushing upstream.

Changed in horizon (Ubuntu):
status: New → Invalid
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Looks like a simple change to the appropriate html template under horizon/conf

Changed in horizon:
importance: Undecided → Low
tags: added: low-hanging-fruit
Changed in horizon:
assignee: nobody → Rob Cresswell (robcresswell)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/114544

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/114544
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=5a1047d7568266abaf483af8f501df57f394d132
Submitter: Jenkins
Branch: master

commit 5a1047d7568266abaf483af8f501df57f394d132
Author: Rob Cresswell <email address hidden>
Date: Fri Aug 15 07:03:05 2014 -0700

    Index.html fix for startpanel command

    Slight fix to horizon/conf index.html template. This is to fix the
    "TemplateDoesNotExist" error arising from the incorrect template.

    Change-Id: I60787d3986e8412630bcc506cb33ee5c742fbaad
    Closes-Bug: 1325099

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → juno-rc1
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-rc1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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