Project

General

Profile

Actions

Bug #19170

open

Can't select BMC boot device for non-admin users

Added by Chun-Liang Lin over 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
BMC
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The non-admin user can't select the BMC boot device.

I think it's related with this Bug and Fixes.
Bug #6492 IPMI boot and power unaccessible to non-admin users
http://projects.theforeman.org/issues/6492
Fixes #6492 - ipmi_boot permission renamed to ipmi_boot_hosts
https://github.com/theforeman/foreman/pull/3926

We have added ipmi_boot_hosts permission to the non-admin users. User can use the BMC power function, but user can't change the boot device (Disk,CDROM,PXE,BIOS).

I checked the source code /usr/share/foreman/app/helpers/bmc_helper.rb
https://github.com/dLobatog/foreman/blob/develop/app/helpers/bmc_helper.rb,

23 def boot_actions
24 controller_options = { :action => "ipmi_boot", :id => @host, :auth_object => @host, :permission => 'ipmi_boot' }
25

I think we should change the 'ipmi_boot' to 'ipmi_boot_hosts' as well.

Actions

Also available in: Atom PDF