-
Notifications
You must be signed in to change notification settings - Fork 648
[DPB]: Fix stale queue counter maps in COUNTERS_DB after port breakout #3982
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
base: master
Are you sure you want to change the base?
Conversation
…kout Fix cleans up COUNTERS_*_NAME_MAP of the port during deinit of the port and regenerate the NAME_MAP's with new OID's during port init if queue flex counters are already enabled. Signed-off-by: Ravi Minnikanti <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| { | ||
| SWSS_LOG_ENTER(); | ||
|
|
||
| if (gHFTOrch) |
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.
@Pterosaur can you please review?
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Pterosaur
left a comment
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.
@kperumalbfn Could you please help to review this PR?
If we merge this PR, I will close my PR: #3967 that is duplicated.
| bool queueFcEnabled = flex_counters_orch->getQueueCountersState() || | ||
| flex_counters_orch->getQueueWatermarkCountersState() || | ||
| flex_counters_orch->getWredQueueCountersState(); | ||
| if (queueFcEnabled && !p.m_queue_ids.empty()) |
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.
@rminnikanti could you please check the DPB sonic-mgmt tests? If this is not covered, could you please add them?
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.
@kperumalbfn I don't see DPB test component in PTF. As far as I understand, DPB testing in sonic-mgmt can be performed on ports that are not part of the topology.
The mock_tests included in this PR verifies the regeneration of the NAME_MAP's. I’ve also validated this behavior on a device and shared the redis-dump output in the PR description for reference.
kperumalbfn
left a comment
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.
@Pterosaur could you close the PR - #3967
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-swss |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Fixes #3983
What I did
Added cleanup of COUNTERS_*_NAME_MAP entries for a port during its deinit phase, and regenerated the NAME_MAP tables with fresh OIDs during port init when queue flex counters are already enabled.
Why I did it
After dynamic port breakout of a port, queue name map tables in the COUNTERS_DB table are not regenerated leaving stale entries resulting in CLI crash
How I verified it
Details if related