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 over 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 #1

Updated by Marek Hulán over 7 years ago

Thanks for the report and sorry for late answer. Your suggestion makes sense to me. Would you consider opening a PR with the patch? Some instructions could be found at
https://theforeman.org/contribute.html see Submit patches chapter.

Let us know if you need help.

Actions

Also available in: Atom PDF