Comment 7 for bug 1312222

Revision history for this message
John Pierce (john-pierce) wrote :

I had this exact same problem on my CentOS 6.5 OpenStack controller running latest stable yum version of horizon. So I applied this fix locally (removing tick marks around the url) as the fixed code reflects now, but alas I still got the same problem (or nearly the same problem) when I click on the pseudo-folder. I'd get this in the Apache error log:

NoReverseMatch: u"'horizon" is not a registered namespace

After a big stack trace. When I turned on template debugging I found this index.html mentioned as the source of the problem:

/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/containers/templates/containers/index.html

I then saw on line 16 the same single tick marks around the url 'horizon:project:containers:index' and then again on line 21 the same tick marks around that. So, on a pure hunch (cuz I'm not a DJango nor Python programmer), I removed the tick marks from this file on both these lines and, voila, all is well! I can navigate to pseudo-folders now. Very bizarre!

Am I finding a specific bug or is my installation messed up?

My line 16 of this index.html looks like this now:

<a href="{% url horizon:project:containers:index %}{{ container_name }}/">{{ container_name }}</a> : /

and my line 21 now looks like this:

<a href="{% url horizon:project:containers:index %}{{ container_name }}/{{ folder.1 }}">{{ folder.0 }}</a> /

I dunno why this works and why it was broken with tick marks, but just letting anyone who cares know. I'm not an OpenStack tester or contributor right now, so go gentle on me if I'm violating the process.