Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable test_normal_op config reload Tests #6227

Merged
merged 4 commits into from
Sep 7, 2022

Conversation

zjswhhh
Copy link
Contributor

@zjswhhh zjswhhh commented Aug 26, 2022

Description of PR

Summary:
Fixes # (issue)
This PR is to enable config reload tests for active-active ports.

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

Approach

What is the motivation for this PR?

To cover more test scenario for active-active ports.

How did you do it?

1. Add option to config back to auto for toggle_ports, to avoid the time gap between toggle active and toggle auto introduced by yield. So when test happen, both ToRs should be in auto mode.
2. Add new fixture toggle_auto_all_ports_both_tors.
3. For upstream io, dest_mac is vlan mac, so before switchPeerForwardingState happens, disruption is expected. Hence, added delay=MUX_SIM_ALLOWED_DISRUPTION_SEC.

How did you verify/test it?

  1. Existing tests for active-active that use toggle_active_all_ports_both_tors all passed, no regression introduced.

  2. Config reload tests having consistent 133s disruption. Created issue: NIC simulator not receiving SetAdminForwardingPortState request for 2 min after peer config reload sonic-utilities#2485

    Issue should have been addressed in [ycabled] fix insert events from xcvrd;cleanup some mux toggle logic sonic-platform-daemons#287

Any platform specific information?

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

Documentation

@yejianquan
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zjswhhh zjswhhh marked this pull request as ready for review September 2, 2022 00:47
@zjswhhh
Copy link
Contributor Author

zjswhhh commented Sep 2, 2022

Issue should have been addressed in sonic-net/sonic-platform-daemons#287

@zjswhhh zjswhhh requested a review from lolyu September 2, 2022 01:52
@lgtm-com
Copy link

lgtm-com bot commented Sep 7, 2022

This pull request fixes 1 alert when merging e4999e7 into 4beaffb - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@zjswhhh zjswhhh merged commit c632821 into sonic-net:master Sep 7, 2022
@zjswhhh zjswhhh deleted the test_config_reload branch September 7, 2022 17:44
Azarack pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 17, 2022
Description of PR
Summary:
Fixes # (issue)
This PR is to enable config reload tests for active-active ports.

sign-off: Jing Zhang zhangjing@microsoft.com

Type of change
 Test case(new/improvement)

Approach
What is the motivation for this PR?
To cover more test scenario for active-active ports.
allen-xf pushed a commit to allen-xf/sonic-mgmt that referenced this pull request Oct 28, 2022
Description of PR
Summary:
Fixes # (issue)
This PR is to enable config reload tests for active-active ports.

sign-off: Jing Zhang zhangjing@microsoft.com

Type of change
 Test case(new/improvement)

Approach
What is the motivation for this PR?
To cover more test scenario for active-active ports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants