-
Notifications
You must be signed in to change notification settings - Fork 666
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
Fix multi-asic behaviour for pg-drop #3058
Conversation
6949f0c
to
b193e7a
Compare
@bktsim-arista Few things -
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check comments
For questions 1 & 2: This PR only adds multi-asic support for |
Yes, confirmed that the changes work on a pizza box as well. |
If For example,
|
2ee7ae8
to
3d2aea0
Compare
For simplicity the |
@arlakshm please review |
scripts/pg-drop
Outdated
def __init__(self, namespace): | ||
self.namespace = namespace | ||
self.ns_list = multi_asic.get_namespace_list(namespace) | ||
self.configdb = ConfigDBConnector(namespace=namespace, use_unix_socket_path=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not use unix_sockets everywhere as this will require users with elevated privilege to run this show command.
show priority-group drop is not behaving correctly on multi-asic devices, as the namespace option '-n' is not available and correct namespaces were not traversed to retrieve drop counters. This change fixes the multi-asic behaviour of this command.
3d2aea0
to
0c0b13c
Compare
@vmittal-msft , When will this get cherry-picked to 202405? |
@kenneth-arista @bktsim-arista Can you please raise a PR for 2020405 ? |
@bingwang-ms can we approve the back-port request? thanks. |
* Fixes multi-asic behaviour for pg-drop script. show priority-group drop is not behaving correctly on multi-asic devices, as the namespace option '-n' is not available and correct namespaces were not traversed to retrieve drop counters. This change fixes the multi-asic behaviour of this command. * add additional test and simplify branching Co-authored-by: Kenneth Cheung <[email protected]>
Cherry-pick PR to 202405: #3624 |
* Fixes multi-asic behaviour for pg-drop script. show priority-group drop is not behaving correctly on multi-asic devices, as the namespace option '-n' is not available and correct namespaces were not traversed to retrieve drop counters. This change fixes the multi-asic behaviour of this command. * add additional test and simplify branching Co-authored-by: Kenneth Cheung <[email protected]>
What I did
show priority-group drop
is not behaving correctly on multi-asic devices, as the namespace option '-n' is not available and correct namespaces were not traversed to retrieve drop counters. This change fixes the multi-asic behaviour of this command and adds unit tests to ensure that the functionality is correct.This is a part of the set of changes being pushed for sonic-net/sonic-buildimage#15148
How I did it
Added multi-asic support and relevant unit tests for pg-drop script.
How to verify it
Run unit test, or
pg-drop -c show
with-n