Skip to content

[Arista] test_static_route_ecmp failed due to received packet from wrong port #6576

@Blueve

Description

@Blueve

Description

2022-10-18T21:20:33.0013497Z ___________________ test_static_route_ecmp[bjw-can-720dt-1] ____________________
2022-10-18T21:20:33.0018120Z 
2022-10-18T21:20:33.0026840Z rand_selected_dut = <MultiAsicSonicHost bjw-can-720dt-1>
2022-10-18T21:20:33.0037363Z ptfadapter = <tests.common.plugins.ptfadapter.ptfadapter.PtfTestAdapter testMethod=runTest>
2022-10-18T21:20:33.0047789Z ptfhost = <tests.common.devices.ptf.PTFHost object at 0x7f399211ded0>
2022-10-18T21:20:33.0059921Z tbinfo = {'auto_recover': 'True', 'comment': 'Beijing lab', 'conf-name': 'bjw-vms6-t0-720dt-1', 'duts': ['bjw-can-720dt-1'], ...}
2022-10-18T21:20:33.0070572Z toggle_all_simulator_ports_to_rand_selected_tor_m = None
2022-10-18T21:20:33.0079777Z is_route_flow_counter_supported = False
2022-10-18T21:20:33.0083111Z 
2022-10-18T21:20:33.0090881Z     @pytest.mark.disable_loganalyzer
2022-10-18T21:20:33.0102031Z     def test_static_route_ecmp(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all_simulator_ports_to_rand_selected_tor_m, is_route_flow_counter_supported):
2022-10-18T21:20:33.0112866Z         duthost = rand_selected_dut
2022-10-18T21:20:33.0122749Z         prefix_len, nexthop_addrs, nexthop_devs, nexthop_interfaces = get_nexthops(duthost, tbinfo, count=3)
2022-10-18T21:20:33.0133807Z         run_static_route_test(duthost, ptfadapter, ptfhost, tbinfo, "2.2.2.0/24",
2022-10-18T21:20:33.0139617Z >                             nexthop_addrs, prefix_len, nexthop_devs, nexthop_interfaces, is_route_flow_counter_supported, config_reload_test=True)
2022-10-18T21:20:33.0141595Z 
2022-10-18T21:20:33.0145269Z duthost    = <MultiAsicSonicHost bjw-can-720dt-1>
2022-10-18T21:20:33.0148257Z is_route_flow_counter_supported = False
2022-10-18T21:20:33.0151414Z nexthop_addrs = ['192.168.0.42', '192.168.0.40', '192.168.0.45']
2022-10-18T21:20:33.0154459Z nexthop_devs = [40, 38, 43]
2022-10-18T21:20:33.0157123Z nexthop_interfaces = [40, 38, 43]
2022-10-18T21:20:33.0159818Z prefix_len = 24
2022-10-18T21:20:33.0162883Z ptfadapter = <tests.common.plugins.ptfadapter.ptfadapter.PtfTestAdapter testMethod=runTest>
2022-10-18T21:20:33.0166543Z ptfhost    = <tests.common.devices.ptf.PTFHost object at 0x7f399211ded0>
2022-10-18T21:20:33.0170253Z rand_selected_dut = <MultiAsicSonicHost bjw-can-720dt-1>
2022-10-18T21:20:33.0174707Z tbinfo     = {'auto_recover': 'True', 'comment': 'Beijing lab', 'conf-name': 'bjw-vms6-t0-720dt-1', 'duts': ['bjw-can-720dt-1'], ...}
2022-10-18T21:20:33.0178833Z toggle_all_simulator_ports_to_rand_selected_tor_m = None
2022-10-18T21:20:33.0180403Z 
2022-10-18T21:20:33.0183560Z route/test_static_route.py:242: 
2022-10-18T21:20:33.0187005Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2022-10-18T21:20:33.0190336Z route/test_static_route.py:176: in run_static_route_test
2022-10-18T21:20:33.0193975Z     generate_and_verify_traffic(duthost, ptfadapter, tbinfo, ip_dst, nexthop_devs, ipv6=ipv6)
2022-10-18T21:20:33.0197423Z route/test_static_route.py:107: in generate_and_verify_traffic
2022-10-18T21:20:33.0200942Z     testutils.verify_packet_any_port(ptfadapter, exp_pkt, ports=expected_ports)
2022-10-18T21:20:33.0204906Z /usr/lib/python2.7/dist-packages/ptf/testutils.py:2533: in verify_packet_any_port
2022-10-18T21:20:33.0208748Z     % (result.port, device_number, ports, result.format()))
2022-10-18T21:20:33.0220104Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2022-10-18T21:20:33.0221654Z 
2022-10-18T21:20:33.0225365Z self = <tests.common.plugins.ptfadapter.ptfadapter.PtfTestAdapter testMethod=runTest>
2022-10-18T21:20:33.0230588Z msg = 'Received expected packet on port 48 for device 0, but it should have arrived on one of these ports: [40, 38, 43].\n==...65 2E  ute tests.route.\n0060  74 65 73 74                                      test\n==============================\n'
2022-10-18T21:20:33.0232738Z 
2022-10-18T21:20:33.0235359Z     def fail(self, msg=None):
2022-10-18T21:20:33.0238126Z         """Fail immediately, with the given message."""
2022-10-18T21:20:33.0241140Z >       raise self.failureException(msg)
2022-10-18T21:20:33.0244557Z E       AssertionError: Received expected packet on port 48 for device 0, but it should have arrived on one of these ports: [40, 38, 43].
2022-10-18T21:20:33.0247904Z E       ========== RECEIVED ==========
2022-10-18T21:20:33.0250929Z E       0000  26 B6 D8 18 1E F0 2C DD E9 FC DF 08 08 00 45 00  &.....,.......E.
2022-10-18T21:20:33.0254596Z E       0010  00 56 00 01 00 00 3F 06 75 9D 01 01 01 01 02 02  .V....?.u.......
2022-10-18T21:20:33.0258144Z E       0020  02 01 04 D2 10 E1 00 00 00 00 00 00 00 00 50 02  ..............P.
2022-10-18T21:20:33.0261683Z E       0030  20 00 5B 72 00 00 74 65 73 74 73 2E 72 6F 75 74   .[r..tests.rout
2022-10-18T21:20:33.0265370Z E       0040  65 2E 74 65 73 74 5F 73 74 61 74 69 63 5F 72 6F  e.test_static_ro
2022-10-18T21:20:33.0268620Z E       0050  75 74 65 20 74 65 73 74 73 2E 72 6F 75 74 65 2E  ute tests.route.
2022-10-18T21:20:33.0271679Z E       0060  74 65 73 74                                      test
2022-10-18T21:20:33.0274909Z E       ==============================
2022-10-18T21:20:33.0276035Z 
2022-10-18T21:20:33.0280405Z msg        = 'Received expected packet on port 48 for device 0, but it should have arrived on one of these ports: [40, 38, 43].\n==...65 2E  ute tests.route.\n0060  74 65 73 74                                      test\n==============================\n'
2022-10-18T21:20:33.0284940Z self       = <tests.common.plugins.ptfadapter.ptfadapter.PtfTestAdapter testMethod=runTest>
2022-10-18T21:20:33.0286344Z 
2022-10-18T21:20:33.0288991Z /usr/lib/python2.7/unittest/case.py:410: AssertionError

Steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Describe the results you expected:

Additional information you deem important:

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions