Set fixed allocation pools for tests that uses fixed IPs
Neutron may allocate additional IPs for internal services
which may conflict with hardcoded IPs in the tests. To avoid
this rase set allocation pool explicitly to do not overlap
with fixed_ip_address specified in the test
Related-Prod: PRODX-47172
Change-Id: I30818535b25e6c8a1cb72e415bf201cc381fdb65
(cherry picked from commit cf652edc0f90c2b976d6d855fd17a0f1787b78e5)
diff --git a/heat_tempest_plugin/tests/functional/test_create_update_neutron_port.py b/heat_tempest_plugin/tests/functional/test_create_update_neutron_port.py
index cf51bbd..7bd6980 100644
--- a/heat_tempest_plugin/tests/functional/test_create_update_neutron_port.py
+++ b/heat_tempest_plugin/tests/functional/test_create_update_neutron_port.py
@@ -31,6 +31,9 @@
enable_dhcp: false
network: { get_resource: net }
cidr: 11.11.11.0/24
+ allocation_pools:
+ - start: 11.11.11.2
+ end: 11.11.11.9
port:
type: OS::Neutron::Port
properties:
diff --git a/heat_tempest_plugin/tests/functional/test_nova_server_networks.py b/heat_tempest_plugin/tests/functional/test_nova_server_networks.py
index 32ed27a..1239491 100644
--- a/heat_tempest_plugin/tests/functional/test_nova_server_networks.py
+++ b/heat_tempest_plugin/tests/functional/test_nova_server_networks.py
@@ -33,6 +33,9 @@
properties:
network: {get_resource: net}
cidr: 11.11.11.0/24
+ allocation_pools:
+ - start: 11.11.11.2
+ end: 11.11.11.9
security_group:
type: OS::Neutron::SecurityGroup
properties:
@@ -76,6 +79,9 @@
properties:
network: {get_resource: net}
cidr: 11.11.11.0/24
+ allocation_pools:
+ - start: 11.11.11.2
+ end: 11.11.11.9
port:
type: OS::Neutron::Port
properties:
@@ -111,12 +117,18 @@
network: {get_resource: net}
cidr: 11.11.11.0/24
name: subnet_a
+ allocation_pools:
+ - start: 11.11.11.2
+ end: 11.11.11.9
subnet_b:
type: OS::Neutron::Subnet
properties:
network: {get_resource: net}
cidr: 12.12.12.0/24
name: subnet_b
+ allocation_pools:
+ - start: 12.12.12.2
+ end: 12.12.12.9
server:
type: OS::Nova::Server
properties:
@@ -147,6 +159,9 @@
name: the_subnet
network: {get_resource: net}
cidr: 11.11.11.0/24
+ allocation_pools:
+ - start: 11.11.11.2
+ end: 11.11.11.9
server:
type: OS::Nova::Server
properties: