Failed to generate PXELinux template: undefined method `template' for nil:NilClass

Hello. I'm hoping somebody can give me a hand with this.

I'm seeing the following error that seems to be preventing my hosts from
being marked as "built". They are installing the preseed correctly, and as
far as I can tell are perfectly normal:

Started GET "/unattended/built" for 10.8.0.XXX at Wed Jun 12 17:26:18 -0400
2013
Processing by UnattendedController#built as
Found swift-store-05.va.moz.local
unattended: swift-store-05.va.moz.local is Built!
Add the TFTP configuration for swift-store-05.va.moz.local
Failed to generate PXELinux template: undefined method `template' for
nil:NilClass
Delete the autosign entry for swift-store-05.va.moz.local
Rolling back due to a problem:
Adding autosign entry for swift-store-05.va.moz.local
Delete the TFTP configuration for swift-store-05.va.moz.local
Completed 409 Conflict in 231ms

I've looked everywhere for conflicts. It can create a TFTP file correctly
when I first create the machine, but when it comes time to delete the TFTP
after the build process and use a default file it fails and no tftp file
gets created.

I have a "default pxe file" template that looks like this:

DEFAULT menu
PROMPT 0
MENU TITLE PXE Menu
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local

LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0

Any ideas? Without the host being marked as "built" they are essentially
hamstringed.

··· -- Stephen Wood Dev/Ops Engineer Moz, Inc. Website: www.heystephenwood.com

Has this been renamed perhaps? There should be template named precisely
as "PXE Localboot Default" which I think Foreman searches for and
reverts to.

··· On 12/06/13 22:35, Stephen Wood wrote: > Hello. I'm hoping somebody can give me a hand with this. > > I'm seeing the following error that seems to be preventing my hosts from > being marked as "built". They are installing the preseed correctly, and > as far as I can tell are perfectly normal: > > Started GET "/unattended/built" for 10.8.0.XXX at Wed Jun 12 17:26:18 > -0400 2013 > Processing by UnattendedController#built as > Found swift-store-05.va.moz.local > unattended: swift-store-05.va.moz.local is Built! > Add the TFTP configuration for swift-store-05.va.moz.local > Failed to generate PXELinux template: undefined method `template' for > nil:NilClass > Delete the autosign entry for swift-store-05.va.moz.local > Rolling back due to a problem: > Adding autosign entry for swift-store-05.va.moz.local > Delete the TFTP configuration for swift-store-05.va.moz.local > Completed 409 Conflict in 231ms > > I've looked everywhere for conflicts. It can create a TFTP file > correctly when I first create the machine, but when it comes time to > delete the TFTP after the build process and use a default file it fails > and no tftp file gets created. > > I have a "default pxe file" template that looks like this:


Dominic Cleal
Red Hat Engineering

Dominic. Thank you. I completely missed that. Once I put the template back
it's working again properly.

··· On Thu, Jun 13, 2013 at 2:20 AM, Dominic Cleal wrote:

On 12/06/13 22:35, Stephen Wood wrote:

Hello. I’m hoping somebody can give me a hand with this.

I’m seeing the following error that seems to be preventing my hosts from
being marked as “built”. They are installing the preseed correctly, and
as far as I can tell are perfectly normal:

Started GET “/unattended/built” for 10.8.0.XXX at Wed Jun 12 17:26:18
-0400 2013
Processing by UnattendedController#built as
Found swift-store-05.va.moz.local
unattended: swift-store-05.va.moz.local is Built!
Add the TFTP configuration for swift-store-05.va.moz.local
Failed to generate PXELinux template: undefined method `template’ for
nil:NilClass
Delete the autosign entry for swift-store-05.va.moz.local
Rolling back due to a problem:
Adding autosign entry for swift-store-05.va.moz.local
Delete the TFTP configuration for swift-store-05.va.moz.local
Completed 409 Conflict in 231ms

I’ve looked everywhere for conflicts. It can create a TFTP file
correctly when I first create the machine, but when it comes time to
delete the TFTP after the build process and use a default file it fails
and no tftp file gets created.

I have a “default pxe file” template that looks like this:

Has this been renamed perhaps? There should be template named precisely
as “PXE Localboot Default” which I think Foreman searches for and
reverts to.


Dominic Cleal
Red Hat Engineering


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Stephen Wood
Dev/Ops Engineer
Moz, Inc.
Website: www.heystephenwood.com