Ehh, disregard this.  I upgraded to 3.2.2/1.13.3 and it went away.  Likely 
related:

http://projects.theforeman.org/issues/16475


----- Original Message -----
From: "Foreman Users" <[email protected]>
To: "Foreman Users" <[email protected]>
Sent: Tuesday, January 10, 2017 3:47:46 PM
Subject: [foreman-users] Host Not Leaving "Build" Mode

Hello,

My hosts have recently stopped exiting from build mode after being provisioned. 
 I see the following in my provisioning template:

    <% if @provisioning_type == nil || @provisioning_type == 'host' -%>
    # Inform the build system that we are done.
    echo "Informing Foreman that we are built"
    wget -q -O /dev/null --no-check-certificate <%= foreman_url %>
    <% end -%>
    ) 2>&1 | tee /root/install.post.log
    exit 0

And on a newly provisioned host the last line of /root/install.post.log is:

    Informing Foreman that we are built

But the host's build status is still "Pending installation".

In production.log I see:

    2017-01-10 14:03:05 174444cd [app] [I] Started GET 
"/unattended/built?token=4eb1bd5b-b6d1-4d1b-ba97-fc970546fe23" for 
172.16.246.110 at 2017-01-10 14:03:05 -0600
    2017-01-10 14:03:05 174444cd [app] [I] Processing by 
UnattendedController#built as TEXT
    2017-01-10 14:03:05 174444cd [app] [I]   Parameters: 
{"token"=>"4eb1bd5b-b6d1-4d1b-ba97-fc970546fe23"}
    2017-01-10 14:03:05 174444cd [app] [D] Found sl2aosplpxy0001.ipa.centric.lab
    2017-01-10 14:03:05 174444cd [app] [D] Setting current user thread-local 
variable to foreman_api_admin
    2017-01-10 14:03:05 174444cd [app] [I] unattended: 
sl2aosplpxy0001.ipa.centric.lab is Built!
    2017-01-10 14:03:05 174444cd [templates] [I] Rendering template 'PXEGrub2 
default local boot'
    2017-01-10 14:03:05 174444cd [templates] [I] Rendering template 
'pxegrub2_chainload'
    2017-01-10 14:03:05 174444cd [app] [W] Deploy TFTP PXEGrub2 config for 
sl2aosplpxy0001.ipa.centric.lab task failed with the following error: 
ERF12-5472 [ProxyAPI::ProxyException]: Unable to set TFTP boot entry for 
00:50:56:91:71:66 ([RestClient::BadRequest]: 400 Bad Request) for proxy 
https://katello.ipa.centric.lab:9090/tftp
     | ProxyAPI::ProxyException: ERF12-5472 [ProxyAPI::ProxyException]: Unable 
to set TFTP boot entry for 00:50:56:91:71:66 ([RestClient::BadRequest]: 400 Bad 
Request) for proxy https://katello.ipa.centric.lab:9090/tftp
     | /usr/share/foreman/lib/proxy_api/tftp.rb:17:in `rescue in set'
     | /usr/share/foreman/lib/proxy_api/tftp.rb:15:in `set'
     | /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:102:in 
`block in setTFTP'
     | /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:204:in 
`block in each_unique_feasible_tftp_proxy'
     | /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:203:in `map'
     | /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:203:in 
`each_unique_feasible_tftp_proxy'
     | /usr/share/foreman/app/models/concerns/orchestration/tftp.rb:101:in 
`setTFTP'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:194:in `execute'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:135:in `block in 
process'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:127:in `each'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:127:in `process'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:35:in 
`around_save_orchestration'
<snip big log trace>

Any ideas?

Thanks,

j

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

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