Circling back on this one… I still can't seem to get a Solaris build
happening.
Pasted here are the outputs from logs on my
Foreman/DHCP/TFTP/DNS/PuppetMaster server named firewall from powering the
Solaris Target Host on through its failure noted by the image posted in the
previous message, to an attempt to preview the template via the Foreman UI
:
==> /var/log/messages <==
Jun 11 10:03:22 firewall dhcpd: DHCPDISCOVER from 08:00:27:7e:27:fe via eth2
Jun 11 10:03:22 firewall dhcpd: DHCPOFFER on 192.168.100.19 to
08:00:27:7e:27:fe via eth2
Jun 11 10:03:25 firewall dhcpd: DHCPREQUEST for 192.168.100.19
(192.168.100.1) from 08:00:27:7e:27:fe via eth2
Jun 11 10:03:25 firewall dhcpd: DHCPACK on 192.168.100.19 to
08:00:27:7e:27:fe via eth2
Jun 11 10:03:25 firewall in.tftpd[2965]: RRQ from 192.168.100.19 filename
Solaris-5.10-hw0811-pxegrub
Jun 11 10:03:29 firewall in.tftpd[2967]: RRQ from 192.168.100.19 filename
menu.lst.010800277E27FE
Jun 11 10:03:29 firewall in.tftpd[2968]: RRQ from 192.168.100.19 filename
menu.lst.010800277E27FE
Jun 11 10:03:29 firewall in.tftpd[2969]: RRQ from 192.168.100.19 filename
menu.lst.010800277E27FE
Jun 11 10:03:29 firewall in.tftpd[2970]: RRQ from 192.168.100.19 filename
menu.lst.010800277E27FE
Jun 11 10:03:30 firewall in.tftpd[2973]: RRQ from 192.168.100.19 filename
boot/Solaris-5.10-hw0811-multiboot
Jun 11 10:03:30 firewall in.tftpd[2974]: RRQ from 192.168.100.19 filename
boot/Solaris-5.10-hw0811-multiboot
Jun 11 10:03:30 firewall in.tftpd[2975]: RRQ from 192.168.100.19 filename
boot/Solaris-5.10-hw0811-multiboot
Jun 11 10:03:30 firewall in.tftpd[2976]: RRQ from 192.168.100.19 filename
boot/Solaris-5.10-hw0811-x86.miniroot
Jun 11 10:03:49 firewall in.tftpd[2984]: RRQ from 192.168.100.19 filename
boot/Solaris-5.10-hw0811-x86.miniroot
Jun 11 10:04:22 firewall dhcpd: DHCPREQUEST for 192.168.100.19 from
08:00:27:7e:27:fe via eth2
Jun 11 10:04:22 firewall dhcpd: DHCPACK on 192.168.100.19 to
08:00:27:7e:27:fe via eth2
==> /var/log/foreman-proxy/proxy.log <==
D, [2013-06-11T10:04:48.270726 #1984] DEBUG – : Found puppetca at
/usr/bin/puppet
D, [2013-06-11T10:04:48.271333 #1984] DEBUG – : Found sudo at /usr/bin/sudo
D, [2013-06-11T10:04:48.271547 #1984] DEBUG – : Executing /usr/bin/sudo -S
/usr/bin/puppet cert --clean solaris1.int.localnet
I, [2013-06-11T10:04:50.005855 #1984] INFO – : Attempt to remove
nonexistant client certificate for solaris1.int.localnet
E, [2013-06-11T10:04:50.006451 #1984] ERROR – : Attempt to remove
nonexistant client certificate for solaris1.int.localnet
I, [2013-06-11T10:04:50.130226 #1984] INFO – : Added
solaris1.int.localnet to autosign
==> /var/log/foreman/production.log <==
Started GET "/unattended/provision" for 192.168.100.19 at Tue Jun 11
10:04:48 -0400 2013
Processing by UnattendedController#provision as
Found solaris1.int.localnet
Remove puppet certificate for solaris1.int.localnet
Adding autosign entry for solaris1.int.localnet
Rendered inline template (19.2ms)
Rendered text template (0.0ms)
Completed 500 Internal Server Error in 2163ms (Views: 0.9ms | ActiveRecord:
0.0ms)
==> /var/log/httpd/access_log <==
192.168.100.19 - - [11/Jun/2013:10:04:48 -0400] "GET /unattended/provision
HTTP/1.1" 500 111 "-" "curl/7.19.6 (i386-pc-solaris2.10) libcurl/7.19.6
OpenSSL/0.9.7g"
==> /var/log/foreman/production.log <==
Started GET "/unattended/provision?spoof=192.168.100.19" for
192.168.100.100 at Tue Jun 11 10:05:22 -0400 2013
Processing by UnattendedController#provision as HTML
Parameters: {"spoof"=>"192.168.100.19"}
Found solaris1.int.localnet
Rendered inline template (19.7ms)
Rendered text template (0.0ms)
Completed 500 Internal Server Error in 68ms (Views: 1.6ms | ActiveRecord:
0.0ms)
==> /var/log/httpd/access_log <==
192.168.100.100 - - [11/Jun/2013:10:05:22 -0400] "GET
/unattended/provision?spoof=192.168.100.19 HTTP/1.1" 500 111
"https://firewall/hosts/solaris1.int.localnet" "Mozilla/5.0 (Windows NT
6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110
Safari/537.36"
The browser output from the template view is:
There was an error rendering the Jumpstart Default template: undefined
method 'use_image' for Host::Jail (Host)
This matches what the Solaris Target Host sees in referencing "There" being
an invalid keyword.
Is it possible to get more detail about this 500 error that appears in the
/var/log/foreman/production.log file?..am I just looking in the wrong log
file?
Thanks.
···
On Monday, June 3, 2013 1:05:32 PM UTC-4, Sean Alderman wrote:
>
> Dominic,
> Thanks for your thoughts! I appreciate the ideas, I hope this post will
> provide more relevant information now that I've had a change to investigate
> some more.
>
> > Not quite sure how to get more info about the 500 error.
>
> Try previewing the template from the host page, it might be a rendering
> error that you can reproduce from there.
>
> The error I pasted was generated from previewing the host template. When
> the target system boots it gets passed the PXEGrub loader and pulls the
> install kernel from the tftp server. After loading that kernel it ends
> during Foreman's rendering of the PXEGrub Jumpstart Provisioning Template
> (as shown in the screen shot attached). This "There" is also the first
> word presented in the browser when previewing the template from the Host.
> Foreman responds to the browser with:
>
> There was an error rendering the Jumpstart Default template: undefined
> method 'use_image' for Host::Jail (Host)
>
> > Install Media Path.
>
> Perhaps just provide the media over HTTP, then if you create a Solaris
> OS and associate it with the mirror, I believe you can enter the NFS
> paths as well.
>
> I'm not as interested in this issue since I've worked around it by
> manually copying the boot files into /var/lib/tftpboot. I just wanted to
> bring it into the light.
>
> 1. Using NFS is clearly an option for the Media URL, the helps in the
> GUI suggest how to accomplish it. Is this a possible Smart Proxy Bug?
> 2. Following the Solaris Unattended Install Wiki to the letter and
> setting the media path to the HTTP URL, where "server" is my Foreman
> server, produces a 404 with 0 byte tftp kernel files. So I tried NFS and
> found that wget doesn't like NFS URI's.
>
> Thanks for your help!
>
> Kind regards,
> --
> Sean M. Alderman
> Senior Engineer, UDit Systems Integration and Engineering
> University of Dayton
>
>
> On Sat, Jun 1, 2013 at 7:11 AM, Dominic Cleal wrote:
>
>> On 31/05/13 21:52, Sean Alderman wrote:
>> > Were you able to get this resolved?
>> >
>> > I'm having similar behaviour in my lab, I just started playing with
>> > Solaris today.
>> >
>> > The /var/log/foreman/production.log file shows:
>> > Started GET "/unattended/PXEGrub?spoof=192.168.100.19" for
>> > 192.168.100.100 at Fri May 31 16:26:55 -0400 2013
>> > Processing by UnattendedController#PXEGrub as HTML
>> > Parameters: {"spoof"=>"192.168.100.19"}
>> > Found solaris1.int.localnet
>> > Rendered inline template (45.3ms)
>> > Rendered text template (0.0ms)
>> > Completed 500 Internal Server Error in 107ms (Views: 1.1ms |
>> > ActiveRecord: 0.0ms)
>> >
>> > Not quite sure how to get more info about the 500 error.
>>
>> Try previewing the template from the host page, it might be a rendering
>> error that you can reproduce from there.
>>
>> > I also had issues with using NFS as the media source. I have logs from
>> > the Smart-Proxy about failing to copy the multiboot and miniroot files
>> > over to the tfptroot because wget doesn't like nfs:/// as
>> > Install Media Path.
>>
>> Perhaps just provide the media over HTTP, then if you create a Solaris
>> OS and associate it with the mirror, I believe you can enter the NFS
>> paths as well.
>>
>> --
>> Dominic Cleal
>> Red Hat Engineering
>>
>> --
>> 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 http://groups.google.com/group/foreman-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>