Skip to content
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

How to use saiplayer to verify consistency between ASIC_DB and ASIC. #1405

Open
vaibhavhd opened this issue Jul 24, 2024 · 3 comments
Open

Comments

@vaibhavhd
Copy link
Contributor

What I want to do: to verify consistency between ASIC_DB and ASIC.

Why?: We have had some issues recently where what SONiC wants to be on ASIC is not present on ASIC. Hence ASIC_DB data != ASIC data. Particularly, an issue was seen due to BRCM bug where ECN marking was enabled on ASIC_DB, but was disabled on ASIC.
This is BRCM bug, but we want to include a new step (consistency checker for diff in ASIC vs ASIC_DB) in our sonic-mgmt tests.

So this is what I am hoping to do:
After warm-reboot, run through ASIC_DB entries.
For every entry in ASIC_DB, do SAI GET operation (on the fly)
Check if ASIC_DB entry attributes are not matching SAI response.
My plan to do GET operations is via saiplayer. I am trying to replay a part of sairedis logs, but I keep getting this error. translate_local_to_redis: failed to translate local RID'

I am positive that the local RID exists in the DB. I get this error for all the different kinds of objects I tried. For eg., if I have just one entry (as below) on rec, it still fails with above error:

2024-07-23.18:05:06.166381|g|SAI_OBJECT_TYPE_PORT:oid:0x1000000000002|SAI_PORT_ATTR_HW_LANE_LIST=8:0,0,0,0,0,0,0,0
@vaibhavhd
Copy link
Contributor Author

@kcudnik, can you help?

@kcudnik
Copy link
Collaborator

kcudnik commented Jul 25, 2024

You have option to call inspect ASIC, look throu the code, since this is not my code you can ask author

@kcudnik
Copy link
Collaborator

kcudnik commented Oct 2, 2024

@vaibhavhd still unsolved ? there should be no scenario where ASIC_DB != ASIC data, we have discovery and every operation is recorded, not sure how you landed on this state, and how did you trigger that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants