Serial Console has Error during Template Rendering

Bug #1426611 reported by Randy Bertram
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Randy Bertram

Bug Description

The Serial Console was introduced in https://review.openstack.org/#/c/144659/ .
An error condition in an instance causes an exception to be thrown when the instance for the given id cannot be found. The result is that the Serial Console tries to display the error, but instead gets a screen that says: "Error during template rendering". "'horizon is not a registered namespace." The error is on line 9 of serial_console.html, which reads:

<script src="{% url 'horizon:jsi18n' 'horizon' %}"></script>

The error occurs because this line is missing from the file:

{% load url from future %}

For a picture of the condition, see:
https://dl.dropboxusercontent.com/u/27291375/work/seral_console_error.PNG

(It is easy to see why this is happening. It's harder to understand why it EVER works.)

Randy Bertram (rbertram)
Changed in horizon:
assignee: nobody → Randy Bertram (rbertram)
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/160064

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/160064
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=2798a805e0ee86b319f4fda791cacd7ecfc2587c
Submitter: Jenkins
Branch: master

commit 2798a805e0ee86b319f4fda791cacd7ecfc2587c
Author: Randy Bertram <email address hidden>
Date: Fri Feb 27 21:01:59 2015 -0500

    Load "url" in Serial Console html

    Add the line to load the "url" directive in
    the Serial Console html template.

    Change-Id: I49e96d5e21e97fad33e71377448945ab5176878c
    Closes-bug: #1426611

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → kilo-3
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.