theforeman/foreman · error · Foreman::Exception

Unable to find a proxy with BMC feature

Error message

Unable to find a proxy with BMC feature

What it means

Error "Unable to find a proxy with BMC feature" thrown in theforeman/foreman.

Source

Thrown at app/models/nic/bmc.rb:19

module Nic
  class BMC < Managed
    PROVIDERS = %w(IPMI Redfish)
    before_validation :ensure_physical
    before_validation { |nic| nic.provider == 'Redfish' || nic.provider.try(:upcase!) }
    validates :provider, :presence => true, :inclusion => { :in => PROVIDERS }
    validates :mac, :presence => true, :if => :managed?
    validate :validate_bmc_proxy

    def virtual
      false
    end
    alias_method :virtual?, :virtual

    attr_exportable :provider, :username, :password

    def proxy
      proxy = bmc_proxy
      raise Foreman::Exception.new(N_('Unable to find a proxy with BMC feature')) if proxy.nil?
      args = {
        :host_ip => ip,
        :fqdn => fqdn,
        :url => proxy.url,
        :user => username,
        :password => password_unredacted,
      }
      args[:bmc_provider] = provider if provider != 'IPMI'
      ProxyAPI::BMC.new(args)
    end

    def self.humanized_name
      N_('BMC')
    end

    class Jail < Nic::Managed::Jail
      allow :provider, :username, :password
    end

View on GitHub (pinned to 6b05625475)

When it happens

Trigger: Thrown at app/models/nic/bmc.rb:19 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/1571730c590d0336. Report an issue: GitHub.