← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1231704] Re: Exception when editing a Load balancer VIP if session_persistence attr is not specified

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
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/1231704

Title:
  Exception when editing a Load balancer VIP if session_persistence attr
  is not specified

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  When editing a VIP that has no session_persistence configured,
  following exception occurred:

  Traceback:
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
    115.                         response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    38.         return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    54.             return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    38.         return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
    86.                 return view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
    68.             return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
    86.         return handler(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py" in get
    154.         form = self.get_form(form_class)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/forms/views.py" in get_form
    87.         return form_class(self.request, **self.get_form_kwargs())
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py" in get_form_kwargs
    41.         kwargs = {'initial': self.get_initial()}
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/loadbalancers/views.py" in get_initial
    213.         stype = vip['session_persistence']
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/base.py" in __getitem__
    126.             raise KeyError(e)

  Exception Type: KeyError at /project/loadbalancers/updatevip/a54f9221-7386-424b-9790-23a3cf1b4b03/
  Exception Value: AttributeError('Unknown attribute "session_persistence" on APIResource object of type "<class \'openstack_dashboard.api.lbaas.Vip\'>"',)

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