Bug #3073
openBMC Power --> reboot option == shutdown
Description
I'm not sure if anybody else noticed this, but from the Foreman dashboard if you press the "reboot" button under the BMC-> Power management, it actually shuts down the machine instead of rebooting it.
Couldn't find an open bug on this, so forgive me if this is an already known issue.
Updated by Thomas Rosenstein over 3 years ago
- Found in Releases 3.2.0 added
I just stumbled onto this. It seems the foreman code uses a wrong code to be sent to the proxy:
as you see it sends "soft" to the proxy
but you can see here, that soft == soft poweroff
I think that the power manager should send cycle for reboot and reset for reset, instead of cycle for reset.
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/9082 added
Updated by The Foreman Bot about 3 years ago
- Status changed from Ready For Testing to New
- Pull request deleted (
https://github.com/theforeman/foreman/pull/9082)
Updated by The Foreman Bot about 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/9082 added
Updated by Ondřej Ezr 2 months ago
https://github.com/spesnova717 is now working on this, see https://github.com/theforeman/foreman/pull/9082#issuecomment-2823215538 for details.
Updated by Yusuke Hirota 20 days ago
Issuer of this ticket only points out problem around reboot. However there is a problem around reset too:
- Changing power state to 'Reboot' via Web GUI makes target node run into shutdown
- Changing power state to 'Reset' via Web GUI makes target node run into powercycle
To fix above problems, we need to deal with 3 things:
1. Foreman core doesn't call BMC proxy's API correctly
- Changing power state to 'Reboot' via Web GUI calls BMC proxy's 'soft' power operation
- Changing power state to 'Reset' via Web GUI calls BMC proxy's 'cycle' power operation
2. Foreman BMC proxy doesn't support reboot at all BMC provider
3. Foreman BMC proxy doesn't support reset(powerreset) at Redfish provider
I and my colleague (Vanou Ishii) will submit 3 PRs, each one deals with above 3 causes respectively, to make Reboot&Reset power action through Web GUI work.
Updated by The Foreman Bot 20 days ago
- Pull request https://github.com/theforeman/foreman/pull/10561 added