Skip to content

[sflow] testDelAgent failed  #10291

@nhe-NV

Description

@nhe-NV

Description
The test failed even after the #9766 is merged

Steps to reproduce the issue:

  1. Run the sflow test testDelAgent

Describe the results you received:
{"changed": true, "cmd": "//env-python3/bin/ptf --test-dir ptftests/py3 sflow_test --platform-dir ptftests --platform remote -t 'testbed_type='"'"'t0'"'"';router_mac='"'"'9c:05:91:9b:56:00'"'"';dst_port=3;agent_id='"'"'10.245.20.41'"'"';sflow_ports_file='"'"'/tmp/sflow_ports.json'"'"';polling_int=20;active_collectors="['"'"'collector0'"'"','"'"'collector1'"'"']"' --relax --debug info --log-file /tmp/TestAgentId.testDelAgent.log --socket-recv-size 16384", "delta": "0:00:30.819610", "end": "2023-10-10 23:56:54.898380", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2023-10-10 23:56:24.078770", "stderr": "//env-python3/bin/ptf:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses\n import imp\nsflow_test.SflowTest ... FAIL\n\n======================================================================\nFAIL: sflow_test.SflowTest\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File "ptftests/py3/sflow_test.py", line 310, in runTest\n 'collector0', self.poll_tests)\n File "ptftests/py3/sflow_test.py", line 189, in packet_analyzer\n data, collector, self.polling_int, port_sample)\n File "ptftests/py3/sflow_test.py", line 211, in analyze_counter_sample\n % (self.agent_id, rcvd_agent_id))\nAssertionError: False is not true : Agent id in Sampled packet is not expected . Expected : 10.245.20.41 , received : 20.1.1.1\n\n----------------------------------------------------------------------\nRan 1 test in 29.349s\n\nFAILED (failures=1)", "stderr_lines": ["//env-python3/bin/ptf:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses", " import imp", "sflow_test.SflowTest ... FAIL", "", "======================================================================", "FAIL: sflow_test.SflowTest", "----------------------------------------------------------------------", "Traceback (most recent call last):", " File "ptftests/py3/sflow_test.py", line 310, in runTest", " 'collector0', self.poll_tests)", " File "ptftests/py3/sflow_test.py", line 189, in packet_analyzer", " data, collector, self.polling_int, port_sample)", " File "ptftests/py3/sflow_test.py", line 211, in analyze_counter_sample", " % (self.agent_id, rcvd_agent_id))", "AssertionError: False is not true : Agent id in Sampled packet is not expected . Expected : 10.245.20.41 , received : 20.1.1.1", "", "----------------------------------------------------------------------", "Ran 1 test in 29.349s", "", "FAILED (failures=1)"], "stdout": "Using packet manipulation module: ptf.packet_scapy\n\n*************************************\nATTENTION: SOME TESTS DID NOT PASS!!!\n\nThe following tests failed:\nSflowTest\n\n******************************************", "stdout_lines": ["Using packet manipulation module: ptf.packet_scapy", "", "", "ATTENTION: SOME TESTS DID NOT PASS!!!", "", "The following tests failed:", "SflowTest", "", ""]}

Describe the results you expected:

Additional information you deem important:

**Output of `show version`:**

```

202305_RC.7-c8447efe1_Internal
```

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions