Skip to content

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

Merged
sujinmkang merged 2 commits intosonic-net:masterfrom
alexrallen:chassis_fallback
Aug 19, 2021
Merged

[show][platform] Revise chassis info fallback to only fall back on pmon crash#1751
sujinmkang merged 2 commits intosonic-net:masterfrom
alexrallen:chassis_fallback

Conversation

@alexrallen
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@sujinmkang Can you please review?

@sujinmkang
Copy link
Copy Markdown
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
Copy Markdown
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants