API job fails with ExternalIpAddressExhausted

Bug #1531706 reported by Henry Gessau
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
Kevin Benton

Bug Description

neutron.tests.api.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON.test_create_floatingip_with_specified_ip_address[gate,id-332a8ae4-402e-4b98-bb6f-532e5a87b8e0,smoke]

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "neutron/tests/api/admin/test_floating_ips_admin_actions.py", line 146, in test_create_floatingip_with_specified_ip_address
        floating_ip_address=fip)
      File "neutron/tests/tempest/services/network/json/network_client.py", line 148, in _create
        resp, body = self.post(uri, post_data)
      File "/opt/stack/new/neutron/.tox/api-constraints/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 259, in post
        return self.request('POST', url, extra_headers, headers, body)
      File "/opt/stack/new/neutron/.tox/api-constraints/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 640, in request
        resp, resp_body)
      File "/opt/stack/new/neutron/.tox/api-constraints/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 698, in _error_checker
        raise exceptions.BadRequest(resp_body, resp=resp)
    tempest_lib.exceptions.BadRequest: Bad request
    Details: {u'message': u'Unable to find any IP address on external network 17aa99d7-f26a-4804-94ab-024f54fd2d9c.', u'detail': u'', u'type': u'ExternalIpAddressExhausted'}

Neutron server log:
-----------------------------

ERROR oslo_db.api [req-35ce4ea3-d12b-4277-b292-568304ff78f8 FloatingIPAdminTestJSON-1596642341 FloatingIPAdminTestJSON-1822796436] DB error.
25104 ERROR oslo_db.api Traceback (most recent call last):
25104 ERROR oslo_db.api File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 137, in wrapper
25104 ERROR oslo_db.api return f(*args, **kwargs)
25104 ERROR oslo_db.api File "/opt/stack/new/neutron/neutron/api/v2/base.py", line 516, in create
25104 ERROR oslo_db.api obj = do_create(body)
25104 ERROR oslo_db.api File "/opt/stack/new/neutron/neutron/api/v2/base.py", line 498, in do_create
25104 ERROR oslo_db.api request.context, reservation.reservation_id)
25104 ERROR oslo_db.api File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 204, in __exit__
25104 ERROR oslo_db.api six.reraise(self.type_, self.value, self.tb)
25104 ERROR oslo_db.api File "/opt/stack/new/neutron/neutron/api/v2/base.py", line 491, in do_create
25104 ERROR oslo_db.api return obj_creator(request.context, **kwargs)
25104 ERROR oslo_db.api File "/opt/stack/new/neutron/neutron/services/l3_router/l3_router_plugin.py", line 104, in create_floatingip
25104 ERROR oslo_db.api initial_status=n_const.FLOATINGIP_STATUS_DOWN)
25104 ERROR oslo_db.api File "/opt/stack/new/neutron/neutron/db/l3_dvr_db.py", line 763, in create_floatingip
25104 ERROR oslo_db.api context, floatingip, initial_status)
25104 ERROR oslo_db.api File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 1000, in _create_floatingip
25104 ERROR oslo_db.api raise n_exc.ExternalIpAddressExhausted(net_id=f_net_id)
25104 ERROR oslo_db.api ExternalIpAddressExhausted: Unable to find any IP address on external network 17aa99d7-f26a-4804-94ab-024f54fd2d9c.

Tags: gate-failure
Revision history for this message
Henry Gessau (gessau) wrote :
tags: added: gate-failure
Changed in neutron:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
assignee: nobody → Kevin Benton (kevinbenton)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Kevin Benton (<email address hidden>) on branch: master
Review: https://review.openstack.org/264573
Reason: fix is here: Id0b2c28970ab61e45755818e3e0798daa4453ce7

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/264599
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=8e5424865386dfce5c01864a63474711caad760b
Submitter: Jenkins
Branch: master

commit 8e5424865386dfce5c01864a63474711caad760b
Author: Kevin Benton <email address hidden>
Date: Wed Jan 6 12:48:28 2016 -0800

    Allow get_unused_ip method to skip v6 and fix iter

    Skip IPv6 subnets when looking for an unused IP in the
    floating IP tests since floating IPs cannot be requested
    with v6 addresses.

    This also fixes the iterator for the non-allocation pool
    case.

    Closes-Bug: #1531706
    Change-Id: Id0b2c28970ab61e45755818e3e0798daa4453ce7

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron 8.0.0.0b2

This issue was fixed in the openstack/neutron 8.0.0.0b2 development milestone.

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.