{"record":{"id":"dae0c4cde5072c9e","repo":"theforeman/foreman","slug":"no-bmc-nic-available-for-host-s","errorCode":null,"errorMessage":"No BMC NIC available for host %s","messagePattern":"No BMC NIC available for host (.+?)","errorType":"exception","errorClass":"Foreman::Exception","httpStatus":null,"severity":"error","filePath":"app/models/host/managed.rb","lineNumber":737,"sourceCode":"\n  def vm_compute_attributes\n    compute_resource ? compute_resource.vm_compute_attributes_for(uuid) : nil\n  end\n\n  def bmc_proxy\n    @bmc_proxy ||= bmc_nic.proxy\n  end\n\n  def bmc_available?\n    ipmi = bmc_nic\n    return false if ipmi.nil?\n    (ipmi.credentials_present? && %w(IPMI Redfish).include?(ipmi.provider))\n  end\n  alias_method :bmc_available, :bmc_available?\n\n  def ipmi_boot(booting_device)\n    unless bmc_available?\n      raise Foreman::Exception.new(\n        _(\"No BMC NIC available for host %s\") % self)\n    end\n    bmc_proxy.boot({:function => 'bootdevice', :device => booting_device})\n  end\n\n  # take from hostgroup if compute_profile_id is nil\n  def compute_profile_id\n    self[:compute_profile_id] || hostgroup.try(:compute_profile_id)\n  end\n\n  def provision_method\n    self[:provision_method] || capabilities.first.to_s\n  end\n\n  def explicit_pxe_loader\n    self[:pxe_loader].presence\n  end\n","sourceCodeStart":719,"sourceCodeEnd":755,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/app/models/host/managed.rb#L719-L755","documentation":"Error \"No BMC NIC available for host %s\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at app/models/host/managed.rb:737 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}