Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[show][platform] Revise chassis info fallback to only fall back on pmon crash #1751

Merged
merged 2 commits into from
Aug 19, 2021

Conversation

alexrallen
Copy link
Contributor

What I did

Changed the behavior of the get_chassis_info() function which is used by show version and show platform summary to report the serial / model / revision of the switch to only attempt to call the platform API if pmon completely failed to provision STATE_DB with CHASSIS_INFO

How I did it

Altered get_chassis_info() according to the above behavior. See changelog for details.

How to verify it

Verify show platform summary and show version correctly report chassis info.

Delete the CHASSIS_INFO table from STATE_DB

Verify show platform summary and show version still correctly report the info.

@dgsudharsan
Copy link
Collaborator

@sujinmkang Can you please review?

@sujinmkang
Copy link
Collaborator

@alexrallen and @dgsudharsan it looks ok to me but will wait for Dell to perform more verification and confirm the fix.

@dgsudharsan
Copy link
Collaborator

Required for 202106

judyjoseph pushed a commit that referenced this pull request Sep 14, 2021
…on crash (#1751)

What I did
Changed the behavior of the get_chassis_info() function which is used by show version and show platform summary to report the serial / model / revision of the switch to only attempt to call the platform API if pmon completely failed to provision STATE_DB with CHASSIS_INFO

How I did it
Altered get_chassis_info() according to the above behavior. See changelog for details.

How to verify it
Verify show platform summary and show version correctly report chassis info.

Delete the CHASSIS_INFO table from STATE_DB

Verify show platform summary and show version still correctly report the info.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants