There might be a short delay when switch is enabling ports to which
test interfaces are connected to. Adding a short sleep before the test
should help dropping first packets sent through the test interface as we
saw in ICMPPing test.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
recipes/regression_tests/phase1/3_vlans.py | 2 ++
recipes/regression_tests/phase1/3_vlans_over_bond.py | 2 ++
recipes/regression_tests/phase1/bonding_test.py | 2 ++
recipes/regression_tests/phase1/simple_ping.py | 2 ++
recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py | 2 ++
recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py | 2 ++
recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py | 2 ++
recipes/regression_tests/phase2/3_vlans_over_team.py | 2 ++
recipes/regression_tests/phase2/team_test.py | 2 ++
.../phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py | 1 +
recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py | 1 +
recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py | 1 +
12 files changed, 21 insertions(+)
diff --git a/recipes/regression_tests/phase1/3_vlans.py
b/recipes/regression_tests/phase1/3_vlans.py
index d3406a7..8aa6a2b 100644
--- a/recipes/regression_tests/phase1/3_vlans.py
+++ b/recipes/regression_tests/phase1/3_vlans.py
@@ -19,6 +19,8 @@ offloads = ["gso", "gro", "tso"]
ipv = ctl.get_alias('ipv')
+ctl.wait(15)
+
for vlan1 in vlans:
for vlan2 in vlans:
ping_mod = ctl.get_module("IcmpPing",
diff --git a/recipes/regression_tests/phase1/3_vlans_over_bond.py
b/recipes/regression_tests/phase1/3_vlans_over_bond.py
index c922719..4cc0f41 100644
--- a/recipes/regression_tests/phase1/3_vlans_over_bond.py
+++ b/recipes/regression_tests/phase1/3_vlans_over_bond.py
@@ -19,6 +19,8 @@ offloads = ["gso", "gro", "tso"]
ipv = ctl.get_alias('ipv')
+ctl.wait(15)
+
for vlan1 in vlans:
for vlan2 in vlans:
ping_mod = ctl.get_module("IcmpPing",
diff --git a/recipes/regression_tests/phase1/bonding_test.py
b/recipes/regression_tests/phase1/bonding_test.py
index 5d94f1d..885c541 100644
--- a/recipes/regression_tests/phase1/bonding_test.py
+++ b/recipes/regression_tests/phase1/bonding_test.py
@@ -87,6 +87,8 @@ netperf_cli_udp6 = ctl.get_module("Netperf",
"-L %s -6" %
m2.get_ip("test_if", 1)
})
+ctl.wait(15)
+
for offload in offloads:
for state in ["off", "on"]:
m1.run("ethtool -K %s %s %s" % (m1.get_devname("test_if"),
offload,
diff --git a/recipes/regression_tests/phase1/simple_ping.py
b/recipes/regression_tests/phase1/simple_ping.py
index 2fd48d1..d2bcdb6 100644
--- a/recipes/regression_tests/phase1/simple_ping.py
+++ b/recipes/regression_tests/phase1/simple_ping.py
@@ -22,6 +22,8 @@ ping_mod6 = ctl.get_module("Icmp6Ping",
"iface" : hostA.get_ip("testiface",
1),
"limit_rate": 90})
+ctl.wait(15)
+
if ctl.get_alias('ipv') == 'ipv6':
hostA.run(ping_mod6)
diff --git a/recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py
b/recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py
index ecc423d..907b3d5 100644
--- a/recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py
+++ b/recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py
@@ -144,6 +144,8 @@ ping_mod6_bad2 = ctl.get_module("Icmp6Ping",
"interval" : 0.1
})
+ctl.wait(15)
+
for offload in offloads:
for state in ["off", "on"]:
h1.run("ethtool -K %s %s %s" % (h1.get_devname("nic1"),
diff --git a/recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py
b/recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py
index e4efece..6f93c14 100644
--- a/recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py
+++ b/recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py
@@ -91,6 +91,8 @@ netperf_cli_udp6 = ctl.get_module("Netperf",
"-L %s -6" %
h2.get_ip("vlan10", 1)
})
+ctl.wait(15)
+
for offload in offloads:
for state in ["off", "on"]:
g1.run("ethtool -K %s %s %s" % (g1.get_devname("guestnic"),
diff --git a/recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py
b/recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py
index a3b6153..0525ea5 100644
--- a/recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py
+++ b/recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py
@@ -91,6 +91,8 @@ netperf_cli_udp6 = ctl.get_module("Netperf",
"-L %s -6" %
h2.get_ip("vlan10", 1)
})
+ctl.wait(15)
+
for offload in offloads:
for state in ["off", "on"]:
g1.run("ethtool -K %s %s %s" %
(g1.get_devname("guestnic"),
diff --git a/recipes/regression_tests/phase2/3_vlans_over_team.py
b/recipes/regression_tests/phase2/3_vlans_over_team.py
index f7982a9..dab21ac 100644
--- a/recipes/regression_tests/phase2/3_vlans_over_team.py
+++ b/recipes/regression_tests/phase2/3_vlans_over_team.py
@@ -19,6 +19,8 @@ offloads = ["gso", "gro", "tso"]
ipv = ctl.get_alias('ipv')
+ctl.wait(15)
+
for vlan1 in vlans:
for vlan2 in vlans:
ping_mod = ctl.get_module("IcmpPing",
diff --git a/recipes/regression_tests/phase2/team_test.py
b/recipes/regression_tests/phase2/team_test.py
index 0482c90..4c87613 100644
--- a/recipes/regression_tests/phase2/team_test.py
+++ b/recipes/regression_tests/phase2/team_test.py
@@ -86,6 +86,8 @@ netperf_cli_udp6 = ctl.get_module("Netperf",
"-L %s -6" %
m2.get_ip("test_if", 1)
})
+ctl.wait(15)
+
for offload in offloads:
for state in ["off", "on"]:
m1.run("ethtool -K %s %s %s" % (m1.get_devname("test_if"),
offload,
diff --git
a/recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py
b/recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py
index 0b192bc..f09ef36 100644
---
a/recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py
+++
b/recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py
@@ -146,6 +146,7 @@ ping_mod6_bad2 = ctl.get_module("Icmp6Ping",
"interval" : 0.1
})
+ctl.wait(15)
for offload in offloads:
for state in ["off", "on"]:
diff --git a/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py
b/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py
index 9e61372..2417c8a 100644
--- a/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py
+++ b/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py
@@ -91,6 +91,7 @@ netperf_cli_udp6 = ctl.get_module("Netperf",
"-L %s -6" %
h2.get_ip("vlan10", 1)
})
+ctl.wait(15)
for offload in offloads:
for state in ["off", "on"]:
diff --git a/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py
b/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py
index a6958d3..cee4c49 100644
--- a/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py
+++ b/recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py
@@ -90,6 +90,7 @@ netperf_cli_udp6 = ctl.get_module("Netperf",
"netperf_opts" :
"-L %s -6" %
h2.get_ip("vlan10", 1)
})
+ctl.wait(15)
for offload in offloads:
for state in ["off", "on"]:
--
1.9.3