Ask Your Question
2

mitaka horizon preview stack throws python error.

asked 2016-07-13 15:45:06 -0600

jsm gravatar image

In the RDO install I've set up heat. From horizon I can create a stack no problems. But previewing gives:

Internal Server Error: /dashboard/project/stacks/preview
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
     response = response.render()
   File "/usr/lib/python2.7/site-packages/django/template/response.py", line 158, in render
     self.content = self.rendered_content
   File "/usr/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
     content = template.render(context, self._request)
   File "/usr/lib/python2.7/site-packages/django/template/backends/django.py", line 74, in render
     return self.template.render(context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 210, in render
     return self._render(context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
     return self.nodelist.render(context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 905, in render
     bit = self.render_node(node, context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 919, in render_node
     return node.render(context)
   File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 135, in render
     return compiled_parent._render(context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
     return self.nodelist.render(context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 905, in render
     bit = self.render_node(node, context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 919, in render_node
     return node.render(context)
   File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 65, in render
     result = block.nodelist.render(context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 905, in render
     bit = self.render_node(node, context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 919, in render_node
     return node.render(context)
   File "/usr/lib/python2.7/site-packages/django/template/loader_tags.py", line 65, in render
     result = block.nodelist.render(context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 905, in render
     bit = self.render_node(node, context)
   File "/usr/lib/python2.7/site-packages/django/template/base.py", line 919, in render_node
     return node.render(context)
   File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 507, in render
     six.reraise(*exc_info)
   File "/usr/lib/python2.7/site-packages/django/template/defaulttags.py", line 493, in render
     url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
   File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 571, in reverse
     (key, ':'.join(resolved_path)))
 NoReverseMatch: u'stack' is not a registered namespace inside 'horizon:project'

Anyone with similar issues? Or some hints?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2016-07-14 21:29:15 -0600

This error has been confirmed with current Centos 7 Mitaka resulting in error message "Danger: There was an error submitting the form. Please try again.". Change 'stack:index' to 'stacks:index' on line 57 of above mentioned _preview_details.html file, then stop and start httpd. Preview Stack then produces the requested preview.

edit flag offensive delete link more
1

answered 2016-07-14 20:08:28 -0600

jsm gravatar image

updated 2016-12-10 16:26:02 -0600

/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/stacks/templates/stacks/_preview_details.html

It said stack:index instead of stacks:index on line 57 in my installation. Will check upstream... Centos 7 mitakta..

edit flag offensive delete link more

Comments

1

reported https://bugs.launchpad.net/horizon/+bug/1603267

jsm gravatar imagejsm ( 2016-07-14 20:32:33 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-07-13 15:45:06 -0600

Seen: 262 times

Last updated: Dec 10 '16