theforeman/foreman · error · Foreman::Exception

No BMC NIC available for host %s

Error message

No BMC NIC available for host %s

What it means

Error "No BMC NIC available for host %s" thrown in theforeman/foreman.

Source

Thrown at app/models/host/managed.rb:737

  def vm_compute_attributes
    compute_resource ? compute_resource.vm_compute_attributes_for(uuid) : nil
  end

  def bmc_proxy
    @bmc_proxy ||= bmc_nic.proxy
  end

  def bmc_available?
    ipmi = bmc_nic
    return false if ipmi.nil?
    (ipmi.credentials_present? && %w(IPMI Redfish).include?(ipmi.provider))
  end
  alias_method :bmc_available, :bmc_available?

  def ipmi_boot(booting_device)
    unless bmc_available?
      raise Foreman::Exception.new(
        _("No BMC NIC available for host %s") % self)
    end
    bmc_proxy.boot({:function => 'bootdevice', :device => booting_device})
  end

  # take from hostgroup if compute_profile_id is nil
  def compute_profile_id
    self[:compute_profile_id] || hostgroup.try(:compute_profile_id)
  end

  def provision_method
    self[:provision_method] || capabilities.first.to_s
  end

  def explicit_pxe_loader
    self[:pxe_loader].presence
  end

View on GitHub (pinned to 6b05625475)

When it happens

Trigger: Thrown at app/models/host/managed.rb:737 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/dae0c4cde5072c9e. Report an issue: GitHub.