theforeman/foreman · error · ProxyAPI::ProxyException

Unable to perform lan BMC operation

Error message

Unable to perform lan BMC operation

What it means

Error "Unable to perform lan BMC operation" thrown in theforeman/foreman.

Source

Thrown at app/services/proxy_api/bmc.rb:101

    rescue => e
      raise ProxyException.new(url, e, N_("Unable to perform identify BMC operation"))
    end

    # perform a lan get operation on the bmc device
    def lan(args)
      # get "/bmc/:host/lan/:action"
      case args[:action]
      when "ip", "netmask", "mac", "gateway"
        full_path_as_hash = bmc_url_for_get('lan', args[:action])
        response = parse(get(full_path_as_hash[:path], query: full_path_as_hash[:query]))
        response.is_a?(Hash) ? response['result'] : response
      else
        raise NoMethodError
      end
    rescue NoMethodError => e
      raise e
    rescue => e
      raise ProxyException.new(url, e, N_("Unable to perform lan BMC operation"))
    end

    private

    def bmc_url_for(controller, action)
      case controller
      when "lan"
        "/#{@target}/lan/#{action}"
      else
        "/#{@target}/chassis/#{controller}/#{action}"
      end
    end

    def bmc_url_for_get(controller, action)
      if @provider
        {path: bmc_url_for(controller, action).to_s, query: { bmc_provider: @provider } }
      else
        {path: bmc_url_for(controller, action) }

View on GitHub (pinned to 6b05625475)

When it happens

Trigger: Thrown at app/services/proxy_api/bmc.rb:101 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/79e43bbdb553e1ee. Report an issue: GitHub.