From f966d0fc58b701b7c10c272f9d6ec7e6e453817c Mon Sep 17 00:00:00 2001 From: Sanjay Chari Date: Wed, 4 Aug 2021 10:44:47 +0530 Subject: [PATCH] Fix in trunk subport simulation Trunk subport simulation was failing on my env because the security group that the subports were on did not have an icmp rule. This patch creates parent ports and subports on the same security group, to fix the subport ping issue. Change-Id: I177c9f1375dd2e3b7ed91457444d24387e76343c --- rally/rally-plugins/netcreate-boot/trunk_network_simulation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rally/rally-plugins/netcreate-boot/trunk_network_simulation.py b/rally/rally-plugins/netcreate-boot/trunk_network_simulation.py index ff850fe58..e38062164 100644 --- a/rally/rally-plugins/netcreate-boot/trunk_network_simulation.py +++ b/rally/rally-plugins/netcreate-boot/trunk_network_simulation.py @@ -105,7 +105,8 @@ class TrunkSubportConnection(vm_utils.VMScenario, subnets.append(subnet[0]) subports.append(self._create_port( net, {"fixed_ips": [{ - "subnet_id": subnet[0]["subnet"]["id"]}]})) + "subnet_id": subnet[0]["subnet"]["id"]}], + "security_groups": [security_group["id"]]})) self._add_interface_router(subnet[0]['subnet'], router['router']) jump_ssh = sshutils.SSH("centos", fip, pkey=self.keypair["private"])