Exception when editing a Load balancer VIP if session_persistence attr is not specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Akihiro Motoki |
Bug Description
When editing a VIP that has no session_persistence configured, following exception occurred:
Traceback:
File "/usr/local/
115. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/
38. return view_func(request, *args, **kwargs)
File "/opt/stack/
54. return view_func(request, *args, **kwargs)
File "/opt/stack/
38. return view_func(request, *args, **kwargs)
File "/opt/stack/
86. return view_func(request, *args, **kwargs)
File "/usr/local/
68. return self.dispatch(
File "/usr/local/
86. return handler(request, *args, **kwargs)
File "/usr/local/
154. form = self.get_
File "/opt/stack/
87. return form_class(
File "/usr/local/
41. kwargs = {'initial': self.get_initial()}
File "/opt/stack/
213. stype = vip['session_
File "/opt/stack/
126. raise KeyError(e)
Exception Type: KeyError at /project/
Exception Value: AttributeError(
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | havana-rc1 → 2013.2 |
I am not sure this is a horizon bug or neutron bug.
In the current implementation, when session_persistence is not specified, neutron returns a VIP without 'session_ persistence' attribute. 'session_ persistence' is declared as visible in extensions/ loadbalancer. py.
My question is Neutron should returns a attribute even when the attribute is NULL or empty or Neutron MAY omit such attribute in the response. IMO, all visible attributes should exist in the response.