-
Notifications
You must be signed in to change notification settings - Fork 226
Fixes #38498 - Fix incorrect Cycle power operation in Redfish provider #919
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
Fixes #38498 - Fix incorrect Cycle power operation in Redfish provider #919
Conversation
79dad3c to
16898b1
Compare
16898b1 to
28c05bf
Compare
stejskalleos
left a comment
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.
🍏 Tested with Redfish-Mockup-Server, and it seems to be working.
curl --user admin:changeme -X PUT -H "Content-Type: application/json" -d '{}' "http://localhost:8080/bmc/localhost:8000/chassis/power/cycle"Red fish server log:
POST: Content: type=application/json and params={}
POST: Data: {'ResetType': 'PowerCycle'}
127.0.0.1 - - [12/Sep/2025 09:01:03] "POST /redfish/v1/Systems/BladeServer-1/Actions/ComputerSystem.Reset HTTP/1.1" 204 -
A few comments regarding unused code, otherwise LGTM.
Bug #38498 mentions 3 power operation bugs in Redfish provider. This PR fixes wrong implementation of Cycle power operatoin: When user pushes Cycle button, Redfish provider does ForceRestart instead of PowerCycle. This PR makes powercycle method does 'PowerCycle'. Co-Authored-By: Vanou Ishii <[email protected]>, Yusuke Hirota <[email protected]>
28c05bf to
5868250
Compare
stejskalleos
left a comment
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
Works as expected
|
Thank you, @hiroshi-ikuta and @vanou, for your contribution! |
Bug #38498 mentions 3 power operation bugs in Redfish provider. This PR fixes wrong implementation of Cycle power operatoin: When user pushes Cycle button, Redfish provider does ForceRestart instead of PowerCycle.
Modifications in this PR
Fix incorrect "Cycle" power operation implementation in Redfish provider
The powercycle method defined in
modules/bmc/redfish.rbof smart-proxy does 'ForceRestart' instead of 'PowerCycle'. This PR makes powercycle method does 'PowerCycle'.