-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fail on ACL table creation #9406
Comments
@stepanblyschak to take a look |
Ack. Will take a look shortly. |
Hi, can I know on which platform you saw this error? I verified on a broadcom platform, but could't repro the issue
The image I was running is
because I can't find a successful build of 6f8dbac. |
@bingwang-ms I don't think 202106 has these changes. Could you check in master? |
I'm able to repro this issue on a barefoot device.
The |
@bingwang-ms @bratashX Default ACL tables do not have action list, this is not changed comparing to previous releases. There is a new check added that if "is_action_list_mandatory" is true it is required to pass action list. It looks like vendor SAI returns "is_action_list_mandatory" true while it is not required as I assume in previous release the ACL table creation is working for you. It looks like vendor SAI issue. |
@stepanblyschak , as you've mentioned, SONiC behavior has changed and it's not obvious (even HLD mentioned this). To keep previous behavior, shouldn't we warn but not fail? Thanks. |
@akokhan The HLD mentions this (https://github.com/stepanblyschak/SONiC/blob/acl-table-type/doc/acl/ACL-Table-Type-HLD.md#state-db):
AFAIK, capability checks are not warnings in SONiC. I see few options:
|
@stepanblyschak , thank you for the great summary. I believe the combination of 1 and 3 would the best option. IMO, we should not fail until it's really necessary. In this case it's probably ACL table create SAI call. |
Thanks @stepanblyschak and @akokhan for the great summary. I also prefer option 1. Relaxing the condition may be misleading for ACL table type for which action list is mandatory. |
Issue resolved |
Hi |
Description
Creation ACL table failed because action_list for this table is empty.
Due to sonic-net/sonic-swss#1982, action list will be used from
ACL_TABLE_TYPE
objects.Looks like in defaults
ACL_TABLE_TYPE
are absent action lists: https://github.com/Azure/sonic-swss/blob/bb0733aa67ffc4e430e70bcf2db2dc6316172b32/orchagent/aclorch.cpp#L2752-L2768.Steps to reproduce the issue:
config acl add table DATA_INGRESS_IPV4_TEST L3 -s ingress -p Ethernet8
Describe the results you received:
error appears on orchagent validation when create ACL table from CLI
Describe the results you expected:
no errors in logs appears
Output of
show version
:The text was updated successfully, but these errors were encountered: