Add multi ASIC support for syslog rate limit feature#3235
Add multi ASIC support for syslog rate limit feature#3235saiarcot895 merged 2 commits intosonic-net:masterfrom
Conversation
config/syslog.py
Outdated
| if feature_config[syslog_common.FEATURE_HAS_PER_ASIC_SCOPE].lower() == 'true': | ||
| asic_count = multi_asic.get_num_asics() | ||
| for i in range(asic_count): | ||
| feature_list.append(f'{service_name}{i}') |
There was a problem hiding this comment.
Implement “get service name by namespace” in multi_asic.py
6296c7b to
64c1bfd
Compare
64c1bfd to
7c48ef0
Compare
|
Looks like there are some test failures related to the changes here. Also, I tested the current changes on a multi-ASIC KVM, and while it looks like containercfgd in a multi-instance container is getting the notification for the changed rate limit attributes, those changes aren't propagating into the rsyslog.conf file. |
Hi @saiarcot895 , there is a build dependency sonic-net/sonic-buildimage#18459, test will pass after that PR merging. I have tested the change on KVM, no issue found. If you see an issue, could you please provide your test step so that I can have a try? BTW, please make sure you have all 3 PRs in your test image: |
|
Yes, I pulled in all 3 PRs in my test image, built a multi-ASIC image, loaded it, enabled the rate-limit feature, and changed the rate limiting: Snippet from syslog: |
|
Hi @saiarcot895 , I have fixed it. The fix is in PR sonic-net/sonic-buildimage#18438 |
|
/azpw run Azure.sonic-utilities |
|
/AzurePipelines run Azure.sonic-utilities |
|
Azure Pipelines successfully started running 1 pipeline(s). |
liat-grozovik
left a comment
There was a problem hiding this comment.
i see new CLI commands added , should you add them to the command line reference md file as well?
|
/azpw run Azure.sonic-utilities |
|
/AzurePipelines run Azure.sonic-utilities |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Will update it |
|
/azpw run Azure.sonic-utilities |
|
/AzurePipelines run Azure.sonic-utilities |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@saiarcot895 @keboliu could you please help to review? |
* Add multi ASIC support for syslog rate limit feature * Update command ref
|
Cherry-pick PR: #3275 |
* Add multi ASIC support for syslog rate limit feature * Update command ref
* Add multi ASIC support for syslog rate limit feature * Update command ref
Build dependency sonic-net/sonic-buildimage#18459
What I did
Add multi ASIC support for syslog rate limit feature
How I did it
show syslog rate-limit-containeradd a new option namespaceconfig syslog rate-limit-containeradd a new option namespaceconfig syslog rate-limit-featureenable add a new option namespace and a new argument service_nameconfig syslog rate-limit-featuredisable add a new option namespace and a new argument service_nameHow to verify it
Manual test
Previous command output (if the output of a command-line utility has changed)
show syslog rate-limit-container help:
config syslog rate-limit-container help
config syslog rate-limit-feature enable help
config syslog rate-limit-feature disable help
New command output (if the output of a command-line utility has changed)
show syslog rate-limit-container help:
[new] show all config in multi ASIC platforms:
[new] show global namespace configuration:
[new] show configuration for a given namespace:
config syslog rate-limit-container help:
sudo config syslog rate-limit-feature enable help
sudo config syslog rate-limit-feature disable help