← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1685822] [NEW] AttributeError in Edit Extra Spec form.

 

Public bug reported:

Env: devstack master branch

Steps to reproduce:

1. Go to admin/volume Volume Types panel
2. Volume Types -> Click View Extra Specs -> Click Edit
3. Remove the 'Value' value (which is a required field). On form submit

Error info:
Internal Server Error: /admin/volume_types/b780ccbf-b45d-4b80-ac6d-d5e84eb993cc/extras/volume_backend_name/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 217, in post
    return self.form_invalid(form)
  File "/opt/stack/horizon/openstack_dashboard/dashboards/admin/volume_types/extras/views.py", line 125, in form_invalid
    context = self._populate_context(context)
AttributeError: 'EditView' object has no attribute '_populate_context'
[24/Apr/2017 15:26:58] "POST /admin/volume_types/b780ccbf-b45d-4b80-ac6d-d5e84eb993cc/extras/volume_backend_name/edit/ HTTP/1.1" 500 142967

** Affects: horizon
     Importance: Undecided
     Assignee: wei.ying (wei.yy)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => wei.ying (wei.yy)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1685822

Title:
  AttributeError in Edit Extra Spec form.

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Env: devstack master branch

  Steps to reproduce:

  1. Go to admin/volume Volume Types panel
  2. Volume Types -> Click View Extra Specs -> Click Edit
  3. Remove the 'Value' value (which is a required field). On form submit

  Error info:
  Internal Server Error: /admin/volume_types/b780ccbf-b45d-4b80-ac6d-d5e84eb993cc/extras/volume_backend_name/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 217, in post
      return self.form_invalid(form)
    File "/opt/stack/horizon/openstack_dashboard/dashboards/admin/volume_types/extras/views.py", line 125, in form_invalid
      context = self._populate_context(context)
  AttributeError: 'EditView' object has no attribute '_populate_context'
  [24/Apr/2017 15:26:58] "POST /admin/volume_types/b780ccbf-b45d-4b80-ac6d-d5e84eb993cc/extras/volume_backend_name/edit/ HTTP/1.1" 500 142967

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1685822/+subscriptions