← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1549481] [NEW] Nova fails listing floating ips when using provider networks

 

Public bug reported:

When using provider networks in neutron, not using floating ips, nova is not able to list them.
Nova still has extension os-floating-ip enabled on that case, so API calls about floating ips should work.
But when executing a floating ip list with the client, we are receiving following error:

2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack Traceback (most recent call last):
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 125, in __call__
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return req.get_response(self.application)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     application, catch_exc_info=False)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return resp(environ, start_response)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return self._call_app(env, start_response)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return self._app(env, _fake_start_response)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return resp(environ, start_response)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return resp(environ, start_response)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     response = self.app(environ, start_response)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return resp(environ, start_response)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 756, in __call__
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     content_type, body, accept)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 821, in _process_stack
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 911, in dispatch
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return method(req=request, **action_args)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/floating_ips.py", line 108, in index
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     floating_ips = self.network_api.get_floating_ips_by_project(context)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1252, in get_floating_ips_by_project
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     fips = client.list_floatingips(tenant_id=project_id)['floatingips']
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 628, in list_floatingips
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     **_params)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 304, in list
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 317, in _pagination
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     res = self.get(path, params=params)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 290, in get
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     headers=headers, params=params)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 267, in retry_request
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     headers=headers, params=params)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 208, in do_request
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     self._handle_fault_response(status_code, replybody)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, in _handle_fault_response
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     exception_handler_v20(status_code, des_error_body)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 80, in exception_handler_v20
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     message=message)
2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack NeutronClientException: 404 Not Found

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  Nova fails listing floating ips when using provider networks

Status in OpenStack Compute (nova):
  New

Bug description:
  When using provider networks in neutron, not using floating ips, nova is not able to list them.
  Nova still has extension os-floating-ip enabled on that case, so API calls about floating ips should work.
  But when executing a floating ip list with the client, we are receiving following error:

  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack Traceback (most recent call last):
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 125, in __call__
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return req.get_response(self.application)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     application, catch_exc_info=False)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return resp(environ, start_response)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return self._call_app(env, start_response)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return self._app(env, _fake_start_response)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return resp(environ, start_response)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return resp(environ, start_response)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     response = self.app(environ, start_response)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return resp(environ, start_response)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 756, in __call__
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     content_type, body, accept)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 821, in _process_stack
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 911, in dispatch
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     return method(req=request, **action_args)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/floating_ips.py", line 108, in index
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     floating_ips = self.network_api.get_floating_ips_by_project(context)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1252, in get_floating_ips_by_project
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     fips = client.list_floatingips(tenant_id=project_id)['floatingips']
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 628, in list_floatingips
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     **_params)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 304, in list
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 317, in _pagination
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     res = self.get(path, params=params)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 290, in get
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     headers=headers, params=params)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 267, in retry_request
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     headers=headers, params=params)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 208, in do_request
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     self._handle_fault_response(status_code, replybody)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, in _handle_fault_response
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     exception_handler_v20(status_code, des_error_body)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 80, in exception_handler_v20
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack     message=message)
  2016-02-24 20:58:01.624 5857 TRACE nova.api.openstack NeutronClientException: 404 Not Found

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


Follow ups