Ask Your Question
0

Horizon TemplateDoesNotExist usage.html [closed]

asked 2016-09-08 13:27:56 -0500

shorton gravatar image

I have Mitaka running on Ubuntu 16.04 with a few optional components added. I recently updated packages from launchpad, including horizon, and now I am getting a TemplateDoesNotExist exception on usage.html when I click on Project-Compute-Overview in Horizon. Is anyone else getting this? I can see several usage.html files in the Horizon tree, so not sure what is missing. thanks!

 Internal Server Error: /horizon/project/
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 164, in get_response
     response = response.render()
   File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 158, in render
     self.content = self.rendered_content
   File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 133,in rendered_content
     template = self._resolve_template(self.template_name)
   File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 88,in _resolve_template
     new_template = self.resolve_template(template)
   File "/usr/lib/python2.7/dist-packages/django/template/response.py", line 80, in resolve_template
     return loader.get_template(template, using=self.using)
   File "/usr/lib/python2.7/dist-packages/django/template/loader.py", line 46, in get_template
     raise TemplateDoesNotExist(template_name)
 TemplateDoesNotExist: usage.html
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by shorton
close date 2016-09-28 10:07:27.957917

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-09-22 17:33:42 -0500

shorton gravatar image

updated 2016-09-28 10:04:46 -0500

I have the following files. Can anyone point me at what is missing?

/usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin/overview/templates/overviewusage.html

/usr/share/openstack-dashboard/openstack_dashboard/dashboards/identity/projects/templates/projects/usage.html

/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/overview/templates/overview/usage.html

UPDATE 092816: The resolution to this problem is here: https://review.openstack.org/gitweb?p=openstack/manila-ui.git;a=commitdiff;h=ffe2f85b308a5b07645fd2c61d173e5ed3c1d075 (https://review.openstack.org/gitweb?p...)

I manually patched in the change to prevent Manila-ui from adding its own template, and it resolved this problem on Ubuntu 16.04 with Mitaka. I only changed the __init__.py file with changes at the end of the file; no other changes from the patch were necessary.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-08 13:27:56 -0500

Seen: 271 times

Last updated: Sep 28 '16