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:10944] Update the pfcwd warm reboot test for "create_only_config_db_buffers" #11074

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Summary:
The test_pfcwd_warm_reboot.py no_storm and async_storm test cases sometimes fails on MSFT SKU setups due to the change in PR:

With this change, all buffer counters (which are read from SAI) will be created after warm reboot as soon as possible, regardless of the CONFIG_DB buffers configuration. It will take much longer time to complete the counter creation
And the pfcwd is only available after all the counters are created, when the test sends pfc storm after warm-reboot, the counters could have not been completely created, so no storm is detected by the pfcwd. This causes the test to fail on the platforms with MSFT SKUs.
We need to add some delay after warm-reboot if "create_only_config_db_buffers" is not enabled.

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205
  • 202305

Approach

What is the motivation for this PR?

Update the pfcwd warm reboot test for "create_only_config_db_buffers"

How did you do it?

  1. Add "wait_warmboot_finalizer=True" to make sure the "detect" happens after warm-reboot is completed.
  2. Delay another 20s for the "detect" after warm-reboot if "create_only_config_db_buffers" is not "true" in running config_db. There is no good indicator for us, so the delay is static.

How did you verify/test it?

Run the test in regression on all platforms.

Any platform specific information?

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

Documentation

…sonic-net#10944)

Summary:
The test_pfcwd_warm_reboot.py no_storm and async_storm test cases sometimes fails on MSFT SKU setups due to the change in PR:

[buffers] Add handler for the 'create_only_config_db_buffers' configuration knob sonic-swss#2883

[buffers] Add 'create_only_config_db_buffers.json' file for the Mellanox devices (not MSFT SKU) sonic-buildimage#16233.

With this change, all buffer counters (which are read from SAI) will be created after warm reboot as soon as possible, regardless of the CONFIG_DB buffers configuration. It will take much longer time to complete the counter creation
And the pfcwd is only available after all the counters are created, when the test sends pfc storm after warm-reboot, the counters could have not been completely created, so no storm is detected by the pfcwd. This causes the test to fail on the platforms with MSFT SKUs.
We need to add some delay after warm-reboot if "create_only_config_db_buffers" is not enabled.
@mssonicbld
Copy link
Collaborator Author

Original PR: #10944

@mssonicbld mssonicbld merged commit 639c06b into sonic-net:202305 Dec 18, 2023
12 checks passed
@mssonicbld mssonicbld deleted the cherry/202305/10944 branch February 4, 2024 09:30
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