Actions
Bug #14521
closedTFTP orchestration fails for OS with iPXE w/o PXELinux associated
Difficulty:
Triaged:
Bugzilla link:
Pull request:
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.
Updated by Lukas Zapletal about 9 years ago
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
Updated by Lukas Zapletal about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset c7bb92a96c0ce8f8a9f6a3c4f2ce0bf95a73f459.
Actions