-
Notifications
You must be signed in to change notification settings - Fork 92
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
Handle NotImplementedError in determine-reboot-cause that will be thrown on VS Chassis platform #211
Handle NotImplementedError in determine-reboot-cause that will be thrown on VS Chassis platform #211
Conversation
…lementedError that will be thrown on VS Chassis platform
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
pls resolve conflict |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
/AzurePipelines run |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@BYGX-wcr the sonic_platform package is installed for vs_chassis. the get_reboot_cause api is not implemented there. Did you get chance to check how its working on pizza box kvm image? |
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.
LGTM
On T0/T1 KVM devices, the sonic_platform package is not installed at all. So, it won't cause an uncaptured runtime exception. |
On VS Chassis platform, the sonic_platform package is not implemented since there is no hardware associated with it. So the chassis.get_reboot_cause API will throw NotImplementedError. I added the code change to handle this exception and return the reboot cause as "N/A" in this case.