test_dhcpv6_64_subnets failed with "u'IpAddressAlreadyAllocated', u'message': u'IP address 2003::XXX already allocated in subnet"

Bug #1691248 reported by Ihar Hrachyshka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
New
High
Unassigned

Bug Description

http://logs.openstack.org/20/464020/5/check/gate-tempest-dsvm-neutron-linuxbridge-ubuntu-xenial/a4d35a8/logs/testr_results.html.gz

Traceback (most recent call last):
  File "tempest/api/network/test_dhcp_ipv6.py", line 230, in test_dhcpv6_64_subnets
    subnet_slaac = self.create_subnet(self.network, **kwargs)
  File "tempest/api/network/base.py", line 180, in create_subnet
    **kwargs)
  File "tempest/lib/services/network/subnets_client.py", line 27, in create_subnet
    return self.create_resource(uri, post_data)
  File "tempest/lib/services/network/base.py", line 60, in create_resource
    resp, body = self.post(req_uri, req_post_data)
  File "tempest/lib/common/rest_client.py", line 270, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "tempest/lib/common/rest_client.py", line 659, in request
    self._error_checker(resp, resp_body)
  File "tempest/lib/common/rest_client.py", line 780, in _error_checker
    raise exceptions.Conflict(resp_body, resp=resp)
tempest.lib.exceptions.Conflict: An object with that identifier already exists
Details: {u'detail': u'', u'type': u'IpAddressAlreadyAllocated', u'message': u'IP address 2003::f816:3eff:fe20:97dd already allocated in subnet 9fd8d6ef-eb85-468c-8453-6c532c61a433'}

The request that failed is req-e628a3d3-3c24-4ced-81b0-ec28993ef6f8.

In neutron-server log:

May 16 17:43:04.748624 ubuntu-xenial-osic-cloud1-s3700-8840984 neutron-server[16388]: DEBUG neutron.db.api [req-e628a3d3-3c24-4ced-81b0-ec28993ef6f8 tempest-NetworksTestDHCPv6-363802631 tempest-NetworksTestDHCPv6-363802631] Retry wrapper got retriable exception: UPDATE statement on table 'standardattributes' expected to update 1 row(s); 0 were matched. {{(pid=16472) wrapped /opt/stack/new/neutron/neutron/db/api.py:129}}
May 16 17:43:04.749082 ubuntu-xenial-osic-cloud1-s3700-8840984 neutron-server[16388]: DEBUG oslo_db.api [req-e628a3d3-3c24-4ced-81b0-ec28993ef6f8 tempest-NetworksTestDHCPv6-363802631 tempest-NetworksTestDHCPv6-363802631] Performing DB retry for function neutron.db.db_base_plugin_v2._create_subnet_postcommit {{(pid=16472) wrapper /usr/local/lib/python2.7/dist-packages/oslo_db/api.py:152}}

May 16 17:43:04.998299 ubuntu-xenial-osic-cloud1-s3700-8840984 neutron-server[16388]: DEBUG neutron.db.api [req-e628a3d3-3c24-4ced-81b0-ec28993ef6f8 tempest-NetworksTestDHCPv6-363802631 tempest-NetworksTestDHCPv6-363802631] Retry wrapper got retriable exception: Failed to create a duplicate IpamAllocation: for attribute(s) ['PRIMARY'] with value(s) 2003::f816:3eff:fe20:97dd-a561d8cf-6822-4fb7-8b33-499041cefac4 {{(pid=16472) wrapped /opt/stack/new/neutron/neutron/db/api.py:129}}
May 16 17:43:04.998410 ubuntu-xenial-osic-cloud1-s3700-8840984 neutron-server[16388]: DEBUG oslo_db.api [req-e628a3d3-3c24-4ced-81b0-ec28993ef6f8 tempest-NetworksTestDHCPv6-363802631 tempest-NetworksTestDHCPv6-363802631] Performing DB retry for function neutron.db.db_base_plugin_v2._create_subnet_postcommit {{(pid=16472) wrapper /usr/local/lib/python2.7/dist-packages/oslo_db/api.py:152}}

Seems like different reasons for retries? Is it some unfortunate scenario where different errors depleted attempts?

Changed in neutron:
importance: Undecided → High
tags: added: api db l3-ipam-dhcp
tags: added: gate-failure
Revision history for this message
Brian Haley (brian-haley) wrote :

Looks like duplicate of 1655567

Revision history for this message
Brian Haley (brian-haley) wrote :

https://bugs.launchpad.net/neutron/+bug/1655567 since the bug number didn't cause a link

Revision history for this message
Miguel Lavalle (minsel) wrote :
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.