Do not fail when subnet is reserved
The reservation of subnets happening in cls method when two tests
run concurrently races may happen. Do not fail when subnet is reserverd
if we wanted to reserve it as it is okay and what we wanted.
Related-Prod: PRODX-36778
Change-Id: I0f35f0783430565f1886b710e33f991559fc7761
(cherry picked from commit 214943d4d8cf87b5e9d8f64481df725401e40c7b)
(cherry picked from commit 7955a7751e3cacf32ae10fc342e759089107e6e6)
diff --git a/neutron_tempest_plugin/api/base.py b/neutron_tempest_plugin/api/base.py
index 7ea22e6..532fa43 100644
--- a/neutron_tempest_plugin/api/base.py
+++ b/neutron_tempest_plugin/api/base.py
@@ -546,8 +546,7 @@
"""
if not cls.try_reserve_subnet_cidr(addr, **ipnetwork_kwargs):
- raise ValueError('Subnet CIDR already reserved: {0!r}'.format(
- addr))
+ LOG.info("Subnet CIDR already reserved: %r", addr)
@classmethod
def try_reserve_subnet_cidr(cls, addr, **ipnetwork_kwargs):