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

[202405] Stabilize test_cacl cases #15299

Merged

Conversation

JibinBao
Copy link
Contributor

Description of PR

After rollback_or_reload the config, the case check if the current iptable rules equal to the original iptale rules directly. Sometimes, the iptable rules are not ready completely, so case will fail due to missing some iptable rules. Therefore, update the code to use retry mechanism to check if the current iptable rules are equal to the original ones.

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?

Stabilize test_cacl cases

How did you do it?

Update the code to use retry mechanism to check if the current iptable rules are equal to the original ones.

How did you verify/test it?

Run test_cacl 20 times

Any platform specific information?

Any

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

Documentation

* Stabilize test_cacl_tc1_acl_table_suite

when rollback_or_reload the config,  we are not sure how long the iptable rule is ready, so use retry mechanism to check if the current iptable rule are equal to the original ones

* update the retry time
@JibinBao JibinBao mentioned this pull request Oct 31, 2024
8 tasks
@JibinBao
Copy link
Contributor Author

Cherry-pick #14999

@bingwang-ms bingwang-ms requested a review from wen587 November 6, 2024 21:47
@bingwang-ms bingwang-ms merged commit 45db1e5 into sonic-net:202405 Nov 6, 2024
13 checks passed
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.

2 participants