theforeman/foreman · error · ProxyAPI::ProxyException
Unable to perform power BMC operation
Error message
Unable to perform power BMC operation
What it means
Error "Unable to perform power BMC operation" thrown in theforeman/foreman.
Source
Thrown at app/services/proxy_api/bmc.rb:65
def power(args)
# get "/bmc/:host/chassis/power/:action"
# put "/bmc/:host/chassis/power/:action"
case args[:action]
when "on?", "off?", "status"
args[:action].chop! if args[:action].include?('?')
full_path_as_hash = bmc_url_for_get('power', args[:action])
response = parse(get(full_path_as_hash[:path], query: full_path_as_hash[:query]))
response.is_a?(Hash) ? response['result'] : response
when "on", "off", "cycle", "soft", "reboot", "reset"
res = parse put(with_provider(args), bmc_url_for('power', args[:action]))
res && (res['result'] == true || res['result'] == "#{@target}: ok\n")
else
raise NoMethodError
end
rescue NoMethodError => e
raise e
rescue => e
raise ProxyException.new(url, e, N_("Unable to perform power BMC operation"))
end
# perform an identify operation on the bmc device
def identify(args)
# get "/bmc/:host/chassis/identify/:action"
# put "/bmc/:host/chassis/identify/:action"
case args[:action]
when "status"
full_path_as_hash = bmc_url_for_get('identify', args[:action])
parse get(full_path_as_hash[:path], query: full_path_as_hash[:query])
when "on", "off"
parse put(with_provider(args), bmc_url_for('identify', args[:action]))
else
raise NoMethodError
end
rescue NoMethodError => e
raise e
rescue => eView on GitHub (pinned to 6b05625475)
When it happens
Trigger: Thrown at app/services/proxy_api/bmc.rb:65 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23).
Data as JSON: /api/errors/b81a0d5c2be61053.
Report an issue: GitHub.