Bug 1384631

Summary: Fail to run 'tempest.api.network.test_dhcp_ipv6.NetworksTestDHCPv6' tests
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: openstack-tempestAssignee: Ihar Hrachyshka <ihrachys>
Status: CLOSED ERRATA QA Contact: tkammer
Severity: urgent Docs Contact:
Priority: medium    
Version: 10.0 (Newton)CC: amuller, apevec, chrisw, dmellado, ihrachys, jlibosva, jschluet, lhh, nyechiel, slinaber, srevivo, tkammer
Target Milestone: rcKeywords: Automation, AutomationBlocker, Triaged
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tempest-13.0.0-2.bafe630git.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 16:19:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arie Bregman 2016-10-13 17:39:57 UTC
Description of problem:

Fail to run all the tests under 'tempest.api.network.test_dhcp_ipv6.NetworksTestDHCPv6'.

Version-Release number of selected component (if applicable): 
openstack-neutron-9.0.0-0.20160929051647.71f2d2b.el7ost.noarch


How reproducible: 100%


Steps to Reproduce:
1. Deploy RHOSP 10 HA
2. Run Tempest API DHCP IPv6 tests

Actual results:
---
Traceback (most recent call last):
  File "/home/stack/tempest/tempest/api/network/test_dhcp_ipv6.py", line 378, in tearDown
    self._clean_network()
  File "/home/stack/tempest/tempest/api/network/test_dhcp_ipv6.py", line 81, in _clean_network
    self.subnets_client.delete_subnet(subnet['id'])
  File "/home/stack/tempest/tempest/lib/services/network/subnets_client.py", line 52, in delete_subnet
    return self.delete_resource(uri)
  File "/home/stack/tempest/tempest/lib/services/network/base.py", line 41, in delete_resource
    resp, body = self.delete(req_uri)
  File "/home/stack/tempest/tempest/lib/common/rest_client.py", line 307, in delete
    return self.request('DELETE', url, extra_headers, headers, body)
  File "/home/stack/tempest/tempest/lib/common/rest_client.py", line 665, in request
    resp, resp_body)
  File "/home/stack/tempest/tempest/lib/common/rest_client.py", line 778, in _error_checker
    raise exceptions.Conflict(resp_body, resp=resp)
tempest.lib.exceptions.Conflict: An object with that identifier already exists
Details: {u'message': u'Unable to complete operation on subnet 21dfe8c4-ca26-48c8-a621-8e4b1fe099e7: One or more ports have an IP allocation from this subnet.', u'type': u'SubnetInUse', u'detail': u''}
---

Expected results: Tests passed successfully

Additional info: Link to Jenkins job with the test results provided in the next comment

Comment 8 Ihar Hrachyshka 2016-10-20 14:54:13 UTC
AFAIK the fix got into RDO tempest, and CI does not show this specific type of failure for the test anymore. Also, openstack-tempest package is built in brew.

Comment 12 Arie Bregman 2016-11-04 15:04:32 UTC
Verified there are no API failures anymore.

Comment 14 errata-xmlrpc 2016-12-14 16:19:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-2948.html