Cleanup in neutron_tempest_plugin.api.admin.test_external_network_extension.ExternalNetworksRBACTestJSON may fail in dvr deployments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Slawek Kaplonski |
Bug Description
I saw it couple of times in our d/s testing job with DVR enabled that test neutron_
Error was like
ft4.1: tearDownClass (neutron_
File "/usr/lib/
six.
File "/usr/lib/
raise value
File "/usr/lib/
teardown()
File "/usr/lib/
subnet['id'])
File "/usr/lib/
delete_
File "/usr/lib/
resp, body = self.delete(uri)
File "/usr/lib/
return self.request(
File "/usr/lib/
self.
File "/usr/lib/
raise exceptions.
tempest.
Details: {'type': 'SubnetInUse', 'message': 'Unable to complete operation on subnet 7f774581-
The issue is that in the dvr deployment, when router with external network is created, Neutron creates in the background floatingip gateway port. And as test is performing fast it may happen that this port is created after router is already deleted so it's not cleaned properly and causes failure during network removal.
We didn't saw it in u/s CI as we don't have any dvr based job which would run neutron_
Fix proposed to branch: master /review. opendev. org/723387
Review: https:/