Use ipv4 subnet in Heat scenario tests
Previously we used first subnet from network and it was correct, because
there was only one subnet in network by default. According to the last changes
in devstack new ipv6 subnet was added to the all default networks.
This patch adds function to the base class, which allows to choose
subnet based on ip version. All scenario tests were updated to use only ipv4
subnet.
Also was added property for FIP, which specify ip of vip.
Change-Id: I199075909b97fe98e1a3c1d175b0b4cf7100403d
Closes-Bug: #1449896
diff --git a/scenario/test_server_cfn_init.py b/scenario/test_server_cfn_init.py
index 8134713..b2650bb 100644
--- a/scenario/test_server_cfn_init.py
+++ b/scenario/test_server_cfn_init.py
@@ -91,11 +91,11 @@
via generated keypair.
"""
parameters = {
- "key_name": self.keypair_name,
- "flavor": self.conf.instance_type,
- "image": self.conf.image_ref,
- "timeout": self.conf.build_timeout,
- "subnet": self.net["subnets"][0],
+ 'key_name': self.keypair_name,
+ 'flavor': self.conf.instance_type,
+ 'image': self.conf.image_ref,
+ 'timeout': self.conf.build_timeout,
+ 'subnet': self.subnet_v4,
}
# Launch stack