Lukas, just for the record, I don't use DHCP orchestration at all. I have a smart-proxy DHCP instance, but it's not assigned to the subnet. Reason behind this: http://projects.theforeman.org/issues/2800 .
The auto-provisioned host has NICs correctly created and a subnet assigned to the prov interface. Just the domain left blank -- that was mentioned before. I will play with tftp.rb next week. I have a dockerized setup, so traditional debugging includes additional steps. Thanks for your effort and have a nice weekend! On Fri, Apr 21, 2017 at 3:12 PM, Lukas Zapletal <[email protected]> wrote: > Ok thanks, I can see that either TFTP nor DHCP steps are not getting > orchestrated at all. I suspect that this returns false: > > https://github.com/theforeman/foreman/blob/develop/app/ > models/concerns/orchestration/tftp.rb#L21 > > Maybe if you are able to break up the tftp_ready? method into multiple > lines and do some debug logger outputs of all individual statements in > there to see which does not trigger TFTP orchestration. > > Strange is we should see DHCP orchestration but that does not happen as > well. Are NICs created correctly? Is there a subnet set? > > Unfortunately I have engagement at customer site for whole week, I will > carry on the week after. We need to solve this. > > On Wed, Apr 19, 2017 at 4:58 PM, Chad Schroeder < > [email protected]> wrote: > >> I'm not sure I follow what your asking for Lukas. >> >> On Wednesday, April 19, 2017 at 8:50:21 AM UTC-5, Lukas Zapletal wrote: >>> >>> Jacek, I apologize but what I meant was: >>> >>> http://projects.theforeman.org/projects/foreman/wiki/Trouble >>> shooting#Enable-detailed-SQL-logger-for-orchestration-messages >>> >>> Chad, it looks like setting (a fake) domain did not help to Jacek, can >>> you try it? Did it help in your case? Associate Subnet with a Domain and >>> then set it in the Hostgroup. >>> >>> LZ >>> >>> On Wed, Apr 19, 2017 at 2:51 PM, Jacek Mierzwa <[email protected]> >>> wrote: >>> >>>> And here is Foreman app debug-level log from 'successful' >>>> auto-provision (no PXE file appears). >>>> >>>> On Wed, Apr 19, 2017 at 2:13 PM, Jacek Mierzwa <[email protected]> >>>> wrote: >>>> >>>>> Here's the SQL debug log from 'successful' auto-provision (no PXE file >>>>> appears). >>>>> Please find attached. >>>>> >>>>> Thanks/Regards >>>>> >>>>> On Wed, Apr 19, 2017 at 1:21 PM, Lukas Zapletal <[email protected]> >>>>> wrote: >>>>> >>>>>> Ok I finally reproduced. >>>>>> >>>>>> When domain is blank, autoprovisioning fails for no apparent reason, >>>>>> logs are empty, something fails during orchestration and hosts are >>>>>> getting discovered again (which fails since managed host already >>>>>> exists). >>>>>> >>>>>> http://projects.theforeman.org/issues/19313 >>>>>> >>>>>> I will do my best to fix it this week, but I am on travel the week >>>>>> after, crossing my fingers. >>>>>> >>>>>> LZ >>>>>> >>>>>> On Thu, Apr 13, 2017 at 4:28 PM, Garreat <[email protected]> wrote: >>>>>> > I experience this issue. >>>>>> > After clicking 'auto-provisioning' on a discovered host, the host >>>>>> entry is >>>>>> > created, the host reboots - but only to enter Foreman Discovery >>>>>> Image PXE >>>>>> > loop. >>>>>> > My TFTP proxy is in healthy status as I can recreate PXE default no >>>>>> prob. >>>>>> > >>>>>> > Now answering your checklist: >>>>>> > - host is managed - yes - OK >>>>>> > - provision method is "build" and not "image" - how to check this? >>>>>> I can't >>>>>> > see the 'build mode' checkbox for the newly created host >>>>>> > - host has operating system set - yes (inherited from host group) - >>>>>> OK >>>>>> > - host has pxe loader flag present (not set to blank or None) - how >>>>>> to check >>>>>> > this? >>>>>> > - host has one provisioning NIC with valid MAC address - yes it >>>>>> does - OK >>>>>> > - a subnet is associated with the provisioning NIC - it is, but >>>>>> it's a >>>>>> > subnet different than the one declared in machine's host group >>>>>> > - the subnet has TFTP feature turned on - it does, and it's the >>>>>> same TFTP >>>>>> > proxy as in the subnet that I wanted >>>>>> > >>>>>> > Also, the 'domain' is blank for the fresh created host. >>>>>> > The OS assigned to this host group has a valid PXElinux template >>>>>> selected. >>>>>> > >>>>>> > Assume I'm not making any manual changes: >>>>>> > - 'Build host' does nothing >>>>>> > - 'Rebuild config' creates a PXE mac-template on TFTP immediatly >>>>>> > >>>>>> > facter -j output attached >>>>>> > >>>>>> > Thanks / Regards / Greetings >>>>>> > >>>>>> > W dniu wtorek, 11 kwietnia 2017 10:28:17 UTC+2 użytkownik Lukas >>>>>> Zapletal >>>>>> > napisał: >>>>>> >> >>>>>> >> TFTP orchestration is not being triggered. It can be only performed >>>>>> >> when all of these conditions are met: >>>>>> >> >>>>>> >> - host is managed >>>>>> >> - provision method is "build" and not "image" >>>>>> >> - host has operating system set >>>>>> >> - host has pxe loader flag present (not set to blank or None) >>>>>> >> - host has one provisioning NIC with valid MAC address >>>>>> >> - a subnet is associated with the provisioning NIC >>>>>> >> - the subnet has TFTP feature turned on >>>>>> >> >>>>>> >> Visit a host which failed provisioning and do this checklist >>>>>> please. >>>>>> >> >>>>>> >> LZ >>>>>> >> >>>>>> >> >>>>>> > >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Later, >>>>>> Lukas @lzap Zapletal >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> *Jacek Mierzwa* | Systems Integration Engineer >>>>> >>>>> Platform Management Division >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> *Jacek Mierzwa* | Systems Integration Engineer >>>> >>>> Platform Management Division >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Later, >>> Lukas @lzap Zapletal >>> >> > > > -- > Later, > Lukas @lzap Zapletal > -- *Jacek Mierzwa* | Systems Integration Engineer Platform Management Division -- 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.
