uncaught exception in floating ip creation when pool is not found with neutron backend

Bug #1352141 reported by Christopher Yeoh
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Christopher Yeoh

Bug Description

2014-07-31 07:14:07.574 ERROR nova.api.openstack [req-98b42d5d-575f-4209-b711-4cb2ae8ef14e FloatingIPsNegativeTestXML-1138647745 FloatingIPsNegativeTestXML-1764448859] Caught error: Floating ip pool not found.
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack Traceback (most recent call last):
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/api/openstack/__init__.py", line 125, in __call__
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack return req.get_response(self.application)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack application, catch_exc_info=False)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/opt/stack/new/python-keystoneclient/keystoneclient/middleware/auth_token.py", line 663, in __call__
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack return self.app(env, start_response)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack response = self.app(environ, start_response)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 917, in __call__
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack content_type, body, accept)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 983, in _process_stack
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/api/openstack/wsgi.py", line 1070, in dispatch
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack return method(req=request, **action_args)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/api/openstack/compute/contrib/floating_ips.py", line 158, in create
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack address = self.network_api.allocate_floating_ip(context, pool)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/network/neutronv2/api.py", line 927, in allocate_floating_ip
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/network/neutronv2/api.py", line 927, in allocate_floating_ip
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack pool_id = self._get_floating_ip_pool_id_by_name_or_id(client, pool)
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack File "/opt/stack/new/nova/nova/network/neutronv2/api.py", line 917, in _get_floating_ip_pool_id_by_name_or_id
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack raise exception.FloatingIpPoolNotFound()
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack FloatingIpPoolNotFound: Floating ip pool not found.
2014-07-31 07:14:07.574 28614 TRACE nova.api.openstack

http://logs.openstack.org/72/109872/1/check/check-tempest-dsvm-neutron-full/7e11304/logs/screen-n-api.txt.gz?

Tags: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/111648

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/111648
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c34840e50d0bf60b4e60bbbcbc178aef83e0e7ad
Submitter: Jenkins
Branch: master

commit c34840e50d0bf60b4e60bbbcbc178aef83e0e7ad
Author: Chris Yeoh <email address hidden>
Date: Mon Aug 4 15:21:26 2014 +0930

    Handle FloatingIpPoolNotFound exception in floating ip creation

    If an invalid pool is specified when creating a floating ip
    with neutron as the backend a FloatingIpPoolNotFound exception
    can be raised. This change handles the exception at the API level.

    Change-Id: Iac46d86a11f2c1da0ed7e7861cdb87fd4d4b4c6c
    Closes-Bug: 1352141

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

It looks like this was a Nova issue after all.

no longer affects: tempest
no longer affects: neutron
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.