Skip to content

Commit

Permalink
Ignore missed_in_asic_db_routes error in vxlan/test_vxlan_crm.py
Browse files Browse the repository at this point in the history
…test for KVM (sonic-net#14365)

What is the motivation for this PR?
When running vxlan/test_vxlan_crm.py, there is a chance to get missed_in_asic_db_routes error in log analyzer for KVM

How did you do it?
Since missed_in_asic_db_routes has been ignored in other test scripts in vxlan module, ignore in vxlan/test_vxlan_crm.py test for KVM
Remove conditional mark xfail but keep mgmt issue sonic-net#14311 open

How did you verify/test it?
Test in KVM
  • Loading branch information
xwjiang-ms authored Sep 3, 2024
1 parent c9599a6 commit e0deef4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/common/plugins/conditional_mark/tests_mark_conditions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1890,50 +1890,30 @@ vxlan/test_vxlan_crm.py::Test_VxLAN_Crm::test_crm_128_group_members[v6_in_v6]:
reason: "On Mellanox spc1 platform, due to HW limitation, vxlan ipv6 tunnel is not supported"
conditions:
- "asic_gen == 'spc1'"
xfail:
reason: "Vnet route missed in ASIC DB for KVM platform, xfail for unblocking PR test"
conditions:
- "(asic_type in ['vs']) and https://github.com/sonic-net/sonic-mgmt/issues/14311"

vxlan/test_vxlan_crm.py::Test_VxLAN_Crm::test_crm_16k_routes[v4_in_v6]:
skip:
reason: "On Mellanox spc1 platform, due to HW limitation, vxlan ipv6 tunnel is not supported"
conditions:
- "asic_gen == 'spc1'"
xfail:
reason: "Vnet route missed in ASIC DB for KVM platform, xfail for unblocking PR test"
conditions:
- "(asic_type in ['vs']) and https://github.com/sonic-net/sonic-mgmt/issues/14311"

vxlan/test_vxlan_crm.py::Test_VxLAN_Crm::test_crm_16k_routes[v6_in_v6]:
skip:
reason: "On Mellanox spc1 platform, due to HW limitation, vxlan ipv6 tunnel is not supported"
conditions:
- "asic_gen == 'spc1'"
xfail:
reason: "Vnet route missed in ASIC DB for KVM platform, xfail for unblocking PR test"
conditions:
- "(asic_type in ['vs']) and https://github.com/sonic-net/sonic-mgmt/issues/14311"

vxlan/test_vxlan_crm.py::Test_VxLAN_Crm::test_crm_512_nexthop_groups[v4_in_v6]:
skip:
reason: "On Mellanox spc1 platform, due to HW limitation, vxlan ipv6 tunnel is not supported"
conditions:
- "asic_gen == 'spc1'"
xfail:
reason: "Vnet route missed in ASIC DB for KVM platform, xfail for unblocking PR test"
conditions:
- "(asic_type in ['vs']) and https://github.com/sonic-net/sonic-mgmt/issues/14311"

vxlan/test_vxlan_crm.py::Test_VxLAN_Crm::test_crm_512_nexthop_groups[v6_in_v6]:
skip:
reason: "On Mellanox spc1 platform, due to HW limitation, vxlan ipv6 tunnel is not supported"
conditions:
- "asic_gen == 'spc1'"
xfail:
reason: "Vnet route missed in ASIC DB for KVM platform, xfail for unblocking PR test"
conditions:
- "(asic_type in ['vs']) and https://github.com/sonic-net/sonic-mgmt/issues/14311"

vxlan/test_vxlan_ecmp.py:
skip:
Expand Down
14 changes: 14 additions & 0 deletions tests/vxlan/test_vxlan_crm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@
ecmp_utils = Ecmp_Utils()


@pytest.fixture(autouse=True)
def _ignore_route_sync_errlogs(duthosts, rand_one_dut_hostname, loganalyzer):
"""Ignore expected failures logs during test execution."""
if loganalyzer:
# Ignore in KVM test
KVMIgnoreRegex = [
".*missed_in_asic_db_routes.*",
]
duthost = duthosts[rand_one_dut_hostname]
if duthost.facts["asic_type"] == "vs":
loganalyzer[rand_one_dut_hostname].ignore_regex.extend(KVMIgnoreRegex)
return


def uniq(lst):
last = object()
for item in sorted(lst):
Expand Down

0 comments on commit e0deef4

Please sign in to comment.