Smart-Proxy + DHCP + SPARC Boot?

Greetings,
I'm working on building unattended installs for Solaris in v1.2. When I
create a SPARC host in Foreman, I get a 400 error in Foreman and the Smary
Proxy shows this paste in its log:

http://pastebin.com/wHzT6WNc

I've tried a couple of different DHCP configurations to enable jumpstart
from a Linux ISC dhcpd host (which runs smart-proxy) but none of them seem
to work. There isn't any specific info on configuring DHCP in the Solaris
Unattended Wiki, and I'm really not sure where to go from here.

Your thoughts and comments are much appreciated. Kind regards,
Sean

Hello,

Not sure that this will help you all that much but these are the vendor options I have to get solaris to jumpstart

option space SUNW;
option SUNW.root-mount-options code 1 = text;
option SUNW.root-server-ip-address code 2 = ip-address;
option SUNW.root-server-hostname code 3 = text;
option SUNW.root-path-name code 4 = text;
option SUNW.swap-server-ip-address code 5 = ip-address;
option SUNW.swap-file-path code 6 = text;
option SUNW.boot-file-path code 7 = text;
option SUNW.posix-timezone-string code 8 = text;
option SUNW.boot-read-size code 9 = unsigned integer 16;
option SUNW.install-server-ip-address code 10 = ip-address;
option SUNW.install-server-hostname code 11 = text;
option SUNW.install-path code 12 = text;
option SUNW.sysid-config-file-server code 13 = text;
option SUNW.JumpStart-server code 14 = text;
option SUNW.terminal-name code 15 = text;
option SUNW.SbootURI code 16 = text;

my environment is all x86 so ymmv with sparc but the error message in paste bin suggests your dhcp implementation is missing something - which distribution/version of bind do you have running?

hth

lukek

··· On Aug 17, 2013, at 6:23 AM, Sean Alderman wrote:

Greetings,
I’m working on building unattended installs for Solaris in v1.2. When I create a SPARC host in Foreman, I get a 400 error in Foreman and the Smary Proxy shows this paste in its log:

http://pastebin.com/wHzT6WNc

I’ve tried a couple of different DHCP configurations to enable jumpstart from a Linux ISC dhcpd host (which runs smart-proxy) but none of them seem to work. There isn’t any specific info on configuring DHCP in the Solaris Unattended Wiki, and I’m really not sure where to go from here.

Your thoughts and comments are much appreciated. Kind regards,
Sean


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.
For more options, visit https://groups.google.com/groups/opt_out.

Ooops I meant which version of dhcpd?

··· On Aug 17, 2013, at 6:38 AM, Luke Kearney wrote:

Hello,

Not sure that this will help you all that much but these are the vendor options I have to get solaris to jumpstart

option space SUNW;
option SUNW.root-mount-options code 1 = text;
option SUNW.root-server-ip-address code 2 = ip-address;
option SUNW.root-server-hostname code 3 = text;
option SUNW.root-path-name code 4 = text;
option SUNW.swap-server-ip-address code 5 = ip-address;
option SUNW.swap-file-path code 6 = text;
option SUNW.boot-file-path code 7 = text;
option SUNW.posix-timezone-string code 8 = text;
option SUNW.boot-read-size code 9 = unsigned integer 16;
option SUNW.install-server-ip-address code 10 = ip-address;
option SUNW.install-server-hostname code 11 = text;
option SUNW.install-path code 12 = text;
option SUNW.sysid-config-file-server code 13 = text;
option SUNW.JumpStart-server code 14 = text;
option SUNW.terminal-name code 15 = text;
option SUNW.SbootURI code 16 = text;

my environment is all x86 so ymmv with sparc but the error message in paste bin suggests your dhcp implementation is missing something - which distribution/version of bind do you have running?

hth

lukek

On Aug 17, 2013, at 6:23 AM, Sean Alderman salderman1@udayton.edu wrote:

Greetings,
I’m working on building unattended installs for Solaris in v1.2. When I create a SPARC host in Foreman, I get a 400 error in Foreman and the Smary Proxy shows this paste in its log:

http://pastebin.com/wHzT6WNc

I’ve tried a couple of different DHCP configurations to enable jumpstart from a Linux ISC dhcpd host (which runs smart-proxy) but none of them seem to work. There isn’t any specific info on configuring DHCP in the Solaris Unattended Wiki, and I’m really not sure where to go from here.

Your thoughts and comments are much appreciated. Kind regards,
Sean


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.
For more options, visit https://groups.google.com/groups/opt_out.


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.
For more options, visit https://groups.google.com/groups/opt_out.

I'm running oracle Linux 6.4, can't say what specific dhcp package version,
but looking at the options you mention, I put something like that in place,
but still had the error.

Guess this will have to be tabled until Monday. Thanks for taking a look
Luke, I appreciate it!

  • Sean Alderman
    Senior Engineer, UDit Systems Integration

This message had been brought to you by Android Bionic.
Ooops I meant which version of dhcpd?

··· On Aug 17, 2013, at 6:38 AM, Luke Kearney wrote:

Hello,

Not sure that this will help you all that much but these are the vendor
options I have to get solaris to jumpstart

option space SUNW;
option SUNW.root-mount-options code 1 = text;
option SUNW.root-server-ip-address code 2 = ip-address;
option SUNW.root-server-hostname code 3 = text;
option SUNW.root-path-name code 4 = text;
option SUNW.swap-server-ip-address code 5 = ip-address;
option SUNW.swap-file-path code 6 = text;
option SUNW.boot-file-path code 7 = text;
option SUNW.posix-timezone-string code 8 = text;
option SUNW.boot-read-size code 9 = unsigned integer 16;
option SUNW.install-server-ip-address code 10 = ip-address;
option SUNW.install-server-hostname code 11 = text;
option SUNW.install-path code 12 = text;
option SUNW.sysid-config-file-server code 13 = text;
option SUNW.JumpStart-server code 14 = text;
option SUNW.terminal-name code 15 = text;
option SUNW.SbootURI code 16 = text;

my environment is all x86 so ymmv with sparc but the error message in paste
bin suggests your dhcp implementation is missing something - which
distribution/version of bind do you have running?

hth

lukek

On Aug 17, 2013, at 6:23 AM, Sean Alderman salderman1@udayton.edu wrote:

Greetings,
I’m working on building unattended installs for Solaris in v1.2. When I
create a SPARC host in Foreman, I get a 400 error in Foreman and the Smary
Proxy shows this paste in its log:

http://pastebin.com/wHzT6WNc

I’ve tried a couple of different DHCP configurations to enable jumpstart
from a Linux ISC dhcpd host (which runs smart-proxy) but none of them seem
to work. There isn’t any specific info on configuring DHCP in the Solaris
Unattended Wiki, and I’m really not sure where to go from here.

Your thoughts and comments are much appreciated. Kind regards,
Sean


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.
For more options, visit https://groups.google.com/groups/opt_out.


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.
For more options, visit https://groups.google.com/groups/opt_out.


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.
For more options, visit https://groups.google.com/groups/opt_out.

I'm running dhcp-4.1.1-34 on OracleLinux 6.4.

Do you have those SUNW space options in your subnet declaration as well,
but with specific values for that subnet?

I'm looking at our AI server on a different subnet and it's got:

subnet a.b.c.d netmask 255.255.255.0 {
option routers a.b.c.1;
option subnet-mask 255.255.255.0;
option domain-name-servers w.x.y.z, s.t.u.v;

vendor-option-space SUNW;
option SUNW.SrootIP4 <ip of the ai server>;
option SUNW.SrootNM <ip of the ai server>;
option SUNW.SrootPTH <some file path>;
option SUNW.SinstIP4 <ip of the ai server>;
option SUNW.SinstNM <ip of the ai server>;
option SUNW.SinstPTH <some file path>;
option SUNW.SjumpsCF <ai server : some file path>;
}

··· On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote: > > Ooops I meant which version of dhcpd? > > > On Aug 17, 2013, at 6:38 AM, Luke Kearney <lu...@kearney.jp > > wrote: > > Hello, > > Not sure that this will help you all that much but these are the vendor > options I have to get solaris to jumpstart > > option space SUNW; > option SUNW.root-mount-options code 1 = text; > option SUNW.root-server-ip-address code 2 = ip-address; > option SUNW.root-server-hostname code 3 = text; > option SUNW.root-path-name code 4 = text; > option SUNW.swap-server-ip-address code 5 = ip-address; > option SUNW.swap-file-path code 6 = text; > option SUNW.boot-file-path code 7 = text; > option SUNW.posix-timezone-string code 8 = text; > option SUNW.boot-read-size code 9 = unsigned integer 16; > option SUNW.install-server-ip-address code 10 = ip-address; > option SUNW.install-server-hostname code 11 = text; > option SUNW.install-path code 12 = text; > option SUNW.sysid-config-file-server code 13 = text; > option SUNW.JumpStart-server code 14 = text; > option SUNW.terminal-name code 15 = text; > option SUNW.SbootURI code 16 = text; > > > my environment is all x86 so ymmv with sparc but the error message > in paste bin suggests your dhcp implementation is missing something - which > distribution/version of bind do you have running? > > hth > > lukek > > > On Aug 17, 2013, at 6:23 AM, Sean Alderman <salde...@udayton.edu> > wrote: > > Greetings, > I'm working on building unattended installs for Solaris in v1.2. When I > create a SPARC host in Foreman, I get a 400 error in Foreman and the Smary > Proxy shows this paste in its log: > > http://pastebin.com/wHzT6WNc > > I've tried a couple of different DHCP configurations to enable jumpstart > from a Linux ISC dhcpd host (which runs smart-proxy) but none of them seem > to work. There isn't any specific info on configuring DHCP in the Solaris > Unattended Wiki, and I'm really not sure where to go from here. > > Your thoughts and comments are much appreciated. Kind regards, > Sean > > -- > 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-user...@googlegroups.com . > To post to this group, send email to forema...@googlegroups.com > . > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- > 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-user...@googlegroups.com . > To post to this group, send email to forema...@googlegroups.com > . > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/groups/opt_out. > > >

I understand that the smart-proxy adds leases to the file via omapi, but is
there a way to see exactly what the smart proxy is trying to do? I mean
it's clear I don't have my dhcp server configured just right for SPARC +
X86 unattended installs, but I'd like to see what the host reservation its
trying to configure in the leases file looks like. I've got the proxy on
debug level, but that doesn't actually show what its doing, just how what
it did ended.

··· On Tuesday, August 20, 2013 3:16:18 PM UTC-4, Sean Alderman wrote: > > I'm running dhcp-4.1.1-34 on OracleLinux 6.4. > > Do you have those SUNW space options in your subnet declaration as well, > but with specific values for that subnet? > > I'm looking at our AI server on a different subnet and it's got: > > subnet a.b.c.d netmask 255.255.255.0 { > option routers a.b.c.1; > option subnet-mask 255.255.255.0; > option domain-name-servers w.x.y.z, s.t.u.v; > > vendor-option-space SUNW; > option SUNW.SrootIP4 ; > option SUNW.SrootNM ; > option SUNW.SrootPTH ; > option SUNW.SinstIP4 ; > option SUNW.SinstNM ; > option SUNW.SinstPTH ; > option SUNW.SjumpsCF ; > } > > > On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote: >> >> Ooops I meant which version of dhcpd? >> >> >> On Aug 17, 2013, at 6:38 AM, Luke Kearney wrote: >> >> Hello, >> >> Not sure that this will help you all that much but these are the vendor >> options I have to get solaris to jumpstart >> >> option space SUNW; >> option SUNW.root-mount-options code 1 = text; >> option SUNW.root-server-ip-address code 2 = ip-address; >> option SUNW.root-server-hostname code 3 = text; >> option SUNW.root-path-name code 4 = text; >> option SUNW.swap-server-ip-address code 5 = ip-address; >> option SUNW.swap-file-path code 6 = text; >> option SUNW.boot-file-path code 7 = text; >> option SUNW.posix-timezone-string code 8 = text; >> option SUNW.boot-read-size code 9 = unsigned integer 16; >> option SUNW.install-server-ip-address code 10 = ip-address; >> option SUNW.install-server-hostname code 11 = text; >> option SUNW.install-path code 12 = text; >> option SUNW.sysid-config-file-server code 13 = text; >> option SUNW.JumpStart-server code 14 = text; >> option SUNW.terminal-name code 15 = text; >> option SUNW.SbootURI code 16 = text; >> >> >> my environment is all x86 so ymmv with sparc but the error message >> in paste bin suggests your dhcp implementation is missing something - which >> distribution/version of bind do you have running? >> >> hth >> >> lukek >> >> >> On Aug 17, 2013, at 6:23 AM, Sean Alderman wrote: >> >> Greetings, >> I'm working on building unattended installs for Solaris in v1.2. When >> I create a SPARC host in Foreman, I get a 400 error in Foreman and the >> Smary Proxy shows this paste in its log: >> >> http://pastebin.com/wHzT6WNc >> >> I've tried a couple of different DHCP configurations to enable jumpstart >> from a Linux ISC dhcpd host (which runs smart-proxy) but none of them seem >> to work. There isn't any specific info on configuring DHCP in the Solaris >> Unattended Wiki, and I'm really not sure where to go from here. >> >> Your thoughts and comments are much appreciated. Kind regards, >> Sean >> >> -- >> 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-user...@googlegroups.com. >> To post to this group, send email to forema...@googlegroups.com. >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> -- >> 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-user...@googlegroups.com. >> To post to this group, send email to forema...@googlegroups.com. >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >>

Hello,

If you have not done anything terribly exotic I think you'll find the logs for the smart proxy in /var/log/foreman-proxy and they can be pretty verbose. One thing that has tripped me up with smart proxies is making sure that the foreman-proxy user is part of a group that has rights to read the dhcpd config and write to it.

Thanks

··· On Aug 21, 2013, at 5:02 AM, Sean Alderman wrote:

I understand that the smart-proxy adds leases to the file via omapi, but is there a way to see exactly what the smart proxy is trying to do? I mean it’s clear I don’t have my dhcp server configured just right for SPARC + X86 unattended installs, but I’d like to see what the host reservation its trying to configure in the leases file looks like. I’ve got the proxy on debug level, but that doesn’t actually show what its doing, just how what it did ended.

On Tuesday, August 20, 2013 3:16:18 PM UTC-4, Sean Alderman wrote:
I’m running dhcp-4.1.1-34 on OracleLinux 6.4.

Do you have those SUNW space options in your subnet declaration as well, but with specific values for that subnet?

I’m looking at our AI server on a different subnet and it’s got:

subnet a.b.c.d netmask 255.255.255.0 {
option routers a.b.c.1;
option subnet-mask 255.255.255.0;
option domain-name-servers w.x.y.z, s.t.u.v;

vendor-option-space SUNW;
option SUNW.SrootIP4 ;
option SUNW.SrootNM ;
option SUNW.SrootPTH ;
option SUNW.SinstIP4 ;
option SUNW.SinstNM ;
option SUNW.SinstPTH ;
option SUNW.SjumpsCF ;
}

On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote:
Ooops I meant which version of dhcpd?

On Aug 17, 2013, at 6:38 AM, Luke Kearney lu...@kearney.jp wrote:

Hello,

Not sure that this will help you all that much but these are the vendor options I have to get solaris to jumpstart

option space SUNW;
option SUNW.root-mount-options code 1 = text;
option SUNW.root-server-ip-address code 2 = ip-address;
option SUNW.root-server-hostname code 3 = text;
option SUNW.root-path-name code 4 = text;
option SUNW.swap-server-ip-address code 5 = ip-address;
option SUNW.swap-file-path code 6 = text;
option SUNW.boot-file-path code 7 = text;
option SUNW.posix-timezone-string code 8 = text;
option SUNW.boot-read-size code 9 = unsigned integer 16;
option SUNW.install-server-ip-address code 10 = ip-address;
option SUNW.install-server-hostname code 11 = text;
option SUNW.install-path code 12 = text;
option SUNW.sysid-config-file-server code 13 = text;
option SUNW.JumpStart-server code 14 = text;
option SUNW.terminal-name code 15 = text;
option SUNW.SbootURI code 16 = text;

my environment is all x86 so ymmv with sparc but the error message in paste bin suggests your dhcp implementation is missing something - which distribution/version of bind do you have running?

hth

lukek

On Aug 17, 2013, at 6:23 AM, Sean Alderman salde...@udayton.edu wrote:

Greetings,
I’m working on building unattended installs for Solaris in v1.2. When I create a SPARC host in Foreman, I get a 400 error in Foreman and the Smary Proxy shows this paste in its log:

http://pastebin.com/wHzT6WNc

I’ve tried a couple of different DHCP configurations to enable jumpstart from a Linux ISC dhcpd host (which runs smart-proxy) but none of them seem to work. There isn’t any specific info on configuring DHCP in the Solaris Unattended Wiki, and I’m really not sure where to go from here.

Your thoughts and comments are much appreciated. Kind regards,
Sean


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-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


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-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


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.
For more options, visit https://groups.google.com/groups/opt_out.

Yeah, the paste I linked to above is from the foreman-proxy/proxy.log file
in debug mode.

I'm wondering if the smart-proxy writing to the config file is the issue.
I've got Foreman/Puppet managing all my smart-proxy servers…dhcpd is one
of the services puppet is managing. I version control the dhcpd.conf files
in a "site" module and the dhcp module sources the for the given hostname.
Currently I've only got two smart proxies - the one on my foreman server,
and the one on this secure build network.

I'll have to stop puppet, reconfig the permissions on the file let foreman
do its thing and see what changes.

Thanks.

··· On Tuesday, August 20, 2013 4:09:30 PM UTC-4, lu...@kearney.jp wrote: > > Hello, > > If you have not done anything terribly exotic I think you'll find the logs > for the smart proxy in /var/log/foreman-proxy and they can be pretty > verbose. One thing that has tripped me up with smart proxies is making sure > that the foreman-proxy user is part of a group that has rights to read the > dhcpd config and write to it. > > Thanks > > > > On Aug 21, 2013, at 5:02 AM, Sean Alderman <salde...@udayton.edu> > wrote: > > I understand that the smart-proxy adds leases to the file via omapi, but > is there a way to see exactly what the smart proxy is trying to do? I mean > it's clear I don't have my dhcp server configured just right for SPARC + > X86 unattended installs, but I'd like to see what the host reservation its > trying to configure in the leases file looks like. I've got the proxy on > debug level, but that doesn't actually show what its doing, just how what > it did ended. > > On Tuesday, August 20, 2013 3:16:18 PM UTC-4, Sean Alderman wrote: >> >> I'm running dhcp-4.1.1-34 on OracleLinux 6.4. >> >> Do you have those SUNW space options in your subnet declaration as well, >> but with specific values for that subnet? >> >> I'm looking at our AI server on a different subnet and it's got: >> >> subnet a.b.c.d netmask 255.255.255.0 { >> option routers a.b.c.1; >> option subnet-mask 255.255.255.0; >> option domain-name-servers w.x.y.z, s.t.u.v; >> >> vendor-option-space SUNW; >> option SUNW.SrootIP4 ; >> option SUNW.SrootNM ; >> option SUNW.SrootPTH ; >> option SUNW.SinstIP4 ; >> option SUNW.SinstNM ; >> option SUNW.SinstPTH ; >> option SUNW.SjumpsCF ; >> } >> >> >> On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote: >>> >>> Ooops I meant which version of dhcpd? >>> >>> >>> On Aug 17, 2013, at 6:38 AM, Luke Kearney wrote: >>> >>> Hello, >>> >>> Not sure that this will help you all that much but these are the vendor >>> options I have to get solaris to jumpstart >>> >>> option space SUNW; >>> option SUNW.root-mount-options code 1 = text; >>> option SUNW.root-server-ip-address code 2 = ip-address; >>> option SUNW.root-server-hostname code 3 = text; >>> option SUNW.root-path-name code 4 = text; >>> option SUNW.swap-server-ip-address code 5 = ip-address; >>> option SUNW.swap-file-path code 6 = text; >>> option SUNW.boot-file-path code 7 = text; >>> option SUNW.posix-timezone-string code 8 = text; >>> option SUNW.boot-read-size code 9 = unsigned integer 16; >>> option SUNW.install-server-ip-address code 10 = ip-address; >>> option SUNW.install-server-hostname code 11 = text; >>> option SUNW.install-path code 12 = text; >>> option SUNW.sysid-config-file-server code 13 = text; >>> option SUNW.JumpStart-server code 14 = text; >>> option SUNW.terminal-name code 15 = text; >>> option SUNW.SbootURI code 16 = text; >>> >>> >>> my environment is all x86 so ymmv with sparc but the error message >>> in paste bin suggests your dhcp implementation is missing something - which >>> distribution/version of bind do you have running? >>> >>> hth >>> >>> lukek >>> >>> >>> On Aug 17, 2013, at 6:23 AM, Sean Alderman wrote: >>> >>> Greetings, >>> I'm working on building unattended installs for Solaris in v1.2. When >>> I create a SPARC host in Foreman, I get a 400 error in Foreman and the >>> Smary Proxy shows this paste in its log: >>> >>> http://pastebin.com/wHzT6WNc >>> >>> I've tried a couple of different DHCP configurations to enable jumpstart >>> from a Linux ISC dhcpd host (which runs smart-proxy) but none of them seem >>> to work. There isn't any specific info on configuring DHCP in the Solaris >>> Unattended Wiki, and I'm really not sure where to go from here. >>> >>> Your thoughts and comments are much appreciated. Kind regards, >>> Sean >>> >>> -- >>> 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-user...@googlegroups.com. >>> To post to this group, send email to forema...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >>> -- >>> 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-user...@googlegroups.com. >>> To post to this group, send email to forema...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> > -- > 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-user...@googlegroups.com . > To post to this group, send email to forema...@googlegroups.com > . > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/groups/opt_out. > > >

Here's the code it's gacking on… (from isc.rb @ line 26)

def addRecord options = {}

> record = super(options)
>
> omcmd "connect"
> omcmd "set name = &quot;#{record.name}&quot;"
> omcmd "set ip-address = #{record.ip}"
> omcmd "set hardware-address = #{record.mac}"
> omcmd "set hardware-type = 1" # This is ethernet
>
> options = record.options
> # TODO: Extract this block into a generic dhcp options helper
> statements = []
> statements << "filename = \&quot;#{options[:filename]}\&quot;;" if
> options[:filename]
> statements << bootServer(options[:nextServer]) if
> options[:nextServer]
> statements << "option host-name = \&quot;#{record.name}\&quot;;" if
> record.name
>
> omcmd "set statements = &quot;#{statements.join(" ")}&quot;" unless
> statements.empty?
> omcmd "create"
> omcmd("disconnect", "Added DHCP reservation for #{record}")
> record
> end
>

The options are being grabbed from the parent I guess - I'm not a ruby guy,
but it would still seem like I can't see what it's actually trying to pass
to omshell. I was hoping if I could figure that out I might be able to
determine what I need in the server config to make it work.

··· On Tuesday, August 20, 2013 4:28:46 PM UTC-4, Sean Alderman wrote: > > Yeah, the paste I linked to above is from the foreman-proxy/proxy.log file > in debug mode. > > I'm wondering if the smart-proxy writing to the config file is the issue. > I've got Foreman/Puppet managing all my smart-proxy servers...dhcpd is one > of the services puppet is managing. I version control the dhcpd.conf files > in a "site" module and the dhcp module sources the for the given hostname. > Currently I've only got two smart proxies - the one on my foreman server, > and the one on this secure build network. > > I'll have to stop puppet, reconfig the permissions on the file let foreman > do its thing and see what changes. > > Thanks. > > > On Tuesday, August 20, 2013 4:09:30 PM UTC-4, lu...@kearney.jp wrote: >> >> Hello, >> >> If you have not done anything terribly exotic I think you'll find the >> logs for the smart proxy in /var/log/foreman-proxy and they can be pretty >> verbose. One thing that has tripped me up with smart proxies is making sure >> that the foreman-proxy user is part of a group that has rights to read the >> dhcpd config and write to it. >> >> Thanks >> >> >> >> On Aug 21, 2013, at 5:02 AM, Sean Alderman wrote: >> >> I understand that the smart-proxy adds leases to the file via omapi, but >> is there a way to see exactly what the smart proxy is trying to do? I mean >> it's clear I don't have my dhcp server configured just right for SPARC + >> X86 unattended installs, but I'd like to see what the host reservation its >> trying to configure in the leases file looks like. I've got the proxy on >> debug level, but that doesn't actually show what its doing, just how what >> it did ended. >> >> On Tuesday, August 20, 2013 3:16:18 PM UTC-4, Sean Alderman wrote: >>> >>> I'm running dhcp-4.1.1-34 on OracleLinux 6.4. >>> >>> Do you have those SUNW space options in your subnet declaration as well, >>> but with specific values for that subnet? >>> >>> I'm looking at our AI server on a different subnet and it's got: >>> >>> subnet a.b.c.d netmask 255.255.255.0 { >>> option routers a.b.c.1; >>> option subnet-mask 255.255.255.0; >>> option domain-name-servers w.x.y.z, s.t.u.v; >>> >>> vendor-option-space SUNW; >>> option SUNW.SrootIP4 ; >>> option SUNW.SrootNM ; >>> option SUNW.SrootPTH ; >>> option SUNW.SinstIP4 ; >>> option SUNW.SinstNM ; >>> option SUNW.SinstPTH ; >>> option SUNW.SjumpsCF ; >>> } >>> >>> >>> On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote: >>>> >>>> Ooops I meant which version of dhcpd? >>>> >>>> >>>> On Aug 17, 2013, at 6:38 AM, Luke Kearney wrote: >>>> >>>> Hello, >>>> >>>> Not sure that this will help you all that much but these are the vendor >>>> options I have to get solaris to jumpstart >>>> >>>> option space SUNW; >>>> option SUNW.root-mount-options code 1 = text; >>>> option SUNW.root-server-ip-address code 2 = ip-address; >>>> option SUNW.root-server-hostname code 3 = text; >>>> option SUNW.root-path-name code 4 = text; >>>> option SUNW.swap-server-ip-address code 5 = ip-address; >>>> option SUNW.swap-file-path code 6 = text; >>>> option SUNW.boot-file-path code 7 = text; >>>> option SUNW.posix-timezone-string code 8 = text; >>>> option SUNW.boot-read-size code 9 = unsigned integer 16; >>>> option SUNW.install-server-ip-address code 10 = ip-address; >>>> option SUNW.install-server-hostname code 11 = text; >>>> option SUNW.install-path code 12 = text; >>>> option SUNW.sysid-config-file-server code 13 = text; >>>> option SUNW.JumpStart-server code 14 = text; >>>> option SUNW.terminal-name code 15 = text; >>>> option SUNW.SbootURI code 16 = text; >>>> >>>> >>>> my environment is all x86 so ymmv with sparc but the error message >>>> in paste bin suggests your dhcp implementation is missing something - which >>>> distribution/version of bind do you have running? >>>> >>>> hth >>>> >>>> lukek >>>> >>>> >>>> On Aug 17, 2013, at 6:23 AM, Sean Alderman >>>> wrote: >>>> >>>> Greetings, >>>> I'm working on building unattended installs for Solaris in v1.2. >>>> When I create a SPARC host in Foreman, I get a 400 error in Foreman and the >>>> Smary Proxy shows this paste in its log: >>>> >>>> http://pastebin.com/wHzT6WNc >>>> >>>> I've tried a couple of different DHCP configurations to enable >>>> jumpstart from a Linux ISC dhcpd host (which runs smart-proxy) but none of >>>> them seem to work. There isn't any specific info on configuring DHCP in >>>> the Solaris Unattended Wiki, and I'm really not sure where to go from here. >>>> >>>> Your thoughts and comments are much appreciated. Kind regards, >>>> Sean >>>> >>>> -- >>>> 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-user...@googlegroups.com. >>>> To post to this group, send email to forema...@googlegroups.com. >>>> Visit this group at http://groups.google.com/group/foreman-users. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>>> -- >>>> 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-user...@googlegroups.com. >>>> To post to this group, send email to forema...@googlegroups.com. >>>> Visit this group at http://groups.google.com/group/foreman-users. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >> -- >> 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-user...@googlegroups.com. >> To post to this group, send email to forema...@googlegroups.com. >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >>

Not sure that I 100% see the issue but can the foreman-proxy user read and write to /var/lib/dhcpd/dhcpd.leases~ if it can you should be good to go.

··· On Aug 21, 2013, at 5:50 AM, Sean Alderman wrote:

Here’s the code it’s gacking on… (from isc.rb @ line 26)

def addRecord options = {}
  record = super(options)

  omcmd "connect"
  omcmd "set name = \"#{record.name}\""
  omcmd "set ip-address = #{record.ip}"
  omcmd "set hardware-address = #{record.mac}"
  omcmd "set hardware-type = 1"         # This is ethernet

  options = record.options
  # TODO: Extract this block into a generic dhcp options helper
  statements = []
  statements << "filename = \\\"#{options[:filename]}\\\";"  if options[:filename]
  statements << bootServer(options[:nextServer])             if options[:nextServer]
  statements << "option host-name = \\\"#{record.name}\\\";" if record.name

  omcmd "set statements = \"#{statements.join(" ")}\""      unless statements.empty?
  omcmd "create"
  omcmd("disconnect", "Added DHCP reservation for #{record}")
  record
end

The options are being grabbed from the parent I guess - I’m not a ruby guy, but it would still seem like I can’t see what it’s actually trying to pass to omshell. I was hoping if I could figure that out I might be able to determine what I need in the server config to make it work.

On Tuesday, August 20, 2013 4:28:46 PM UTC-4, Sean Alderman wrote:
Yeah, the paste I linked to above is from the foreman-proxy/proxy.log file in debug mode.

I’m wondering if the smart-proxy writing to the config file is the issue. I’ve got Foreman/Puppet managing all my smart-proxy servers…dhcpd is one of the services puppet is managing. I version control the dhcpd.conf files in a “site” module and the dhcp module sources the for the given hostname. Currently I’ve only got two smart proxies - the one on my foreman server, and the one on this secure build network.

I’ll have to stop puppet, reconfig the permissions on the file let foreman do its thing and see what changes.

Thanks.

On Tuesday, August 20, 2013 4:09:30 PM UTC-4, lu...@kearney.jp wrote:
Hello,

If you have not done anything terribly exotic I think you’ll find the logs for the smart proxy in /var/log/foreman-proxy and they can be pretty verbose. One thing that has tripped me up with smart proxies is making sure that the foreman-proxy user is part of a group that has rights to read the dhcpd config and write to it.

Thanks

On Aug 21, 2013, at 5:02 AM, Sean Alderman salde...@udayton.edu wrote:

I understand that the smart-proxy adds leases to the file via omapi, but is there a way to see exactly what the smart proxy is trying to do? I mean it’s clear I don’t have my dhcp server configured just right for SPARC + X86 unattended installs, but I’d like to see what the host reservation its trying to configure in the leases file looks like. I’ve got the proxy on debug level, but that doesn’t actually show what its doing, just how what it did ended.

On Tuesday, August 20, 2013 3:16:18 PM UTC-4, Sean Alderman wrote:
I’m running dhcp-4.1.1-34 on OracleLinux 6.4.

Do you have those SUNW space options in your subnet declaration as well, but with specific values for that subnet?

I’m looking at our AI server on a different subnet and it’s got:

subnet a.b.c.d netmask 255.255.255.0 {
option routers a.b.c.1;
option subnet-mask 255.255.255.0;
option domain-name-servers w.x.y.z, s.t.u.v;

vendor-option-space SUNW;
option SUNW.SrootIP4 ;
option SUNW.SrootNM ;
option SUNW.SrootPTH ;
option SUNW.SinstIP4 ;
option SUNW.SinstNM ;
option SUNW.SinstPTH ;
option SUNW.SjumpsCF ;
}

On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote:
Ooops I meant which version of dhcpd?

On Aug 17, 2013, at 6:38 AM, Luke Kearney lu...@kearney.jp wrote:

Hello,

Not sure that this will help you all that much but these are the vendor options I have to get solaris to jumpstart

option space SUNW;
option SUNW.root-mount-options code 1 = text;
option SUNW.root-server-ip-address code 2 = ip-address;
option SUNW.root-server-hostname code 3 = text;
option SUNW.root-path-name code 4 = text;
option SUNW.swap-server-ip-address code 5 = ip-address;
option SUNW.swap-file-path code 6 = text;
option SUNW.boot-file-path code 7 = text;
option SUNW.posix-timezone-string code 8 = text;
option SUNW.boot-read-size code 9 = unsigned integer 16;
option SUNW.install-server-ip-address code 10 = ip-address;
option SUNW.install-server-hostname code 11 = text;
option SUNW.install-path code 12 = text;
option SUNW.sysid-config-file-server code 13 = text;
option SUNW.JumpStart-server code 14 = text;
option SUNW.terminal-name code 15 = text;
option SUNW.SbootURI code 16 = text;

my environment is all x86 so ymmv with sparc but the error message in paste bin suggests your dhcp implementation is missing something - which distribution/version of bind do you have running?

hth

lukek

On Aug 17, 2013, at 6:23 AM, Sean Alderman salde...@udayton.edu wrote:

Greetings,
I’m working on building unattended installs for Solaris in v1.2. When I create a SPARC host in Foreman, I get a 400 error in Foreman and the Smary Proxy shows this paste in its log:

http://pastebin.com/wHzT6WNc

I’ve tried a couple of different DHCP configurations to enable jumpstart from a Linux ISC dhcpd host (which runs smart-proxy) but none of them seem to work. There isn’t any specific info on configuring DHCP in the Solaris Unattended Wiki, and I’m really not sure where to go from here.

Your thoughts and comments are much appreciated. Kind regards,
Sean


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-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


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-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


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-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


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.
For more options, visit https://groups.google.com/groups/opt_out.

Sorry it took me a while to respond, as i was away… answers inline:

> Here's the code it's gacking on… (from isc.rb @ line 26)
>
> def addRecord options = {}
>> record = super(options)
>>
>> omcmd "connect"
>> omcmd "set name = &quot;#{record.name}&quot;"
>> omcmd "set ip-address = #{record.ip}"
>> omcmd "set hardware-address = #{record.mac}"
>> omcmd "set hardware-type = 1" # This is ethernet
>>
>> options = record.options
>> # TODO: Extract this block into a generic dhcp options helper
>> statements = []
>> statements << "filename = \&quot;#{options[:filename]}\&quot;;" if
>> options[:filename]
>> statements << bootServer(options[:nextServer]) if
>> options[:nextServer]
>> statements << "option host-name = \&quot;#{record.name}\&quot;;" if
>> record.name
>>
>> omcmd "set statements = &quot;#{statements.join(" ")}&quot;" unless
>> statements.empty?
>> omcmd "create"
>> omcmd("disconnect", "Added DHCP reservation for #{record}")
>> record
>> end
>>
>
> The options are being grabbed from the parent I guess - I'm not a ruby
> guy, but it would still seem like I can't see what it's actually trying to
> pass to omshell. I was hoping if I could figure that out I might be able
> to determine what I need in the server config to make it work.
>

The sad truth, is that sparc solaris dhcp vendor options configuration only
works for windows dhcp services, specific vendor options are not supported
in the ISC implementation.

saying that, assuming you already have the specific solaris settings here,
its pretty trivial to add that to the code above, you just need to generate
the option statements correctly via omapi, if you can figure out the exact
syntax omapi expects, we can help from there…

Ohad

··· On Tue, Aug 20, 2013 at 11:50 PM, Sean Alderman wrote:

On Tuesday, August 20, 2013 4:28:46 PM UTC-4, Sean Alderman wrote:

Yeah, the paste I linked to above is from the foreman-proxy/proxy.log
file in debug mode.

I’m wondering if the smart-proxy writing to the config file is the
issue. I’ve got Foreman/Puppet managing all my smart-proxy servers…dhcpd
is one of the services puppet is managing. I version control the
dhcpd.conf files in a “site” module and the dhcp module sources the for the
given hostname. Currently I’ve only got two smart proxies - the one on my
foreman server, and the one on this secure build network.

I’ll have to stop puppet, reconfig the permissions on the file let
foreman do its thing and see what changes.

Thanks.

On Tuesday, August 20, 2013 4:09:30 PM UTC-4, lu...@kearney.jp wrote:

Hello,

If you have not done anything terribly exotic I think you’ll find the
logs for the smart proxy in /var/log/foreman-proxy and they can be pretty
verbose. One thing that has tripped me up with smart proxies is making sure
that the foreman-proxy user is part of a group that has rights to read the
dhcpd config and write to it.

Thanks

On Aug 21, 2013, at 5:02 AM, Sean Alderman salde...@udayton.edu wrote:

I understand that the smart-proxy adds leases to the file via omapi, but
is there a way to see exactly what the smart proxy is trying to do? I mean
it’s clear I don’t have my dhcp server configured just right for SPARC +
X86 unattended installs, but I’d like to see what the host reservation its
trying to configure in the leases file looks like. I’ve got the proxy on
debug level, but that doesn’t actually show what its doing, just how what
it did ended.

On Tuesday, August 20, 2013 3:16:18 PM UTC-4, Sean Alderman wrote:

I’m running dhcp-4.1.1-34 on OracleLinux 6.4.

Do you have those SUNW space options in your subnet declaration as
well, but with specific values for that subnet?

I’m looking at our AI server on a different subnet and it’s got:

subnet a.b.c.d netmask 255.255.255.0 {
option routers a.b.c.1;
option subnet-mask 255.255.255.0;
option domain-name-servers w.x.y.z, s.t.u.v;

vendor-option-space SUNW;
option SUNW.SrootIP4 ;
option SUNW.SrootNM ;
option SUNW.SrootPTH ;
option SUNW.SinstIP4 ;
option SUNW.SinstNM ;
option SUNW.SinstPTH ;
option SUNW.SjumpsCF ;
}

On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote:

Ooops I meant which version of dhcpd?

On Aug 17, 2013, at 6:38 AM, Luke Kearney lu...@kearney.jp wrote:

Hello,

Not sure that this will help you all that much but these are the
vendor options I have to get solaris to jumpstart

option space SUNW;
option SUNW.root-mount-options code 1 = text;
option SUNW.root-server-ip-address code 2 = ip-address;
option SUNW.root-server-hostname code 3 = text;
option SUNW.root-path-name code 4 = text;
option SUNW.swap-server-ip-address code 5 = ip-address;
option SUNW.swap-file-path code 6 = text;
option SUNW.boot-file-path code 7 = text;
option SUNW.posix-timezone-string code 8 = text;
option SUNW.boot-read-size code 9 = unsigned integer 16;
option SUNW.install-server-ip-address code 10 = ip-address;
option SUNW.install-server-hostname code 11 = text;
option SUNW.install-path code 12 = text;
option SUNW.sysid-config-file-server code 13 = text;
option SUNW.JumpStart-server code 14 = text;
option SUNW.terminal-name code 15 = text;
option SUNW.SbootURI code 16 = text;

my environment is all x86 so ymmv with sparc but the error message
in paste bin suggests your dhcp implementation is missing something - which
distribution/version of bind do you have running?

hth

lukek

On Aug 17, 2013, at 6:23 AM, Sean Alderman salde...@udayton.edu >>>>> wrote:

Greetings,
I’m working on building unattended installs for Solaris in v1.2.
When I create a SPARC host in Foreman, I get a 400 error in Foreman and the
Smary Proxy shows this paste in its log:

http://pastebin.com/wHzT6WNc

I’ve tried a couple of different DHCP configurations to enable
jumpstart from a Linux ISC dhcpd host (which runs smart-proxy) but none of
them seem to work. There isn’t any specific info on configuring DHCP in
the Solaris Unattended Wiki, and I’m really not sure where to go from here.

Your thoughts and comments are much appreciated. Kind regards,
Sean


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-user…@googlegroups.**com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/**group/foreman-usershttp://groups.google.com/group/foreman-users
.
For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
.


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-user…@googlegroups.**com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/**group/foreman-usershttp://groups.google.com/group/foreman-users
.
For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
.


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-user…@googlegroups.**com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/**group/foreman-usershttp://groups.google.com/group/foreman-users
.
For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
.


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.
For more options, visit https://groups.google.com/groups/opt_out.

Yes, I can pxe boot install both Linux and Solaris x86 platforms through
this smart proxy… Omapi access should be working.

Keep in mind, I'm trying to setup unattended install for Solaris sparc
platform.

  • Sean Alderman
    Senior Engineer, UDit Systems Integration

This message had been brought to you by Android Bionic.

··· On Aug 20, 2013 5:39 PM, "Greg Sutcliffe" wrote:

Actually, re-reading your log, I’m wondering if the issue that it cannot
connect to omapi - is it configured in dhcpd.conf? I have this:

[greg@diamond ~]$ head -n2 /etc/dhcpd.conf

dhcpd.conf

omapi-port 7911;

[greg@diamond ~]$ netstat -lntp
tcp 0 0 0.0.0.0:7911 0.0.0.0:*
LISTEN -

Not Solaris-specific, I know, but just grasping at straws :wink:


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.
For more options, visit https://groups.google.com/groups/opt_out.

I'm afraid I'm not clear on the exact issue, but to clarify the permissions
side of things, the Proxy shouldn't need write-access to either file. It
needs read-access to /etc/dhcpd.conf to determine the subnet structure, but
it doesn't write to either file. Instead it contacts dhcpd on the omapi
service and tells dhcpd to write the reservation.

As a last resort you can try using omshell to issue the commands yourself -
it's not got the most intuitive interface, sadly, but with a bit of poking
it may help find the problem.

··· On 20 August 2013 21:56, Luke Kearney wrote:

Not sure that I 100% see the issue but can the foreman-proxy user read and
write to /var/lib/dhcpd/dhcpd.leases~ if it can you should be good to go.

Actually, re-reading your log, I'm wondering if the issue that it cannot
connect to omapi - is it configured in dhcpd.conf? I have this:

[greg@diamond ~]$ head -n2 /etc/dhcpd.conf

dhcpd.conf

omapi-port 7911;

[greg@diamond ~]$ netstat -lntp
tcp 0 0 0.0.0.0:7911 0.0.0.0:* LISTEN

··· -

Not Solaris-specific, I know, but just grasping at straws :wink:

For Greg,
Sorry for the semi-snarky response from my phone. Here's the info you
wanted me to check…

[root@provinst ~]# netstat -lntp|grep 7911
tcp 0 0 0.0.0.0:7911 0.0.0.0:*
LISTEN 26417/dhcpd
[root@provinst ~]# grep omapi /etc/dhcpd.conf
omapi-port 7911;
key omapi_key {
omapi-key omapi_key;

Again, I seem to have no problems setting up Solaris and Linux unattended
install hosts off this Smart-Proxy. I'd be happy to give omshell a stab
manually, if I only new what paramters Foreman/Smart-Proxy is trying to set
through omshell. I've never done a SPARC netboot from an ISC dhcp server -
I've always used Solaris's native dhcp-server for jumpstart servers.

There are several HowTos on configuring ISC DHCP servers for jumpstart, but
I'm not sure the follow Foreman's thinking with static leases that override
the relevant parameters.

Reference:

http://www.oracle.com/technetwork/systems/networking/setup-dhcp-jsp-141470.html
2.
http://learnings-on-solaris.blogspot.com/2012/08/isc-dhcp-custom-jumpstart-for-sparc.html
3.
http://sysadminsjourney.com/content/2009/09/18/not-so-typical-jumpstart-part-one/

Each of which use group declarations in the dhcpd.conf with specfic
vendor options. #1 is particularly interesting since it is doing what
we're trying to do here - netboot Linux and Solaris - x86 and SPARC. Still
not sure how Smart-Proxy would handle this since the host definitions are
within the group container.

I'll keep experimenting, but at some point I will have to punt and load
this guy by hand. I hope not, b/c I'm not sure when I'd get another SPARC
to work on unattended install with.

Thanks for the help!

··· On Tuesday, August 20, 2013 8:41:08 PM UTC-4, Sean Alderman wrote: > > Yes, I can pxe boot install both Linux and Solaris x86 platforms through > this smart proxy... Omapi access should be working. > > Keep in mind, I'm trying to setup unattended install for Solaris sparc > platform. > > - Sean Alderman > Senior Engineer, UDit Systems Integration > > This message had been brought to you by Android Bionic. > On Aug 20, 2013 5:39 PM, "Greg Sutcliffe" > wrote: > >> Actually, re-reading your log, I'm wondering if the issue that it cannot >> connect to omapi - is it configured in dhcpd.conf? I have this: >> >> [greg@diamond ~]$ head -n2 /etc/dhcpd.conf >> # dhcpd.conf >> omapi-port 7911; >> >> [greg@diamond ~]$ netstat -lntp >> tcp 0 0 0.0.0.0:7911 0.0.0.0:* >> LISTEN - >> >> Not Solaris-specific, I know, but just grasping at straws ;) >> >> -- >> 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. >> For more options, visit https://groups.google.com/groups/opt_out. >> >

Ohad,

Many thanks for your response. I'll experiement with omshell. From what
I can tell so far, it looks like the "options" statements will need to be a
big hot mess using a one liner like:

> set statements = "option this <this.value>;\noption that
> <that.value>"
>

But I haven't finished keying in all the options listed below manually to
test it yet.

Solaris 10 SPARC 11/06 (update 3)

··· > group { > > use-host-decl-names on; > filename "inetboot.SUN4U.Solaris_10-u3"; > next-server 10.1.67.11; > vendor-option-space SUNW; > option SUNW.JumpStart-server > "soljumpsvr:/export/JUMPSTART/sol10/configs"; > option SUNW.install-server-hostname "soljumpsvr"; > option SUNW.install-server-ip-address 10.1.67.11; > option SUNW.install-path > "/export/JUMPSTART/sol10/11_06_sparc"; > option SUNW.root-server-hostname "soljumpsvr"; > option SUNW.root-server-ip-address 10.1.67.11; > option SUNW.root-path-name > "/export/JUMPSTART/sol10/11_06_sparc/Solaris_10/Tools/Boot"; > option SUNW.sysid-config-file-server = > "soljumpsvr:/export/JUMPSTART/sol10/configs/sysids/default"; } > > host testproxy { hardware ethernet 00:03:ba:27:59:8b; > fixed-address 10.1.51.45; option SUNW.sysid-config-file-server = > "soljumpsvr:/export/JUMPSTART/sol10/configs/sysids/testproxy"; } > } > >

On Friday, August 23, 2013 2:30:36 PM UTC-4, ohad wrote:

Sorry it took me a while to respond, as i was away… answers inline:

On Tue, Aug 20, 2013 at 11:50 PM, Sean Alderman <salde...@udayton.edu<javascript:> > > wrote:

Here’s the code it’s gacking on… (from isc.rb @ line 26)

def addRecord options = {}
  record = super(options)

  omcmd "connect"
  omcmd "set name = \"#{record.name}\""
  omcmd "set ip-address = #{record.ip}"
  omcmd "set hardware-address = #{record.mac}"
  omcmd "set hardware-type = 1"         # This is ethernet

  options = record.options
  # TODO: Extract this block into a generic dhcp options helper
  statements = []
  statements << "filename = \\\"#{options[:filename]}\\\";"  if 

options[:filename]
statements << bootServer(options[:nextServer]) if
options[:nextServer]
statements << “option host-name = \”#{record.name}\";" if
record.name

  omcmd "set statements = \"#{statements.join(" ")}\""      unless 

statements.empty?
omcmd "create"
omcmd(“disconnect”, “Added DHCP reservation for #{record}”)
record
end

The options are being grabbed from the parent I guess - I’m not a ruby
guy, but it would still seem like I can’t see what it’s actually trying to
pass to omshell. I was hoping if I could figure that out I might be able
to determine what I need in the server config to make it work.

The sad truth, is that sparc solaris dhcp vendor options configuration
only works for windows dhcp services, specific vendor options are not
supported in the ISC implementation.

saying that, assuming you already have the specific solaris settings here,
its pretty trivial to add that to the code above, you just need to generate
the option statements correctly via omapi, if you can figure out the exact
syntax omapi expects, we can help from there…

Ohad

On Tuesday, August 20, 2013 4:28:46 PM UTC-4, Sean Alderman wrote:

Yeah, the paste I linked to above is from the foreman-proxy/proxy.log
file in debug mode.

I’m wondering if the smart-proxy writing to the config file is the
issue. I’ve got Foreman/Puppet managing all my smart-proxy servers…dhcpd
is one of the services puppet is managing. I version control the
dhcpd.conf files in a “site” module and the dhcp module sources the for the
given hostname. Currently I’ve only got two smart proxies - the one on my
foreman server, and the one on this secure build network.

I’ll have to stop puppet, reconfig the permissions on the file let
foreman do its thing and see what changes.

Thanks.

On Tuesday, August 20, 2013 4:09:30 PM UTC-4, lu...@kearney.jp wrote:

Hello,

If you have not done anything terribly exotic I think you’ll find the
logs for the smart proxy in /var/log/foreman-proxy and they can be pretty
verbose. One thing that has tripped me up with smart proxies is making sure
that the foreman-proxy user is part of a group that has rights to read the
dhcpd config and write to it.

Thanks

On Aug 21, 2013, at 5:02 AM, Sean Alderman salde...@udayton.edu >>>> wrote:

I understand that the smart-proxy adds leases to the file via omapi,
but is there a way to see exactly what the smart proxy is trying to do? I
mean it’s clear I don’t have my dhcp server configured just right for SPARC

  • X86 unattended installs, but I’d like to see what the host reservation
    its trying to configure in the leases file looks like. I’ve got the proxy
    on debug level, but that doesn’t actually show what its doing, just how
    what it did ended.

On Tuesday, August 20, 2013 3:16:18 PM UTC-4, Sean Alderman wrote:

I’m running dhcp-4.1.1-34 on OracleLinux 6.4.

Do you have those SUNW space options in your subnet declaration as
well, but with specific values for that subnet?

I’m looking at our AI server on a different subnet and it’s got:

subnet a.b.c.d netmask 255.255.255.0 {
option routers a.b.c.1;
option subnet-mask 255.255.255.0;
option domain-name-servers w.x.y.z, s.t.u.v;

vendor-option-space SUNW;
option SUNW.SrootIP4 ;
option SUNW.SrootNM ;
option SUNW.SrootPTH ;
option SUNW.SinstIP4 ;
option SUNW.SinstNM ;
option SUNW.SinstPTH ;
option SUNW.SjumpsCF ;
}

On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote:

Ooops I meant which version of dhcpd?

On Aug 17, 2013, at 6:38 AM, Luke Kearney lu...@kearney.jp wrote:

Hello,

Not sure that this will help you all that much but these are the
vendor options I have to get solaris to jumpstart

option space SUNW;
option SUNW.root-mount-options code 1 = text;
option SUNW.root-server-ip-address code 2 = ip-address;
option SUNW.root-server-hostname code 3 = text;
option SUNW.root-path-name code 4 = text;
option SUNW.swap-server-ip-address code 5 = ip-address;
option SUNW.swap-file-path code 6 = text;
option SUNW.boot-file-path code 7 = text;
option SUNW.posix-timezone-string code 8 = text;
option SUNW.boot-read-size code 9 = unsigned integer 16;
option SUNW.install-server-ip-address code 10 = ip-address;
option SUNW.install-server-hostname code 11 = text;
option SUNW.install-path code 12 = text;
option SUNW.sysid-config-file-server code 13 = text;
option SUNW.JumpStart-server code 14 = text;
option SUNW.terminal-name code 15 = text;
option SUNW.SbootURI code 16 = text;

my environment is all x86 so ymmv with sparc but the error message
in paste bin suggests your dhcp implementation is missing something - which
distribution/version of bind do you have running?

hth

lukek

On Aug 17, 2013, at 6:23 AM, Sean Alderman salde...@udayton.edu >>>>>> wrote:

Greetings,
I’m working on building unattended installs for Solaris in v1.2.
When I create a SPARC host in Foreman, I get a 400 error in Foreman and the
Smary Proxy shows this paste in its log:

http://pastebin.com/wHzT6WNc

I’ve tried a couple of different DHCP configurations to enable
jumpstart from a Linux ISC dhcpd host (which runs smart-proxy) but none of
them seem to work. There isn’t any specific info on configuring DHCP in
the Solaris Unattended Wiki, and I’m really not sure where to go from here.

Your thoughts and comments are much appreciated. Kind regards,
Sean


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-user…@googlegroups.**com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/**group/foreman-usershttp://groups.google.com/group/foreman-users
.
For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
.


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-user…@googlegroups.**com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/**group/foreman-usershttp://groups.google.com/group/foreman-users
.
For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
.


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-user…@googlegroups.**com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/**group/foreman-usershttp://groups.google.com/group/foreman-users
.
For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
.


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-user...@googlegroups.com <javascript:>.
To post to this group, send email to forema...@googlegroups.com<javascript:>
.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

Ohad,
It would appear that omshell does not support setting vendor-option-space
inside a host record, I'm not skilled enough to know if that's an issue
with omshell or dhcpd (perhaps by design). Here's what I tried to do in
omshell by hand:

> create
> obj: host
> name = "ovmh5"
> hardware-address = 00:10:e0:2a:83:ca
> ip-address = 0a:48:16:21
> hardware-type = 00:00:00:00
>

Not sure what the hardware type is, but it stuffed that in there after the
create, I did not set that value.

> > set vendor-option-space = "SUNW"
> obj: host
> name = "ovmh5"
> hardware-address = 00:10:e0:2a:83:ca
> ip-address = 0a:48:16:21
> hardware-type = 00:00:00:00
> vendor-option-space = "SUNW"
> > update
> can't update object: unknown attribute

> obj: host
> name = "ovmh5"
> hardware-address = 00:10:e0:2a:83:ca
> ip-address = 0a:48:16:21
> hardware-type = 00:00:00:00
> vendor-option-space = "SUNW"
>
>
Ok, so no problem creating a simple host record, but when I add the
vendor-option-space it pukes. The example config (pasted above) uses a
group declaration to catch all the SPARC hardware - the Host Records are
nested within. If I define the group inside of the dhcpd.conf file can we
nest the host inside the group via omshell? If so, we wouldn't need to
supercede any options. Like the group declaration above shows I could have
everything defined within, and since Foreman can leverage the dynamic
jumpstart scripts for us, I don't think we'd need to specify any additional
options.

Any thoughts?

··· On Friday, August 23, 2013 4:03:47 PM UTC-4, Sean Alderman wrote: > > Ohad, > > Many thanks for your response. I'll experiement with omshell. From > what I can tell so far, it looks like the "options" statements will need to > be a big hot mess using a one liner like: > > > set statements = "option this ;\noption that >> " >> > > But I haven't finished keying in all the options listed below manually to > test it yet. > > # Solaris 10 SPARC 11/06 (update 3) >> group { >> >> use-host-decl-names on; >> filename "inetboot.SUN4U.Solaris_10-u3"; >> next-server 10.1.67.11; >> vendor-option-space SUNW; >> option SUNW.JumpStart-server >> "soljumpsvr:/export/JUMPSTART/sol10/configs"; >> option SUNW.install-server-hostname "soljumpsvr"; >> option SUNW.install-server-ip-address 10.1.67.11; >> option SUNW.install-path >> "/export/JUMPSTART/sol10/11_06_sparc"; >> option SUNW.root-server-hostname "soljumpsvr"; >> option SUNW.root-server-ip-address 10.1.67.11; >> option SUNW.root-path-name >> "/export/JUMPSTART/sol10/11_06_sparc/Solaris_10/Tools/Boot"; >> option SUNW.sysid-config-file-server = >> "soljumpsvr:/export/JUMPSTART/sol10/configs/sysids/default"; } >> >> host testproxy { hardware ethernet 00:03:ba:27:59:8b; >> fixed-address 10.1.51.45; option SUNW.sysid-config-file-server = >> "soljumpsvr:/export/JUMPSTART/sol10/configs/sysids/testproxy"; } >> } >> >> > > On Friday, August 23, 2013 2:30:36 PM UTC-4, ohad wrote: >> >> Sorry it took me a while to respond, as i was away.. answers inline: >> >> >> On Tue, Aug 20, 2013 at 11:50 PM, Sean Alderman wrote: >> >>> Here's the code it's gacking on... (from isc.rb @ line 26) >>> >>> def addRecord options = {} >>>> record = super(options) >>>> >>>> omcmd "connect" >>>> omcmd "set name = \"#{record.name}\"" >>>> omcmd "set ip-address = #{record.ip}" >>>> omcmd "set hardware-address = #{record.mac}" >>>> omcmd "set hardware-type = 1" # This is ethernet >>>> >>>> options = record.options >>>> # TODO: Extract this block into a generic dhcp options helper >>>> statements = [] >>>> statements <>>> options[:filename] >>>> statements <>>> options[:nextServer] >>>> statements <>>> record.name >>>> >>>> omcmd "set statements = \"#{statements.join(" ")}\"" unless >>>> statements.empty? >>>> omcmd "create" >>>> omcmd("disconnect", "Added DHCP reservation for #{record}") >>>> record >>>> end >>>> >>> >>> The options are being grabbed from the parent I guess - I'm not a ruby >>> guy, but it would still seem like I can't see what it's actually trying to >>> pass to omshell. I was hoping if I could figure that out I might be able >>> to determine what I need in the server config to make it work. >>> >> >> The sad truth, is that sparc solaris dhcp vendor options configuration >> only works for windows dhcp services, specific vendor options are not >> supported in the ISC implementation. >> >> saying that, assuming you already have the specific solaris settings >> here, its pretty trivial to add that to the code above, you just need to >> generate the option statements correctly via omapi, if you can figure out >> the exact syntax omapi expects, we can help from there.. >> >> Ohad >> >>> >>> >>> On Tuesday, August 20, 2013 4:28:46 PM UTC-4, Sean Alderman wrote: >>>> >>>> Yeah, the paste I linked to above is from the foreman-proxy/proxy.log >>>> file in debug mode. >>>> >>>> I'm wondering if the smart-proxy writing to the config file is the >>>> issue. I've got Foreman/Puppet managing all my smart-proxy servers...dhcpd >>>> is one of the services puppet is managing. I version control the >>>> dhcpd.conf files in a "site" module and the dhcp module sources the for the >>>> given hostname. Currently I've only got two smart proxies - the one on my >>>> foreman server, and the one on this secure build network. >>>> >>>> I'll have to stop puppet, reconfig the permissions on the file let >>>> foreman do its thing and see what changes. >>>> >>>> Thanks. >>>> >>>> >>>> On Tuesday, August 20, 2013 4:09:30 PM UTC-4, lu...@kearney.jp wrote: >>>>> >>>>> Hello, >>>>> >>>>> If you have not done anything terribly exotic I think you'll find the >>>>> logs for the smart proxy in /var/log/foreman-proxy and they can be pretty >>>>> verbose. One thing that has tripped me up with smart proxies is making sure >>>>> that the foreman-proxy user is part of a group that has rights to read the >>>>> dhcpd config and write to it. >>>>> >>>>> Thanks >>>>> >>>>> >>>>> >>>>> On Aug 21, 2013, at 5:02 AM, Sean Alderman >>>>> wrote: >>>>> >>>>> I understand that the smart-proxy adds leases to the file via omapi, >>>>> but is there a way to see exactly what the smart proxy is trying to do? I >>>>> mean it's clear I don't have my dhcp server configured just right for SPARC >>>>> + X86 unattended installs, but I'd like to see what the host reservation >>>>> its trying to configure in the leases file looks like. I've got the proxy >>>>> on debug level, but that doesn't actually show what its doing, just how >>>>> what it did ended. >>>>> >>>>> On Tuesday, August 20, 2013 3:16:18 PM UTC-4, Sean Alderman wrote: >>>>>> >>>>>> I'm running dhcp-4.1.1-34 on OracleLinux 6.4. >>>>>> >>>>>> Do you have those SUNW space options in your subnet declaration as >>>>>> well, but with specific values for that subnet? >>>>>> >>>>>> I'm looking at our AI server on a different subnet and it's got: >>>>>> >>>>>> subnet a.b.c.d netmask 255.255.255.0 { >>>>>> option routers a.b.c.1; >>>>>> option subnet-mask 255.255.255.0; >>>>>> option domain-name-servers w.x.y.z, s.t.u.v; >>>>>> >>>>>> vendor-option-space SUNW; >>>>>> option SUNW.SrootIP4 ; >>>>>> option SUNW.SrootNM ; >>>>>> option SUNW.SrootPTH ; >>>>>> option SUNW.SinstIP4 ; >>>>>> option SUNW.SinstNM ; >>>>>> option SUNW.SinstPTH ; >>>>>> option SUNW.SjumpsCF ; >>>>>> } >>>>>> >>>>>> >>>>>> On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote: >>>>>>> >>>>>>> Ooops I meant which version of dhcpd? >>>>>>> >>>>>>> >>>>>>> On Aug 17, 2013, at 6:38 AM, Luke Kearney wrote: >>>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> Not sure that this will help you all that much but these are the >>>>>>> vendor options I have to get solaris to jumpstart >>>>>>> >>>>>>> option space SUNW; >>>>>>> option SUNW.root-mount-options code 1 = text; >>>>>>> option SUNW.root-server-ip-address code 2 = ip-address; >>>>>>> option SUNW.root-server-hostname code 3 = text; >>>>>>> option SUNW.root-path-name code 4 = text; >>>>>>> option SUNW.swap-server-ip-address code 5 = ip-address; >>>>>>> option SUNW.swap-file-path code 6 = text; >>>>>>> option SUNW.boot-file-path code 7 = text; >>>>>>> option SUNW.posix-timezone-string code 8 = text; >>>>>>> option SUNW.boot-read-size code 9 = unsigned integer 16; >>>>>>> option SUNW.install-server-ip-address code 10 = ip-address; >>>>>>> option SUNW.install-server-hostname code 11 = text; >>>>>>> option SUNW.install-path code 12 = text; >>>>>>> option SUNW.sysid-config-file-server code 13 = text; >>>>>>> option SUNW.JumpStart-server code 14 = text; >>>>>>> option SUNW.terminal-name code 15 = text; >>>>>>> option SUNW.SbootURI code 16 = text; >>>>>>> >>>>>>> >>>>>>> my environment is all x86 so ymmv with sparc but the error message >>>>>>> in paste bin suggests your dhcp implementation is missing something - which >>>>>>> distribution/version of bind do you have running? >>>>>>> >>>>>>> hth >>>>>>> >>>>>>> lukek >>>>>>> >>>>>>> >>>>>>> On Aug 17, 2013, at 6:23 AM, Sean Alderman >>>>>>> wrote: >>>>>>> >>>>>>> Greetings, >>>>>>> I'm working on building unattended installs for Solaris in v1.2. >>>>>>> When I create a SPARC host in Foreman, I get a 400 error in Foreman and the >>>>>>> Smary Proxy shows this paste in its log: >>>>>>> >>>>>>> http://pastebin.com/wHzT6WNc >>>>>>> >>>>>>> I've tried a couple of different DHCP configurations to enable >>>>>>> jumpstart from a Linux ISC dhcpd host (which runs smart-proxy) but none of >>>>>>> them seem to work. There isn't any specific info on configuring DHCP in >>>>>>> the Solaris Unattended Wiki, and I'm really not sure where to go from here. >>>>>>> >>>>>>> Your thoughts and comments are much appreciated. Kind regards, >>>>>>> Sean >>>>>>> >>>>>>> -- >>>>>>> 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-user...@googlegroups.**com. >>>>>>> To post to this group, send email to forema...@googlegroups.com. >>>>>>> Visit this group at http://groups.google.com/**group/foreman-users >>>>>>> . >>>>>>> For more options, visit https://groups.google.com/**groups/opt_out >>>>>>> . >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 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-user...@googlegroups.**com. >>>>>>> To post to this group, send email to forema...@googlegroups.com. >>>>>>> Visit this group at http://groups.google.com/**group/foreman-users >>>>>>> . >>>>>>> For more options, visit https://groups.google.com/**groups/opt_out >>>>>>> . >>>>>>> >>>>>>> >>>>>>> >>>>> -- >>>>> 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-user...@googlegroups.**com. >>>>> To post to this group, send email to forema...@googlegroups.com. >>>>> Visit this group at http://groups.google.com/**group/foreman-users >>>>> . >>>>> For more options, visit https://groups.google.com/**groups/opt_out >>>>> . >>>>> >>>>> >>>>> -- >>> 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-user...@googlegroups.com. >>> To post to this group, send email to forema...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/foreman-users. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >>

> Ohad,
> It would appear that omshell does not support setting
> vendor-option-space inside a host record, I'm not skilled enough to know if
> that's an issue with omshell or dhcpd (perhaps by design). Here's what I
> tried to do in omshell by hand:
>
> > create
>> obj: host
>> name = "ovmh5"
>> hardware-address = 00:10:e0:2a:83:ca
>> ip-address = 0a:48:16:21
>> hardware-type = 00:00:00:00
>>
> it should be 1 - thats for ethernet.

>
> Not sure what the hardware type is, but it stuffed that in there after the
> create, I did not set that value.
>
>
>> > set vendor-option-space = "SUNW"
>> obj: host
>> name = "ovmh5"
>> hardware-address = 00:10:e0:2a:83:ca
>> ip-address = 0a:48:16:21
>> hardware-type = 00:00:00:00
>> vendor-option-space = "SUNW"
>> > update
>> can't update object: unknown attribute

>> obj: host
>> name = "ovmh5"
>> hardware-address = 00:10:e0:2a:83:ca
>> ip-address = 0a:48:16:21
>> hardware-type = 00:00:00:00
>> vendor-option-space = "SUNW"
>>
>>
> Ok, so no problem creating a simple host record, but when I add the
> vendor-option-space it pukes. The example config (pasted above) uses a
> group declaration to catch all the SPARC hardware - the Host Records are
> nested within. If I define the group inside of the dhcpd.conf file can we
> nest the host inside the group via omshell? If so, we wouldn't need to
> supercede any options. Like the group declaration above shows I could have
> everything defined within, and since Foreman can leverage the dynamic
> jumpstart scripts for us, I don't think we'd need to specify any additional
> options.
>
> Any thoughts?
>
>
ISC documentaiton really sucks in here, in the past, many options had a
supersede prefix, e.g.g
supersede server.next-server <value>

maybe that helps,
Ohad

··· On Mon, Aug 26, 2013 at 10:54 PM, Sean Alderman wrote:

On Friday, August 23, 2013 4:03:47 PM UTC-4, Sean Alderman wrote:

Ohad,

Many thanks for your response. I’ll experiement with omshell. From
what I can tell so far, it looks like the “options” statements will need to
be a big hot mess using a one liner like:

set statements = “option this <this.value>;\noption that
<that.value>”

But I haven’t finished keying in all the options listed below manually to
test it yet.

Solaris 10 SPARC 11/06 (update 3)

group {

use-host-decl-names on;
filename “inetboot.SUN4U.Solaris_10-u3”**;
next-server 10.1.67.11;
vendor-option-space SUNW;
option SUNW.JumpStart-server
"soljumpsvr:/export/JUMPSTART/**sol10/configs";
option SUNW.install-server-hostname “soljumpsvr”;
option SUNW.install-server-ip-address 10.1.67.11;
option SUNW.install-path
"/export/JUMPSTART/sol10/11_**06_sparc";
option SUNW.root-server-hostname “soljumpsvr”;
option SUNW.root-server-ip-address 10.1.67.11;
option SUNW.root-path-name
"/export/JUMPSTART/sol10/11_**06_sparc/Solaris_10/Tools/**Boot";
option SUNW.sysid-config-file-server =
“soljumpsvr:/export/JUMPSTART/**sol10/configs/sysids/default”; }

host testproxy { hardware ethernet 00:03:ba:27:59:8b;
fixed-address 10.1.51.45; option SUNW.sysid-config-file-server =
“soljumpsvr:/export/JUMPSTART/**sol10/configs/sysids/**testproxy”; }
}

On Friday, August 23, 2013 2:30:36 PM UTC-4, ohad wrote:

Sorry it took me a while to respond, as i was away… answers inline:

On Tue, Aug 20, 2013 at 11:50 PM, Sean Alderman salde...@udayton.eduwrote:

Here’s the code it’s gacking on… (from isc.rb @ line 26)

def addRecord options = {}
  record = super(options)

  omcmd "connect"
  omcmd "set name = \"#{record.name}\""
  omcmd "set ip-address = #{record.ip}"
  omcmd "set hardware-address = #{record.mac}"
  omcmd "set hardware-type = 1"         # This is ethernet

  options = record.options
  # TODO: Extract this block into a generic dhcp options helper
  statements = []
  statements << "filename = \\\"#{options[:filename]}\\\";**"  if

options[:filename]
statements << bootServer(options[:**nextServer]) if
options[:nextServer]
statements << “option host-name = \”#{record.name}\";" if
record.name

  omcmd "set statements = \"#{statements.join(" ")}\""      unless

statements.empty?
omcmd "create"
omcmd(“disconnect”, “Added DHCP reservation for #{record}”)
record
end

The options are being grabbed from the parent I guess - I’m not a ruby
guy, but it would still seem like I can’t see what it’s actually trying to
pass to omshell. I was hoping if I could figure that out I might be able
to determine what I need in the server config to make it work.

The sad truth, is that sparc solaris dhcp vendor options configuration
only works for windows dhcp services, specific vendor options are not
supported in the ISC implementation.

saying that, assuming you already have the specific solaris settings
here, its pretty trivial to add that to the code above, you just need to
generate the option statements correctly via omapi, if you can figure out
the exact syntax omapi expects, we can help from there…

Ohad

On Tuesday, August 20, 2013 4:28:46 PM UTC-4, Sean Alderman wrote:

Yeah, the paste I linked to above is from the foreman-proxy/proxy.log
file in debug mode.

I’m wondering if the smart-proxy writing to the config file is the
issue. I’ve got Foreman/Puppet managing all my smart-proxy servers…dhcpd
is one of the services puppet is managing. I version control the
dhcpd.conf files in a “site” module and the dhcp module sources the for the
given hostname. Currently I’ve only got two smart proxies - the one on my
foreman server, and the one on this secure build network.

I’ll have to stop puppet, reconfig the permissions on the file let
foreman do its thing and see what changes.

Thanks.

On Tuesday, August 20, 2013 4:09:30 PM UTC-4, lu...@kearney.jp wrote:

Hello,

If you have not done anything terribly exotic I think you’ll find the
logs for the smart proxy in /var/log/foreman-proxy and they can be pretty
verbose. One thing that has tripped me up with smart proxies is making sure
that the foreman-proxy user is part of a group that has rights to read the
dhcpd config and write to it.

Thanks

On Aug 21, 2013, at 5:02 AM, Sean Alderman salde...@udayton.edu >>>>>> wrote:

I understand that the smart-proxy adds leases to the file via omapi,
but is there a way to see exactly what the smart proxy is trying to do? I
mean it’s clear I don’t have my dhcp server configured just right for SPARC

  • X86 unattended installs, but I’d like to see what the host reservation
    its trying to configure in the leases file looks like. I’ve got the proxy
    on debug level, but that doesn’t actually show what its doing, just how
    what it did ended.

On Tuesday, August 20, 2013 3:16:18 PM UTC-4, Sean Alderman wrote:

I’m running dhcp-4.1.1-34 on OracleLinux 6.4.

Do you have those SUNW space options in your subnet declaration as
well, but with specific values for that subnet?

I’m looking at our AI server on a different subnet and it’s got:

subnet a.b.c.d netmask 255.255.255.0 {
option routers a.b.c.1;
option subnet-mask 255.255.255.0;
option domain-name-servers w.x.y.z, s.t.u.v;

vendor-option-space SUNW;
option SUNW.SrootIP4 ;
option SUNW.SrootNM ;
option SUNW.SrootPTH ;
option SUNW.SinstIP4 ;
option SUNW.SinstNM ;
option SUNW.SinstPTH ;
option SUNW.SjumpsCF ;
}

On Friday, August 16, 2013 5:40:13 PM UTC-4, lu...@kearney.jp wrote:

Ooops I meant which version of dhcpd?

On Aug 17, 2013, at 6:38 AM, Luke Kearney lu...@kearney.jp wrote:

Hello,

Not sure that this will help you all that much but these are the
vendor options I have to get solaris to jumpstart

option space SUNW;
option SUNW.root-mount-options code 1 = text;
option SUNW.root-server-ip-address code 2 = ip-address;
option SUNW.root-server-hostname code 3 = text;
option SUNW.root-path-name code 4 = text;
option SUNW.swap-server-ip-address code 5 = ip-address;
option SUNW.swap-file-path code 6 = text;
option SUNW.boot-file-path code 7 = text;
option SUNW.posix-timezone-string code 8 = text;
option SUNW.boot-read-size code 9 = unsigned integer 16;
option SUNW.install-server-ip-address code 10 = ip-address;
option SUNW.install-server-hostname code 11 = text;
option SUNW.install-path code 12 = text;
option SUNW.sysid-config-file-server code 13 = text;
option SUNW.JumpStart-server code 14 = text;
option SUNW.terminal-name code 15 = text;
option SUNW.SbootURI code 16 = text;

my environment is all x86 so ymmv with sparc but the error message
in paste bin suggests your dhcp implementation is missing something - which
distribution/version of bind do you have running?

hth

lukek

On Aug 17, 2013, at 6:23 AM, Sean Alderman salde...@udayton.edu >>>>>>>> wrote:

Greetings,
I’m working on building unattended installs for Solaris in v1.2.
When I create a SPARC host in Foreman, I get a 400 error in Foreman and the
Smary Proxy shows this paste in its log:

http://pastebin.com/wHzT6WNc

I’ve tried a couple of different DHCP configurations to enable
jumpstart from a Linux ISC dhcpd host (which runs smart-proxy) but none of
them seem to work. There isn’t any specific info on configuring DHCP in
the Solaris Unattended Wiki, and I’m really not sure where to go from here.

Your thoughts and comments are much appreciated. Kind regards,
Sean


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-user…@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group
/foreman-users http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/grou
ps/opt_out https://groups.google.com/groups/opt_out.


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-user…@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group
/foreman-users http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/grou
ps/opt_out https://groups.google.com/groups/opt_out.


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-user…@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-usershttp://groups.google.com/group/foreman-users
.
For more options, visit https://groups.google.com/groups/opt_outhttps://groups.google.com/groups/opt_out
.


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-user…@googlegroups.**com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/**group/foreman-usershttp://groups.google.com/group/foreman-users
.
For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
.


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.
For more options, visit https://groups.google.com/groups/opt_out.

>
>
>
>
> <snip>
>
>> hardware-type = 00:00:00:00
>>>
>> it should be 1 - thats for ethernet.
>
>
Thanks.

> <snip>
>>
> ISC documentaiton really sucks in here, in the past, many options had a
> supersede prefix, e.g.g
> supersede server.next-server <value>
>
> Well, I do see in the dhcpd.leases file that such directives exist within
the host record. Judging by the omshell syntax I've played with so far I'm
not sure I understand what you're pointing at…

In omshell, when adding a host record I might type:
> ip-address = 10.10.10.10

The corresponding dhcpd.leases file would look like:
fixed-address 10.10.10.10;

The command in omshell doesn't directly equate to the leases file output.
I've just joined the ISC DHCP mailing list. I'm going to see if I can get
any more info from them and I'll report my findings here.

Thanks!

··· On Monday, August 26, 2013 4:19:34 PM UTC-4, ohad wrote:

>
>
>
>>
>>
>>
>>
>> <snip>
>>
>>> hardware-type = 00:00:00:00
>>>>
>>> it should be 1 - thats for ethernet.
>>
>>
> Thanks.
>
>
>> <snip>
>>>
>> ISC documentaiton really sucks in here, in the past, many options had a
>> supersede prefix, e.g.g
>> supersede server.next-server <value>
>>
>> Well, I do see in the dhcpd.leases file that such directives exist within
> the host record. Judging by the omshell syntax I've played with so far I'm
> not sure I understand what you're pointing at…
>
> In omshell, when adding a host record I might type:
> > ip-address = 10.10.10.10
>

UGH that would be

··· On Tuesday, August 27, 2013 4:23:46 PM UTC-4, Sean Alderman wrote: > On Monday, August 26, 2013 4:19:34 PM UTC-4, ohad wrote: > set ip-address = ....

The corresponding dhcpd.leases file would look like:
fixed-address 10.10.10.10;

The command in omshell doesn’t directly equate to the leases file output.
I’ve just joined the ISC DHCP mailing list. I’m going to see if I can get
any more info from them and I’ll report my findings here.

Thanks!