Error occures if try to get details of disassociated floating IP address

Bug #810364 reported by vi@tor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
John Tran

Bug Description

2011-07-14 11:52:58,035 routes.middleware: Matched GET /os-floating-ips/1
2011-07-14 11:52:58,036 routes.middleware: Route path: '/os-floating-ips/:(id)', defaults: {'action': u'show', 'controller': <nova.api.openstack.wsgi.Resource object at 0x238fe90>}
2011-07-14 11:52:58,036 routes.middleware: Match dict: {'action': u'show', 'controller': <nova.api.openstack.wsgi.Resource object at 0x238fe90>, 'id': u'1'}
2011-07-14 11:52:58,036 nova.api.openstack.wsgi: GET http://172.16.72.9:8774/v1.1/os-floating-ips/1?cache-busting=63a6c2e07244229d
2011-07-14 11:52:58,054 nova.api.openstack: Caught error: 'NoneType' object is unsubscriptable
(nova.api.openstack): TRACE: Traceback (most recent call last):
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py", line 60, in __call__
(nova.api.openstack): TRACE: return req.get_response(self.application)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/request.py", line 1053, in get_response
(nova.api.openstack): TRACE: application, catch_exc_info=False)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/request.py", line 1022, in call_application
(nova.api.openstack): TRACE: app_iter = application(self.environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/routes/middleware.py", line 131, in __call__
(nova.api.openstack): TRACE: response = self.app(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 147, in __call__
(nova.api.openstack): TRACE: resp = self.call_func(req, *args, **self.kwargs)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/webob/dec.py", line 208, in call_func
(nova.api.openstack): TRACE: return self.func(req, *args, **kwargs)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 374, in __call__
(nova.api.openstack): TRACE: action_result = self.dispatch(request, action, action_args)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 397, in dispatch
(nova.api.openstack): TRACE: return controller_method(req=request, **action_args)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/openstack/contrib/floating_ips.py", line 72, in show
(nova.api.openstack): TRACE: return _translate_floating_ip_view(floating_ip)
(nova.api.openstack): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/openstack/contrib/floating_ips.py", line 31, in _translate_floating_ip_view
(nova.api.openstack): TRACE: result['fixed_ip'] = floating_ip['fixed_ip']['address']
(nova.api.openstack): TRACE: TypeError: 'NoneType' object is unsubscriptable
(nova.api.openstack): TRACE:

Related branches

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
John Tran (jtran)
Changed in nova:
assignee: nobody → John Tran (jtran)
Thierry Carrez (ttx)
Changed in nova:
status: Confirmed → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-4
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-4 → 2011.3
status: Fix Committed → Fix Released
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.