Project

General

Profile

Actions

Bug #3073

open

BMC Power --> reboot option == shutdown

Added by Tal Kammer over 10 years ago. Updated almost 2 years ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
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 about 2 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 about 2 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 almost 2 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 almost 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9082 added
Actions

Also available in: Atom PDF