Bug #7543
closedallow additional rubyipmi connection options to be passed through
Description
Also no power/reboot button available
Files
Updated by Joshua Hoblitt almost 10 years ago
I've encountered this error message as well with 1.6.3
and likely earlier releases. I'm not sure if this is the only way to get the error message but I've been able to reproduce it by both setting an incorrect password on the bmc interface and changing the password on the bmc via ipmi.
Updated by Joshua Hoblitt almost 10 years ago
- Is duplicate of Bug #2749: Failed to fetch bmc information: undefined method `downcase' for nil:NilClass added
Updated by Joshua Hoblitt almost 10 years ago
- Is duplicate of deleted (Bug #2749: Failed to fetch bmc information: undefined method `downcase' for nil:NilClass)
Updated by Joshua Hoblitt almost 10 years ago
- Related to Bug #2749: Failed to fetch bmc information: undefined method `downcase' for nil:NilClass added
Updated by Jorick Astrego almost 10 years ago
I think it has to do with the privilege level (-L <privlvl>]). My co-worker has added the ipmi users as "OPERATOR" instead of the all mighty "ADMINISTRATOR" privilege. This is good as it is not very secure to use the admin user for these things. I tested with an admin account and it works fine.
-L <privlvl> Force session privilege level. Can be CALLBACK, USER, OPERATOR, ADMINISTRATOR. Default is ADMINISTRATOR.
So I tried modifiying "/usr/lib/ruby/gems/1.8/gems/rubyipmi-0.7.0/lib/rubyipmi/ipmitool/connection.rb"
# default to IPMI 2.0 communication, this means that older devices will not work # Those old servers should be recycled by now, as the 1.0, 1.5 spec came out in 2005ish and is 2013. @options["L"] = "Operator" @options["I"] = "lanplus"
But that doesn't help. Anything else I have to modify to make this work?
Updated by Marek Hulán almost 10 years ago
is this a duplicate of #2749 which is now closed?
Updated by Corey Osman over 9 years ago
Rubyipmi 0.8.1 supports passing in the privilege type, but you would need to expose this to the UI or make it a setting in the smart-proxy bmc settings file. Additionally, if we know the exact error message from the impi provider we can actually have rubyipmi react to the error message and try a different privilege type. It might be worth while to add a test connection function to rubyipmi and even additionally pass back a supported list of commands given the privilege type. I suspect the privilege type will change from host to host depending on manufacture of system.
Updated by Corey Osman over 9 years ago
- Subject changed from "Failure: undefined method `downcase' for nil:NilClass" error on BMC tab of host to allow additional rubyipmi connection options to be passed through
Because of how the smart proxy current connection setup is established we are not allowing all the options to be passed through for additional configurations like privilege level. Allowing a arbitrary set of options allows anyone to pass additional connection settings to Rubyipmi.
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/273 added
- Pull request deleted (
)
Updated by Corey Osman over 9 years ago
With this fix this now allows the user to pass an options hash in the request JSON body like
"{" "options": {"privilege": "OPERATOR"}, "bmc_provider": "freeipmi", "}"
Updated by Dominic Cleal over 9 years ago
- Project changed from Foreman to Smart Proxy
- Category set to BMC
- Assignee set to Corey Osman
Updated by Corey Osman over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset f4f52e0fb61d914acbe10a6aa251332e1b9900fd.
Updated by Dominic Cleal over 9 years ago
- Related to Bug #10102: BMC query fails with 'undefined method downcase for nil:NilClass added
Updated by Dominic Cleal over 9 years ago
- Related to Bug #10112: Allow user to define BMC driver / options per hardware model added
Updated by Corey Osman over 9 years ago
While this ticket allowed parameters to pass through to foreman, there is another issue related to parameters not being gathered from the body of the request.
Bug #10116
Updated by Dominic Cleal over 9 years ago
- Related to Bug #10116: BMC is not able to use parameters passed in through body added