Skip to content

Add data plane test in stress acl script#7549

Merged
xwjiang-ms merged 4 commits intosonic-net:masterfrom
xwjiang-ms:add_dataplane_test_in_stress_acl
Mar 2, 2023
Merged

Add data plane test in stress acl script#7549
xwjiang-ms merged 4 commits intosonic-net:masterfrom
xwjiang-ms:add_dataplane_test_in_stress_acl

Conversation

@xwjiang-ms
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Stress acl test will continuously add/delete acl rules by writing config db, but the action is asynchronous with asic, that may cause some timing issue like #7396

How did you do it?

The purpose of this testcase is to test stability when add/delete acl rules, not to test responding speed, so add data plane test in this case.
Data plane test will increase test time, so reduce loop times, will run confident in weekend nightly test.

How did you verify/test it?

Run tests

Any platform specific information?

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

Documentation

What is the motivation for this PR?
Stress acl test will continuously add/delete acl rules by writing config
db, but the action is asynchronous with asic, that may cause some timing
issue like sonic-net#7396

How did you do it?
The purpose of this testcase is to test stability when add/delete acl
rules, not to test responding speed, so add data plane test in this
case.
Data plane test will increase test time, so reduce loop times, will run
confident in weekend nightly test.

How did you verify/test it?
Run tests

Any platform specific information?
Supported testbed topology if it's a new test case?
@bingwang-ms
Copy link
Copy Markdown
Collaborator

The current testing logic is always add ACL rules, and then removing them all. Can we also add a scenario, where we delete some of the existing rules, and then append some rules? It's because we never clear all rules in production. We are always deleting/updating/appending. Thanks

@xwjiang-ms
Copy link
Copy Markdown
Contributor Author

The current testing logic is always add ACL rules, and then removing them all. Can we also add a scenario, where we delete some of the existing rules, and then append some rules? It's because we never clear all rules in production. We are always deleting/updating/appending. Thanks

@bingwang-ms Can't use "sonic-cfggen" to add json string, can only use json file, so delete a random acl rule, and add one behind previous rules.

@xwjiang-ms xwjiang-ms merged commit ca6658b into sonic-net:master Mar 2, 2023
@xwjiang-ms xwjiang-ms deleted the add_dataplane_test_in_stress_acl branch March 2, 2023 00:13
wangxin pushed a commit that referenced this pull request Mar 6, 2023
* Add data plane test in stress acl script

What is the motivation for this PR?
Stress acl test will continuously add/delete acl rules by writing config
db, but the action is asynchronous with asic, that may cause some timing
issue like #7396

How did you do it?
The purpose of this testcase is to test stability when add/delete acl
rules, not to test responding speed, so add data plane test in this
case.
Data plane test will increase test time, so reduce loop times, will run
confident in weekend nightly test.

How did you verify/test it?
Run tests

Any platform specific information?
Supported testbed topology if it's a new test case?
wangxin pushed a commit that referenced this pull request Mar 6, 2023
* Add data plane test in stress acl script

What is the motivation for this PR?
Stress acl test will continuously add/delete acl rules by writing config
db, but the action is asynchronous with asic, that may cause some timing
issue like #7396

How did you do it?
The purpose of this testcase is to test stability when add/delete acl
rules, not to test responding speed, so add data plane test in this
case.
Data plane test will increase test time, so reduce loop times, will run
confident in weekend nightly test.

How did you verify/test it?
Run tests

Any platform specific information?
Supported testbed topology if it's a new test case?
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.

3 participants