Skip to content

Ignore sonic_platform package fileNotFoundError on non-chassis vs platforms#133

Merged
deepak-singhal0408 merged 1 commit intosonic-net:masterfrom
deepak-singhal0408:deepsinghal/fix_sonic_platform_filenotFound_error
Jun 22, 2024
Merged

Ignore sonic_platform package fileNotFoundError on non-chassis vs platforms#133
deepak-singhal0408 merged 1 commit intosonic-net:masterfrom
deepak-singhal0408:deepsinghal/fix_sonic_platform_filenotFound_error

Conversation

@deepak-singhal0408
Copy link
Copy Markdown
Contributor

Issue:
For T2 vs chassis support, sonic_platform package was introduced as part of PR sonic-net/sonic-buildimage#18512

Even though this package will be present on all VS platforms, its a no-op on non-chassis VS platforms. On VS Chassis platforms, this requires a metadata file, which will not be available on pizza box VS platforms.

As part of determine-reboot-cause script, this sonic_platform package is imported, which is throwing FIleNotFoundError on vs platforms, where this metadata file is not present.

Fix: Added this FileNotFoundError in exception, as this is under a determine_reboot_cause_from_platform check, which is NA on VS platforms.

@mssonicbld
Copy link
Copy Markdown

Cherry-pick PR to 202405: #140

yejianquan pushed a commit that referenced this pull request Jul 23, 2024
…tforms (#133) (#140)

Co-authored-by: Deepak Singhal <115033986+deepak-singhal0408@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants