Edit qos specs page has an exception

Bug #1679436 reported by wei.ying
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
wei.ying

Bug Description

Env: devstack master branch

If click edit qos spec,it will throws an exception.

Exception info:
Internal Server Error: /admin/volume_types/qos_specs/1df7fe9c-d2b8-4111-af04-f74a3813ca7d/key/a/edit/
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py", line 206, in get
    return self.render_to_response(self.get_context_data(form=form))
  File "/opt/stack/horizon/openstack_dashboard/dashboards/admin/volume_types/qos_specs/views.py", line 126, in get_context_data
    context['submit_url'] = reverse(self.submit_url, args=args)
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 571, in reverse
    (key, ':'.join(resolved_path)))
NoReverseMatch: u'volume_types' is not a registered namespace inside 'horizon:admin:volumes'

wei.ying (wei.yy)
Changed in horizon:
assignee: nobody → wei.ying (wei.yy)
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/452999

Changed in horizon:
status: New → In Progress
Akihiro Motoki (amotoki)
Changed in horizon:
importance: Undecided → High
milestone: none → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/452999
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=2ee3f462cab0a3fd7985c33620ff318ca19e8d74
Submitter: Jenkins
Branch: master

commit 2ee3f462cab0a3fd7985c33620ff318ca19e8d74
Author: wei.ying <email address hidden>
Date: Tue Apr 4 08:34:33 2017 +0800

    Fix edit qos spec form exception

    The Exception thrown because the given URL is not correct.
    This patch adding the correct URL to edit the QoS spec,
    Also add unit test to check template name and submit url.

    Change-Id: I48b4c4f53ec97e6cdb0a4d8fc91c4c680a13e193
    Closes-Bug: #1679436

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 12.0.0.0b1

This issue was fixed in the openstack/horizon 12.0.0.0b1 development milestone.

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.