Hello,

do you see anything interesting in logs when autoprovisioning is
performed? You say TFTP orchestration is not scheduled. Can you
increase verbosity and spot something relevant? This is weird,
auto-provisioning is not much different from normal one.

One more test: Autoprovision a host, let it fail. Then click on Edit
host and immediately try to Submit (without any change), does Foreman
complain about anything that is missing? This could be it (you might
be missing some field that is required in your hostgroup but
autoprovisioning won't notice and error is swallowed somewhere deep in
our orchestration code).

LZ

On Wed, Feb 22, 2017 at 3:16 PM, Michael Vollman
<[email protected]> wrote:
> So I did a little more investigation into the issue after posting my
> question yesterday.  I figured out that I can auto provision using the
> following steps:
>
> 1) discover host
> 2) auto provision host
> 3) rebuild config of auto provision host (this calls tftp proxy to create
> the pxe config which did not occur in the previous step)
> 4) Edit the host, set the hostname, and submit (this adds the "built
> template" so the host can tell foreman it is built at the end of
> provisioning)
>
> With those 4 steps the host auto provisions fine.  So the question still
> stands why the tftp proxy and built template is not being associated to the
> host at the time that auto-provision is executed.
>
> We are auto-provisioning using a custom fact in the zip extension for the
> hostname.  When we auto provision the host is created with the correct name.
> However, if I edit the host it has the default hostname in the hostname
> field (prefix mac followed by lower case mac address).  That is why in step
> 4 I have to set the hostname even though it is already set by
> auto-provision.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.



-- 
Later,
  Lukas @lzap Zapletal

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to