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

[action] [PR:14089] Make oscillation fix persistent across reboots and config reload #14486

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Summary: Make oscillation fix persistent across reboots.
Fixes #226

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

#13004, introduces a fix to disable oscillations at the session level for dualtor.

The fix however is not persistent across reboots and config reload.

During the sanity checks that run in the beginning of the tests, https://github.com/sonic-net/sonic-mgmt/blob/master/tests/conftest.py#L77, if it is found that any interfaces or BGP sessions is/are down (which could be due to a test that run before the current test and contaminated the testbed), a config_reload and then further a reboot is issued, which clears off this config to disable oscillation, resulting in a flakiness when the test runs or a sanity check failure again.

How did you do it?

The proposed fix is to do a config save -y of this config so as to make it persistent across reboots and config reload.

How did you verify/test it?

Ran the tests that were flaky due to oscillations.
a) acl/test_acl.py
b) drop_packets/drop_packets.py
c) fib/test_fib.py

Any platform specific information?

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

Documentation

…ic-net#14089)

What is the motivation for this PR?
sonic-net#13004, introduces a fix to disable oscillations at the session level for dualtor.

The fix however is not persistent across reboots and config reload.

During the sanity checks that run in the beginning of the tests, https://github.com/sonic-net/sonic-mgmt/blob/master/tests/conftest.py#L77, if it is found that any interfaces or BGP sessions is/are down (which could be due to a test that run before the current test and contaminated the testbed), a config_reload and then further a reboot is issued, which clears off this config to disable oscillation, resulting in a flakiness when the test runs or a sanity check failure again.

How did you do it?
The proposed fix is to do a config save -y of this config so as to make it persistent across reboots and config reload.

How did you verify/test it?
Ran the tests that were flaky due to oscillations.
a) acl/test_acl.py
b) drop_packets/drop_packets.py
c) fib/test_fib.py

Any platform specific information?
@mssonicbld
Copy link
Collaborator Author

Original PR: #14089

@mssonicbld mssonicbld merged commit 35d1688 into sonic-net:202311 Sep 10, 2024
12 checks passed
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.

2 participants