Fix in trunk dynamic workloads
This patch introduces the following changes. 1. self.keypair assignment has been shifted from trunk.py to dynamic_workload.py. This is because errors will occur if other trunk dynamic workloads are run before pod_fip_simulation in an iteration if self.keypair assignment is left in trunk.py. 2. self.ext_net_name assignment has been shifted from trunk.py to dynamic_workload.py for the same reason as above. Change-Id: If0a67276eb973b6c0abaef5781a3c0bba3bee434
This commit is contained in:
		@@ -197,19 +197,12 @@ class TrunkDynamicScenario(
 | 
			
		||||
        :param subport_count: int, number of subports to create per trunk
 | 
			
		||||
        :param num_vms: int, number of servers to create
 | 
			
		||||
        """
 | 
			
		||||
        self.ext_net_name = None
 | 
			
		||||
        if ext_net_id:
 | 
			
		||||
            self.ext_net_name = self.clients("neutron").show_network(ext_net_id)["network"][
 | 
			
		||||
                "name"
 | 
			
		||||
            ]
 | 
			
		||||
 | 
			
		||||
        network = self._create_network({})
 | 
			
		||||
        subnet = self._create_subnet(network, {})
 | 
			
		||||
        self._add_interface_router(subnet["subnet"], self.router["router"])
 | 
			
		||||
 | 
			
		||||
        kwargs = {}
 | 
			
		||||
        kwargs["nics"] = [{"net-id": network["network"]["id"]}]
 | 
			
		||||
        self.keypair = self.context["user"]["keypair"]
 | 
			
		||||
        jump_host = self._boot_server_with_fip_and_tag(jumphost_image, jumphost_flavor,
 | 
			
		||||
                                                       "jumphost_trunk", True,
 | 
			
		||||
                                                       self.ext_net_name,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user