Test Cases fail as cleanup of user created port fails.

Bug #1489312 reported by neethi shashidhar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-vsphere
Fix Committed
Undecided
prabhu murthy

Bug Description

Test cases fail as cleanup of user created port fails with error:

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/opt/stack/neutron/neutron/tests/tempest/test.py", line 288, in tearDownClass
        teardown()
      File "/opt/stack/neutron/neutron/tests/api/base.py", line 170, in resource_cleanup
        subnet['id'])
      File "/opt/stack/neutron/neutron/tests/api/base.py", line 208, in _try_delete_resource
        delete_callable(*args, **kwargs)
      File "/opt/stack/neutron/neutron/tests/tempest/services/network/json/network_client.py", line 113, in _delete
        resp, body = self.delete(uri)
      File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 287, in delete
        return self.request('DELETE', url, extra_headers, headers, body)
      File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 636, in request
        resp, resp_body)
      File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 698, in _error_checker
        raise exceptions.Conflict(resp_body)
    tempest_lib.exceptions.Conflict: An object with that identifier already exists
    Details: {u'message': u'Unable to complete operation on subnet 86541bff-e5d4-441a-a318-ab1f8743dafb. One or more ports have an IP allocation from this subnet.', u'type': u'SubnetInUse', u'detail': u''}

Revision history for this message
Shuquan Huang (shuquan) wrote :

Can you provide more detail about this bug??
For example., which test are you running and what kind of env it is?

Revision history for this message
prabhu murthy (prabhm) wrote :

Fixed the issue in below patch set

https://review.openstack.org/#/c/214004/

Changed in tempest:
assignee: nobody → prabhu murthy (prabhu-m4)
status: New → Fix Committed
affects: tempest → networking-vsphere
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (master)

Reviewed: https://review.openstack.org/214004
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=229efddfd0258c6bb62f1acd4442cf4ac4679c3d
Submitter: Jenkins
Branch: master

commit 229efddfd0258c6bb62f1acd4442cf4ac4679c3d
Author: prabhm <email address hidden>
Date: Mon Aug 17 22:35:30 2015 -0700

    Fixed the scenario test case for port/flow deletion

    1) Added cleanup of neutron port which user created.
       User created port was not getting deleted after the test run.

    2) Added fix for verification of flows when there is no match.
       It was not able to catch the Exception during no match
       for the flows.

    Closes-Bug: 1489312
    Closes-Bug: 1489297

    Change-Id: I416499b271372aa941b0fba4472f13b7739b5810

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (stable/kilo)

Reviewed: https://review.openstack.org/222980
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=994a09977855b4b996bb181a28645bd817523a39
Submitter: Jenkins
Branch: stable/kilo

commit 994a09977855b4b996bb181a28645bd817523a39
Author: prabhm <email address hidden>
Date: Mon Aug 17 22:35:30 2015 -0700

    Fixed the scenario test case for port/flow deletion

    1) Added cleanup of neutron port which user created.
       User created port was not getting deleted after the test run.

    2) Added fix for verification of flows when there is no match.
       It was not able to catch the Exception during no match
       for the flows.

    Closes-Bug: 1489312
    Closes-Bug: 1489297

    Change-Id: I416499b271372aa941b0fba4472f13b7739b5810
    (cherry picked from commit 229efddfd0258c6bb62f1acd4442cf4ac4679c3d)

tags: added: in-stable-kilo
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.