DMTF / Redfish-Tacklebox

Python based utilities for performing common management operations with Redfish
Other
52 stars 25 forks source link

rf_boot_override.py comamnd throws 500 internal error if one of our machine is in OFF state #143

Closed rajeshkumarmhpe closed 6 months ago

rajeshkumarmhpe commented 8 months ago

rf_boot_override.py command throws 500 internal error if one of our machine is in OFF state.If its in ON state then no 500 internal error is seen.

Note: Other two machines(platforms ) working fine even if its in ON/OFF state it doesnt matter.

python3 rf_boot_override.py --user uuuuuu --password pppppp --rhost https://10.x.x.x --system Partition0 -uefi UefiTarget -reset -t UefiShell

Setting a one time boot for UefiShell... Resetting the system... Task is Done! Operation failed: HTTP 500 A general error has occurred. See Resolution for information on how to resolve the error, or @Message.ExtendedInfo if Resolution is not provided. The request failed due to an internal service error. The service is still operational.

mraineri commented 8 months ago

Can you try again with --debug added to the command line and provide the .log file generated?

It sounds like your service is requiring the system to be in a particular state for that reset option (which goes against guidance in the Redfish Spec). The log file will help confirm that.

jautor commented 7 months ago

@rajeshkumarmhpe can you contact me directly regarding this?

rajeshkumarmhpe commented 7 months ago

Please find the attached debug log for your reference. rf_boot_override-2024-04-11-211939.log

mraineri commented 7 months ago

The trace does show this is a service-side issue. However the error response is not particularly useful from this system; it just says "A general error has occurred".

The tool is behaving correctly and this would need to be fixed on the system. If the issue with this system is unique to it being in the powered off state, then that's a clear indicator that the service isn't following guidance from the Redfish Specification.

mraineri commented 6 months ago

Closing; issue needs to be resolved by the service since it's not following guidance from the Redfish spec.