-
Notifications
You must be signed in to change notification settings - Fork 669
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
[GCU or caclmgrd] GCU CACL update might broke caclmgrd #2049
Comments
ran the script in the description, found the error happened on the first patch step:
|
From the logs
It seems PRIORITY is required. |
from caclmgr:
Why caclmgr crashes?It crashes because during the update was divided into smaller steps, the first step was adding the Why caclmgr only crashes after a lot of tries, and does not crash immediately?Because caclmgr waits for 0.5s after each update for other updates. During this time we usually manage to also push |
…ANE ACLs (#10248) #### Why I did it Fixes sonic-net/sonic-utilities#2049 from caclmgr: - PRIORITY is a required field [code](https://github.com/Azure/sonic-buildimage/blob/3fa18d18d4c06fe38164ebfefdc3187820fc7496/src/sonic-host-services/scripts/caclmgrd#L548) - PACKET_ACTION is a required field [code](https://github.com/Azure/sonic-buildimage/blob/3fa18d18d4c06fe38164ebfefdc3187820fc7496/src/sonic-host-services/scripts/caclmgrd#L581) I think PRIORITY is a required field for ACLs not only CTRLPLANE ACLs #### How I did it Check code. #### How to verify it Unit-test #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 #### Description for the changelog <!-- Write a short (one line) summary that describes the changes in this pull request for inclusion in the changelog: --> #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration. --> #### A picture of a cute animal (not mandatory but encouraged)
Description
Case 1(described below): During continuous cacl test, caclmgrd may be broken and iptabels won't update.
Case 2(during kvm test): There is a possibility that iptables is not immediately updated cuz caclmgrd
UPDATE_DELAY_SECS=0.5
.Refer test here: https://github.com/Azure/sonic-mgmt/blob/master/tests/generic_config_updater/test_cacl.py#L467
It will have a chance to fail which is already found in kvm nightly test. It check immediately after
apply-patch
success, while caclmgrd might upadte iptables in 0.5 seconds.Example syslog:
Two thoughts I am thinking:
Steps to reproduce the issue
Describe the results you received
Check syslog. And iptables won't be updated due to caclmgrd's failure
Describe the results you expected
Should not broke caclmgrd.
Additional information you deem important (e.g. issue happens only occasionally)
Output of
show version
The text was updated successfully, but these errors were encountered: