Race condition on cleanup in TestSecurityGroupsBasicOps

Bug #1288580 reported by Aaron Rosen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Invalid
Undecided
Aaron Rosen

Bug Description

This test deletes the severs then the security groups but there is a race condition if the port's will be deleted before the security groups.

ft33.1: tearDownClass (tempest.scenario.test_security_groups_basic_ops.TestSecurityGroupsBasicOps)_StringException: Traceback (most recent call last):
  File "tempest/scenario/manager.py", line 149, in tearDownClass
    cls.cleanup_resource(thing, cls.__name__)
  File "tempest/scenario/manager.py", line 113, in cleanup_resource
    resource.delete()
  File "tempest/api/network/common.py", line 119, in delete
    self.client.delete_security_group(self.id)
  File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 111, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 488, in delete_security_group
    return self.delete(self.security_group_path % (security_group))
  File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 1256, in delete
    headers=headers, params=params)
  File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 1245, in retry_request
    headers=headers, params=params)
  File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 1188, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 1158, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 96, in exception_handler_v20
    message=msg)
NeutronClientException: 409-{u'NeutronError': {u'message': u'Security Group 25a98413-c8ce-460a-b882-c2fb7daa8828 in use.', u'type': u'SecurityGroupInUse', u'detail': u''}}

Aaron Rosen (arosen)
Changed in tempest:
assignee: nobody → Aaron Rosen (arosen)
Revision history for this message
Mauro S M Rodrigues (maurorodrigues) wrote :

Hey Aaron, I'm doing triage here, so what is the status of this? Does it still happens?
Don't you think it seems neutron bug instead of tempest?

Changed in tempest:
status: New → Incomplete
Revision history for this message
Yaroslav Lobankov (ylobankov) wrote :

This bug needs more information to reproduce and fix it, therefore it has been closed. Feel free to reopen the bug by providing the requested information and set the bug status back to "New".

Changed in tempest:
status: Incomplete → Invalid
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.