Hello,

I recently installed foreman 1.14.1 and I am attempting to use foreman's 
auto provisioning feature for the first time.  I am able to provision 
discovered hosts manually without any issue, but when I try to auto 
provision the same host foreman does not call out to the tftp smart proxy 
to create the tftp config.  The host reboots back to discovery and errors 
that it cannot discover a host that is pending for build.  However if I run 
'Rebuild Config' against the host that has been auto-provisioned, foreman 
calls the tftp proxy, the tftp config is created and I can boot the node to 
kickstart as expected.

The host then provisions fine, but when it gets to the end of provisioning 
and tries to call back to foreman that it is built (via a templates smart 
proxy) it fails and then reboots back into provisioning.  This is what is 
logged in the template smart proxy proxy.log:


E, [2017-02-17T10:16:52.851486 ] ERROR -- : Failed to retrieve built 
template for {"token"=>"fa01bedd-344d-4863-9dc0-3754dad51cbe", "splat"=>[], 
"captures"=>["built"], "kind"=>"built"}: Error retrieving built for 
{"token"=>"fa01bedd-344d-4863-9dc0-3754dad51cbe", 
:url=>"http://tftp1.deploy.local:8000"} from foreman14.deploy.local: 
Net::HTTPConflict
D, [2017-02-17T10:16:52.851578 ] DEBUG -- : Error retrieving built for 
{"token"=>"fa01bedd-344d-4863-9dc0-3754dad51cbe", 
:url=>"http://tftp1.deploy.local:8000"} from foreman14.deploy.local: 
Net::HTTPConflict (RuntimeError)


Having never used auto provisioning in foreman I am sure this is a 
configuration issue on my side, but I am confused by the fact that regular 
provisioning works just fine.  I assumed if I could provision then I could 
auto provision as well once I configured discovery rules.

Any help would be very much appreciated.

Thanks,MIKE

-- 
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