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:15331] [202405] Fix intermittent issue on reboot in test_lldp_syncd #15535

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

At the start of test_lldp_syncd.py::test_lldp_entry_table_after_reboot the test polls and checks that LLDP_ENTRY_TABLE keys match show lldp table output.

The eth0 port is added last so sometimes the entry keys will have it but the lldp table output will not. From debugging, this is the case since the end of the previous test (I put a check on the keys vs lldp table output and observed the missing eth0 at the end of test_lldp_syncd.py::test_lldp_entry_table_after_lldp_restart). From our test results, this issue hits both fixed and modular, but appears to be more easily reproduced on fixed systems.

Added a wait_until at the start of test_lldp_entry_table_after_reboot to wait until the LLDP_ENTRY_TABLE keys match show lldp table output before the tests starts to reboot.

Summary:
Fixes # (issue)

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?

Observed another intermittent issue in test_lldp_syncd in addition to the issues fixed by #15258.

How did you do it?

How did you verify/test it?

Verified the test on one of our fixed system by running test 50 times with this change and PR#15258 to ensure all the intermittent fails are gone.

Any platform specific information?

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

Documentation

At the start of test_lldp_syncd.py::test_lldp_entry_table_after_reboot
the test polls and checks that LLDP_ENTRY_TABLE keys match show lldp table output.

The eth0 port is added last so sometimes the entry keys will have it but the
lldp table output will not.  From debugging, this is the case since the
end of the previous test (I put a check on the keys vs lldp table output
and observed the missing eth0 at the end of
test_lldp_syncd.py::test_lldp_entry_table_after_lldp_restart)

Added a wait_until at the start of test_lldp_entry_table_after_reboot to
wait until the LLDP_ENTRY_TABLE keys match show lldp table output before
the tests starts to reboot.
@mssonicbld
Copy link
Collaborator Author

Original PR: #15331

@mssonicbld mssonicbld merged commit c20855e into sonic-net:202405 Nov 13, 2024
13 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