Description
In test_stress_acl.py, we will create an acl table, and continuously add/delete 100 acl rules. When running test_stress_acl.py on Broadcom platforms, will get sai error:
ERR syncd#syncd: [none] SAI_API_ACL:brcm_sai_get_acl_counter_attribute:5682 Invalid acl table.
However, acl table was successfully created at the beginning, the error message occurs while adding/deleting acl rules.
Steps to reproduce the issue:
Run test_stress_acl.py, usually I could reproduce in debug level (--completeness_level debug)
Will get error message in 4th/5th add/delete round
Describe the results you received:
Will get sai error message: ERR syncd#syncd: [none] SAI_API_ACL:brcm_sai_get_acl_counter_attribute:5682 Invalid acl table.
When doing further debug, take a round of test as example, I found that add: Successfully created ACL rule occurs 500 times, but remove: Successfully deleted ACL rule only occurs 400 times, and I found message like removeAclRule: ACL rule [ RULE_*] in table [STRESS_ACL] already deleted occurs 100 times. Seems that didn't delete correctly.
I added show acl rule in bash file after every add/delete command, could show 100 rules after the last add, but bash file stopped in the last delete.
Describe the results you expected:
Successfully finish this testcase and no error messages.
It looks like a timing issue. The counter thread is attempting to read a counter of a rule or table that is being deleted. Can you please check if the ACL is still working?
Description In test_stress_acl.py, we will create an acl table, and continuously add/delete 100 acl rules. When running test_stress_acl.py on Broadcom platforms, will get sai error:
ERR syncd#syncd: [none] SAI_API_ACL:brcm_sai_get_acl_counter_attribute:5682 Invalid acl table.
However, acl table was successfully created at the beginning, the error message occurs while adding/deleting acl rules.Steps to reproduce the issue:
Describe the results you received: Will get sai error message:
ERR syncd#syncd: [none] SAI_API_ACL:brcm_sai_get_acl_counter_attribute:5682 Invalid acl table.
When doing further debug, take a round of test as example, I found thatadd: Successfully created ACL rule
occurs 500 times, butremove: Successfully deleted ACL rule
only occurs 400 times, and I found message likeremoveAclRule: ACL rule [ RULE_*] in table [STRESS_ACL] already deleted
occurs 100 times. Seems that didn't delete correctly. I addedshow acl rule
in bash file after every add/delete command, could show 100 rules after the last add, but bash file stopped in the last delete. Describe the results you expected: Successfully finish this testcase and no error messages.Additional information you deem important: