Fix in VM dynamic workloads
In the swap floating IPs between random servers dynamic workload, port id of a floating IP is set to None before swapping. These floating IPs should not be in the list of eligible floating IPs for swapping in other iterations. Change-Id: I268e752bbf3dd66f1eaa2b0793383b7d6123e2ae
This commit is contained in:
parent
8a3f884e6a
commit
f1917c2167
@ -155,7 +155,8 @@ class VMDynamicScenario(dynamic_utils.NovaUtils,
|
||||
"""Swap floating IPs between servers
|
||||
"""
|
||||
kwargs = {"floating_network_id": self.ext_net_id}
|
||||
eligible_floating_ips = self._list_floating_ips(**kwargs)["floatingips"]
|
||||
eligible_floating_ips = [fip for fip in self._list_floating_ips(**kwargs)["floatingips"]
|
||||
if fip["port_id"] is not None]
|
||||
|
||||
floating_ips_to_swap = []
|
||||
servers_to_swap = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user