Enforce security group cleanup (Resources leaks)

Bug #1904694 reported by Abhishek Jaiswal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Won't Fix
Medium
Abhishek Jaiswal

Bug Description

Enforce security group rule cleanup if created in the test case

This will avoid clashes with other test cases running in the same
thread

FAIL 0:00:16.259435 neutron_tempest_plugin.api.test_security_groups.SecGroupRulesQuotaTest.test_create_sg_rules_when_quota_disabled[id-4459e066-d9c8-4a13-9e98-018f95ce2dbf]

Traceback:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/neutron_tempest_plugin/api/test_security_groups.py", line 314, in test_create_sg_rules_when_quota_disabled
    self._create_security_group_rules(10, port_index=100)
  File "/usr/local/lib/python3.6/dist-packages/neutron_tempest_plugin/api/test_security_groups.py", line 233, in _create_security_group_rules
    'protocol': 'tcp'})
  File "/usr/local/lib/python3.6/dist-packages/neutron_tempest_plugin/api/base.py", line 874, in create_security_group_rule
    return client.create_security_group_rule(**kwargs)[
  File "/usr/local/lib/python3.6/dist-packages/neutron_tempest_plugin/services/network/json/network_client.py", line 913, in create_security_group_rule
    resp, body = self.post(uri, body)
  File "/home/aqua/tempest/tempest/lib/common/rest_client.py", line 298, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "/home/aqua/tempest/tempest/lib/common/rest_client.py", line 702, in request
    self._error_checker(resp, resp_body)
  File "/home/aqua/tempest/tempest/lib/common/rest_client.py", line 823, in _error_checker
    raise exceptions.Conflict(resp_body, resp=resp)
tempest.lib.exceptions.Conflict: Conflict with state of target resource
Details: {'type': 'SecurityGroupRuleExists', 'message': 'Security group rule already exists. Rule id is dcf10cc5-5b0c-4be2-81e8-62d7a226b620.', 'detail': ''}

Changed in neutron:
assignee: nobody → Abhishek Jaiswal (jkabhishek)
status: New → In Progress
Revision history for this message
Jakub Libosvar (libosvar) wrote :

Hi Abhishek, thanks for the bug report. Is this meant to go to tempest tests?

Changed in neutron:
importance: Undecided → Medium
milestone: none → wallaby-2
Revision history for this message
Jakub Libosvar (libosvar) wrote :

Hi Abhishek, is the fix supposed to go to cleanup parts of tempest? Where do you see such error?

Changed in neutron:
status: In Progress → Incomplete
Revision history for this message
Abhishek Jaiswal (jkabhishek) wrote :

HI @libosvar there is already a commit made by me https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/762104

description: updated
Revision history for this message
Oleg Bondarev (obondarev) wrote :
Changed in neutron:
status: Incomplete → In Progress
Changed in neutron:
milestone: wallaby-2 → none
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Bug closed due to lack of activity, please feel free to reopen if needed.

Changed in neutron:
status: In Progress → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-tempest-plugin (master)

Change abandoned by "Abhishek Jaiswal <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/762104

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.