Project

General

Profile

Actions

Bug #3073

open

BMC Power --> reboot option == shutdown

Added by Tal Kammer almost 12 years ago. Updated 20 days ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Fixed in Releases:
Found in Releases:

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.

Actions #1

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:

https://github.com/theforeman/foreman/blob/3347fa49d500964f0209122d8d36c920d1feafcc/app/services/power_manager/bmc.rb#L22

as you see it sends "soft" to the proxy

https://github.com/theforeman/smart-proxy/blob/fdeef1dc6febcfae22c8d3273cb18d6bdeb31a23/modules/bmc/bmc_api.rb#L175

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.

Actions #2

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
Actions #3

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)
Actions #4

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
Actions #6

Updated by Evgeni Golov 2 months ago

  • Assignee set to Yusuke Hirota
Actions #7

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.

Actions #8

Updated by The Foreman Bot 20 days ago

  • Pull request https://github.com/theforeman/foreman/pull/10561 added
Actions

Also available in: Atom PDF