ipdevinfo crash on missing availability stats
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Stein Magnus Jodal |
Bug Description
ipdevinfo crashes when I try to view an Alcatel switch. Dump is:
TemplateSyntaxError at /ipdevinfo/
Caught an exception while rendering: Reverse for 'nav.rrdviewer-
Original Traceback (most recent call last):
File "/var/lib/
result = node.render(
File "/var/lib/
args=args, kwargs=kwargs)
File "/var/lib/
return iri_to_uri(u'%s%s' % (prefix, get_resolver(
File "/var/lib/
raise NoReverseMatch(
NoReverseMatch: Reverse for 'nav.rrdviewer-
Request Method: GET
Request URL: https:/
Exception Type: TemplateSyntaxError
Exception Value:
Caught an exception while rendering: Reverse for 'nav.rrdviewer-
Original Traceback (most recent call last):
File "/var/lib/
result = node.render(
File "/var/lib/
args=args, kwargs=kwargs)
File "/var/lib/
return iri_to_uri(u'%s%s' % (prefix, get_resolver(
File "/var/lib/
raise NoReverseMatch(
NoReverseMatch: Reverse for 'nav.rrdviewer-
Exception Location: /var/lib/
Python Executable: /usr/bin/python
Python Version: 2.4.4
Python Path: ['/', '/usr/lib/
Server time: Fri, 14 Nov 2008 13:13:46 +0100
Template error
In template /usr/lib/
Caught an exception while rendering: Reverse for 'nav.rrdviewer-
Changed in nav: | |
assignee: | nobody → jodal |
importance: | Undecided → Medium |
milestone: | none → v3.5.0 |
Changed in nav: | |
status: | Fix Committed → Fix Released |
I have the same problem when trying to use ipdevinfo
Here goes my full output (with debug enabled):
Environment:
Request Method: GET nav.pmj. gov/ipdevinfo/ pmj-swi541. pmj.gov/ SVN-unknown contrib. sessions. middleware. SessionMiddlewa re', contrib. auth.middleware .Authentication Middleware' , middleware. common. CommonMiddlewar e')
Request URL: http://
Django Version: 1.0-final-
Python Version: 2.5.2
Installed Applications:
[]
Installed Middleware:
('django.
'django.
'django.
Template error: nav/lib/ templates/ ipdevinfo/ ipdev-details. html, error at line 150 rrd-by- ds-tf' with arguments '('', u'day')' and keyword arguments '{}' not found. up_since| timesince }}
In template /usr/local/
Caught an exception while rendering: Reverse for 'nav.rrdviewer-
140 : for {{ netbox.
141 : {% endifequal %}
142 : </td>
143 : </tr>
144 :
145 : {% with netbox. get_availabilit y as stats %}
146 : <tr>
147 : <th>Availabilit y</th>
148 : <td>
149 : {% with stats.availability as a %}
150 : <a href=" {% url rrdviewer- rrd-by- ds-tf a.data_ source. id,"day" %} ">
151 : {% if a.day %}
152 : {{ a.day|floatformat:2 }}%
153 : {% else %}
154 : (N/A)
155 : {% endif %}
156 : last day</a>,
157 : <a href="{% url rrdviewer- rrd-by- ds-tf a.data_ source. id,"week" %}">
158 : {% if a.week %}
159 : {{ a.week| floatformat: 2 }}%
160 : {% else %}
Traceback: python- support/ python2. 5/django/ core/handlers/ base.py" in get_response nav/lib/ python/ nav/web/ ipdevinfo/ views.py" in ipdev_details [search_ form_processor] )) nav/lib/ python/ nav/django/ shortcuts. py" in render_to_response to_string( template_ name, context, context_instance) python- support/ python2. 5/django/ template/ loader. py" in render_to_string context_ instance) python- support/ python2. 5/django/ template/ __init_ _.py" in render render( context) python- support/ python2. 5/django/ template/ __init_ _.py" in render self.render_ node(node, context)) python- support/ python2. 5/django/ template/ debug.py" in render_node context) python- support/ python2. 5/django/ template/ loader_ tags.py" in render parent. render( context) python- support/ python2. 5/django/ template/ __init_ _.py" in render render( context) python- support/ python2. 5/django/ template/ __init_ _.py" in render self.render_ node(node, context)) python- support/ python2. 5/django/ template/ debug.py" ...
File "/var/lib/
86. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/
298. processors=
File "/usr/local/
67. rendered = render_
File "/var/lib/
107. return t.render(
File "/var/lib/
176. return self.nodelist.
File "/var/lib/
768. bits.append(
File "/var/lib/
71. result = node.render(
File "/var/lib/
97. return compiled_
File "/var/lib/
176. return self.nodelist.
File "/var/lib/
768. bits.append(
File "/var/lib/