← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1531706] Re: API job fails with ExternalIpAddressExhausted

 

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 <blak111@xxxxxxxxx>
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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1531706

Title:
  API job fails with ExternalIpAddressExhausted

Status in neutron:
  Fix Released

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.

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


References