Auto provisioning: what can go wrong

Hello,

I would like to use foreman + discovery for bare metal provisioning
(version 1.11).

When I push the button "Auto provision all" in the "Discovered hosts"
section all these nodes reboot (fine), but NO pxelinux.cfg/… file was
created.
Even in debug mode, proxy.log does not show anything about this. That
indicates that the foreman has got some problems here.

(There is no problem with manual provisioning, though. But that takes time.)

Two things:

  • Where can I see what is missing?
  • Wouldn't it be better to warn the user that something is missing than
    rebooting the nodes without effect?

Best regards,
Ulf

> Hello,
>
> I would like to use foreman + discovery for bare metal provisioning
> (version 1.11).
>
> When I push the button "Auto provision all" in the "Discovered hosts"
> section all these nodes reboot (fine), but NO pxelinux.cfg/… file was
> created.
>

that probably means your subnet doesn't have a tftp proxy associated.

Even in debug mode, proxy.log does not show anything about this. That
> indicates that the foreman has got some problems here.
>

Thats good feedback, and you should probably add it as a feature request on
http://projects.theforeman.org - and of course -patches are welcomed :slight_smile:

thanks!

··· On Wed, Jun 1, 2016 at 3:52 PM, 'Ulf Markwardt' via Foreman users < foreman-users@googlegroups.com> wrote:

(There is no problem with manual provisioning, though. But that takes
time.)

Two things:

  • Where can I see what is missing?
  • Wouldn’t it be better to warn the user that something is missing
    than rebooting the nodes without effect?

Best regards,
Ulf


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

> - Where can I see what is missing?

In production.log

··· -- Later, Lukas #lzap Zapletal

Hello,

>> I would like to use foreman + discovery for bare metal provisioning
>> (version 1.11).
>>
>> When I push the button "Auto provision all" in the "Discovered hosts"
>> section all these nodes reboot (fine), but NO pxelinux.cfg/… file was
>> created.
>>
>
> that probably means your subnet doesn't have a tftp proxy associated.
>

But it does, I have checked!

Interesting: "Smart Proxy => Services" says "TFTP server false", yet I
can manually provision my hosts.

Mysterious…