-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
sonic-CLI 'show priority-group drop counters' crashes with key-error #19779
Comments
i will debug |
@saksarav-nokia - please provide as an updated. thanks! |
This seems to be very fundamental issue when the user issues sonic-clear and then show for the commands in multi-asic switch. If you issue sonic-clear for asic0, then asic1 and then do show for asic0 OR son-clear for asic1, sonic-clear for asic0 and then do show for asic1, you will see this issue. The reason is that the soni-clear command creates the files in /tmp/cache/pg-drop each time you run clear command and overwrites the asic 0's, when you clear for asic 0 first and then asic 0 (or asic1 file depending on the order you issue sonic-clear). Then when you do show for asic0, it reads this file created for asic 1 and it does look up for asic 0 pg oid which does n't exist in the file and script prints the error. |
@arlakshm @judyjoseph @vmittal-msft for viz |
If we add the multi-asic support to sonic-clear command for pg drop counter, then the cache file can be created with prefixing ns and show command can read the corresponding history from cache. |
@kenneth-arista can you/team please check this ? This is related to multi asic support for Qos commands. |
We are looking. Will update soon. |
The solution is to not use The reason is that |
Tested with 2205 build and I saw that there is no support for namespace in -show priority-group - CLI. Please let me know if I am missing something here. Logs:
|
202205 does not support the mult-asic version of this command. sonic-net/sonic-utilities#3058 merged to master. Please test there. |
Please close this issue as I don't have permission to do so. |
@vmittal-msft , @kenneth-arista - I see that following pull-request is tagged for 202405 but seems not merged yet. I tried this on 202405 and still seeing the issue. |
Description
sonic-CLI - show priority-group drop counters - crashes with key-error especially, after clearing the CLI counter.
@saksarav-nokia
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: