Bug #14521
closed
TFTP orchestration fails for OS with iPXE w/o PXELinux associated
Added by Lukas Zapletal over 8 years ago.
Updated about 6 years ago.
Description
For a host with OS with iPXE template but no PXELinux template, we still attempt to render PXELinux template which leads to "Failed to generate PXELinux template: undefined method `encoding' for nil:NilClass" orchestration error.
We should give nicer error instead.
We already have a check but that does not trigger when there is an iPXE template associated, that is the case:
if host.provisioning_template({:kind => host.operatingsystem.template_kind}).nil? && host.provisioning_template({:kind => "iPXE"}).nil?
failure _("No %{template_kind} templates were found for this host, make sure you define at least one in your %{os} settings") %
{ :template_kind => host.operatingsystem.template_kind, :os => host.operatingsystem }
end
- Related to Bug #612: Host#configTemplate does not work as expected added
- Related to Feature #1294: Build should not require TFTP if using gPXE added
- Subject changed from Queue TFTP orchestration only when there is PXELinux associated to TFTP orchestration fails for OS with iPXE w/o PXELinux associated
- Description updated (diff)
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3402 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 136
Also available in: Atom
PDF