theforeman/foreman · error · Foreman::Exception
Unable to find template %s
Error message
Unable to find template %s
What it means
Error "Unable to find template %s" thrown in theforeman/foreman.
Source
Thrown at app/models/compute_resources/foreman/model/libvirt.rb:131
end
bridge_names = bridges.map(&:name)
interfaces.select { |fog_interface| fog_interface.active? && bridge_names.include?(fog_interface.name) }
rescue => e
Foreman::Logging.exception('No bridge interface could be found in libvirt', e)
[]
end
def interfaces
client.interfaces rescue []
end
def networks
client.networks rescue []
end
def template(id)
template = client.volumes.get(id)
raise Foreman::Exception.new(N_("Unable to find template %s"), id) unless template&.persisted?
template
end
def set_boot_order(attr = {})
order = %w[hd]
order.unshift 'network' unless attr[:image_id]
order
end
def new_vm(attr = { })
test_connection
libvirt_connection_error unless errors.empty?
opts = vm_instance_defaults.merge(attr.to_h).deep_symbolize_keys
# convert rails nested_attributes into a plain hash
[:nics, :volumes].each do |collection|
nested_attrs = opts.delete("#{collection}_attributes".to_sym)
opts[collection] = nested_attributes_for(collection, nested_attrs) if nested_attrsView on GitHub (pinned to 6b05625475)
When it happens
Trigger: Thrown at app/models/compute_resources/foreman/model/libvirt.rb:131 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/696e6d8cf6b15670.
Report an issue: GitHub.