← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2004016] [NEW] [Secure RBAC] Cleaning shared networks fails with new RBAC policies

 

Public bug reported:

Failed test: tearDownClass
(neutron_tempest_plugin.api.admin.test_shared_network_extension.RBACSharedNetworksTest)

Error:

ft7.1: tearDownClass (neutron_tempest_plugin.api.admin.test_shared_network_extension.RBACSharedNetworksTest)testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 220, in tearDownClass
    raise value.with_traceback(trace)
  File "/opt/stack/tempest/tempest/test.py", line 192, in tearDownClass
    teardown()
  File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/neutron_tempest_plugin/api/base.py", line 228, in resource_cleanup
    cls._try_delete_resource(cls.delete_network, network)
  File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/neutron_tempest_plugin/api/base.py", line 310, in _try_delete_resource
    delete_callable(*args, **kwargs)
  File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/neutron_tempest_plugin/api/base.py", line 403, in delete_network
    client.delete_network(network['id'])
  File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/neutron_tempest_plugin/services/network/json/network_client.py", line 112, in _delete
    resp, body = self.delete(uri)
  File "/opt/stack/tempest/tempest/lib/common/rest_client.py", line 330, in delete
    return self.request('DELETE', url, extra_headers, headers, body)
  File "/opt/stack/tempest/tempest/lib/common/rest_client.py", line 720, in request
    self._error_checker(resp, resp_body)
  File "/opt/stack/tempest/tempest/lib/common/rest_client.py", line 841, in _error_checker
    raise exceptions.Conflict(resp_body, resp=resp)
tempest.lib.exceptions.Conflict: Conflict with state of target resource
Details: {'type': 'NetworkInUse', 'message': 'Unable to complete operation on network fa38e116-dfce-49a1-9e68-5575db2ac936. There are one or more ports still in use on the network, id for these ports is: f88933d0-9a03-447f-a1b4-d0cf6715d128.', 'detail': ''}

** Affects: neutron
     Importance: High
         Status: Confirmed


** Tags: api

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2004016

Title:
  [Secure RBAC] Cleaning shared networks fails with new RBAC policies

Status in neutron:
  Confirmed

Bug description:
  Failed test: tearDownClass
  (neutron_tempest_plugin.api.admin.test_shared_network_extension.RBACSharedNetworksTest)

  Error:

  ft7.1: tearDownClass (neutron_tempest_plugin.api.admin.test_shared_network_extension.RBACSharedNetworksTest)testtools.testresult.real._StringException: Traceback (most recent call last):
    File "/opt/stack/tempest/tempest/test.py", line 220, in tearDownClass
      raise value.with_traceback(trace)
    File "/opt/stack/tempest/tempest/test.py", line 192, in tearDownClass
      teardown()
    File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/neutron_tempest_plugin/api/base.py", line 228, in resource_cleanup
      cls._try_delete_resource(cls.delete_network, network)
    File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/neutron_tempest_plugin/api/base.py", line 310, in _try_delete_resource
      delete_callable(*args, **kwargs)
    File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/neutron_tempest_plugin/api/base.py", line 403, in delete_network
      client.delete_network(network['id'])
    File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/neutron_tempest_plugin/services/network/json/network_client.py", line 112, in _delete
      resp, body = self.delete(uri)
    File "/opt/stack/tempest/tempest/lib/common/rest_client.py", line 330, in delete
      return self.request('DELETE', url, extra_headers, headers, body)
    File "/opt/stack/tempest/tempest/lib/common/rest_client.py", line 720, in request
      self._error_checker(resp, resp_body)
    File "/opt/stack/tempest/tempest/lib/common/rest_client.py", line 841, in _error_checker
      raise exceptions.Conflict(resp_body, resp=resp)
  tempest.lib.exceptions.Conflict: Conflict with state of target resource
  Details: {'type': 'NetworkInUse', 'message': 'Unable to complete operation on network fa38e116-dfce-49a1-9e68-5575db2ac936. There are one or more ports still in use on the network, id for these ports is: f88933d0-9a03-447f-a1b4-d0cf6715d128.', 'detail': ''}

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2004016/+subscriptions



Follow ups