Skip to content

Update icmp_responder to only respond only linkmgrd requests#9089

Merged
zjswhhh merged 1 commit intosonic-net:masterfrom
zjswhhh:icmp_reponder_public_master
Jul 25, 2023
Merged

Update icmp_responder to only respond only linkmgrd requests#9089
zjswhhh merged 1 commit intosonic-net:masterfrom
zjswhhh:icmp_reponder_public_master

Conversation

@zjswhhh
Copy link
Copy Markdown
Contributor

@zjswhhh zjswhhh commented Jul 21, 2023

Description of PR

Summary:
Fixes # (issue)

To make sure icmp_responder only replies ICMP requests sent by linkmgrd, So

  1. it won't reply packets from other tests.
  2. to be consistent with production behavior

sign-off: Jing Zhang zhangjing@microsoft.com

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Run test_normal_op case.

- generated xml file: /var/src/sonic-mgmt-int/tests/logs/dualtor_io/test_normal_op.py::test_normal_op_upstream.xml -
---------------------------- live log sessionfinish ----------------------------
21:39:05 __init__.pytest_terminal_summary         L0064 INFO   | Can not get Allure report URL. Please check logs
=========================== short test summary info ============================
SKIPPED [1] /var/src/sonic-mgmt-int/tests/common/dualtor/dual_tor_common.py:54: Skip as no mux ports of 'active-active' cable type
==================== 1 passed, 1 skipped in 643.57 seconds =====================

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@zjswhhh zjswhhh requested review from bingwang-ms and lolyu July 21, 2023 23:13
@zjswhhh zjswhhh marked this pull request as ready for review July 24, 2023 21:40
@zjswhhh zjswhhh requested a review from yxieca July 24, 2023 21:40
Copy link
Copy Markdown
Collaborator

@lolyu lolyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix

@zjswhhh zjswhhh merged commit 44ee0ca into sonic-net:master Jul 25, 2023
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Aug 4, 2023
…-net#9089)

Summary:
Fixes # (issue)

To make sure `icmp_responder` only replies ICMP requests sent by linkmgrd, So 

1. it won't reply packets from other tests.
2. to be consistent with production behavior

sign-off: Jing Zhang zhangjing@microsoft.com
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202205: #9293

mssonicbld pushed a commit that referenced this pull request Aug 4, 2023
Summary:
Fixes # (issue)

To make sure `icmp_responder` only replies ICMP requests sent by linkmgrd, So 

1. it won't reply packets from other tests.
2. to be consistent with production behavior

sign-off: Jing Zhang zhangjing@microsoft.com
vaibhavhd added a commit that referenced this pull request Aug 23, 2023
…unt for sent and rcvd packets (#9599)

Summary: Currently dual tor warmboot fails w/ control plane not ready for warmboot. This is because the test expects 2 responses for every ping packet sent to Loopback. This expectation is not correct after PR #9089 is merged.

Update the testcase to now only expect 1 icmp response for every icmp packet sent to Loopback0.
Updated the test to remove the earlier expectation of removing the packets that were sent by icmp_responder.

This essentially reverts part of older PR: #6968

How did you verify/test it?
Tested on a physical testbed and this test issue is not seen.
The test is now able to see the responses of ping packets
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Aug 29, 2023
…unt for sent and rcvd packets (sonic-net#9599)

Summary: Currently dual tor warmboot fails w/ control plane not ready for warmboot. This is because the test expects 2 responses for every ping packet sent to Loopback. This expectation is not correct after PR sonic-net#9089 is merged.

Update the testcase to now only expect 1 icmp response for every icmp packet sent to Loopback0.
Updated the test to remove the earlier expectation of removing the packets that were sent by icmp_responder.

This essentially reverts part of older PR: sonic-net#6968

How did you verify/test it?
Tested on a physical testbed and this test issue is not seen.
The test is now able to see the responses of ping packets
mssonicbld pushed a commit that referenced this pull request Aug 29, 2023
…unt for sent and rcvd packets (#9599)

Summary: Currently dual tor warmboot fails w/ control plane not ready for warmboot. This is because the test expects 2 responses for every ping packet sent to Loopback. This expectation is not correct after PR #9089 is merged.

Update the testcase to now only expect 1 icmp response for every icmp packet sent to Loopback0.
Updated the test to remove the earlier expectation of removing the packets that were sent by icmp_responder.

This essentially reverts part of older PR: #6968

How did you verify/test it?
Tested on a physical testbed and this test issue is not seen.
The test is now able to see the responses of ping packets
zjswhhh pushed a commit to zjswhhh/sonic-mgmt that referenced this pull request Sep 20, 2023
…unt for sent and rcvd packets (sonic-net#9599)

Summary: Currently dual tor warmboot fails w/ control plane not ready for warmboot. This is because the test expects 2 responses for every ping packet sent to Loopback. This expectation is not correct after PR sonic-net#9089 is merged.

Update the testcase to now only expect 1 icmp response for every icmp packet sent to Loopback0.
Updated the test to remove the earlier expectation of removing the packets that were sent by icmp_responder.

This essentially reverts part of older PR: sonic-net#6968

How did you verify/test it?
Tested on a physical testbed and this test issue is not seen.
The test is now able to see the responses of ping packets
wangxin pushed a commit that referenced this pull request Sep 28, 2023
…unt for sent and rcvd packets (#9599) (#10068)

Raising PR for cherry-pick conflict:
225e257 [advanced-reboot][dualtor] Update Loopback0 ping test: expect same count for sent and rcvd packets (#9599)

Summary: Currently dual tor warmboot fails w/ control plane not ready for warmboot. This is because the test expects 2 responses for every ping packet sent to Loopback. This expectation is not correct after PR #9089 is merged.

Update the testcase to now only expect 1 icmp response for every icmp packet sent to Loopback0.
Updated the test to remove the earlier expectation of removing the packets that were sent by icmp_responder.

This essentially reverts part of older PR: #6968

How did you verify/test it?
Tested on a physical testbed and this test issue is not seen.
The test is now able to see the responses of ping packets

Co-authored-by: Vaibhav Hemant Dixit <vaibhav.dixit@microsoft.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…-net#9089)

Summary:
Fixes # (issue)

To make sure `icmp_responder` only replies ICMP requests sent by linkmgrd, So 

1. it won't reply packets from other tests.
2. to be consistent with production behavior

sign-off: Jing Zhang zhangjing@microsoft.com
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…unt for sent and rcvd packets (sonic-net#9599)

Summary: Currently dual tor warmboot fails w/ control plane not ready for warmboot. This is because the test expects 2 responses for every ping packet sent to Loopback. This expectation is not correct after PR sonic-net#9089 is merged.

Update the testcase to now only expect 1 icmp response for every icmp packet sent to Loopback0.
Updated the test to remove the earlier expectation of removing the packets that were sent by icmp_responder.

This essentially reverts part of older PR: sonic-net#6968

How did you verify/test it?
Tested on a physical testbed and this test issue is not seen.
The test is now able to see the responses of ping packets
@zjswhhh zjswhhh deleted the icmp_reponder_public_master branch July 31, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants