TFTP setup

Hello,

I really can't understand how to enable tftf support in foreman.
Do i have to install a seperate tftp server?

Thanks in advance

Yup. And configure it, before using it with Foreman.

··· On Wed, Oct 13, 2010 at 5:39 PM, vince wrote:

Hello,

I really can’t understand how to enable tftf support in foreman.
Do i have to install a seperate tftp server?

Thanks in advance


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

Thank you for your fast answer.Sorry for the question, now that i've
setup TFTP i realized how much stupid it was.
Now, i've hard times the pxe client fetching the preseed file for my
debian client:
the client pxe boots, loads linux and initrd file, enter the debian
installer, configure the network via dhcp.Then, the http://foreman/unattended/preseed
file can't be fetched and the automatic debian installation stops.
I tried to view the dynamically generated preseed file via
http://foreman/unattended/preseed?spoof=ipaddress, but i got the
"We're sorry, but something went wrong" page.

is my url parameter false in my pxe conf file:
url=http://foreman/unattended/preseed

··· On 13 oct, 14:53, Ohad Levy wrote: > Just to let you guys know, I have a working setup in my lab that > Foreman automatically configures the tftp server too (kernel, initrd and pxe > configurations). > it also work on remote tftp servers though restful api. > the same goes for dhcp... > > beta testers are welcomed :) > > Ohad > > On Wed, Oct 13, 2010 at 2:37 PM, Mohit Chawla > > wrote: > > Yup. And configure it, before using it with Foreman. > > > On Wed, Oct 13, 2010 at 5:39 PM, vince wrote: > > >> Hello, > > >> I really can't understand how to enable tftf support in foreman. > >> Do i have to install a seperate tftp server? > > >> Thanks in advance > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Foreman users" group. > >> To post to this group, send email to foreman-users@googlegroups.com. > >> To unsubscribe from this group, send email to > >> foreman-users+unsubscribe@googlegroups.com > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/foreman-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Foreman users" group. > > To post to this group, send email to foreman-users@googlegroups.com. > > To unsubscribe from this group, send email to > > foreman-users+unsubscribe@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/foreman-users?hl=en. > >

(I'm completely stupid today)
for the first problem, the client doesn't have the same ip address
from dhcp when booting via pxe, than the one in Foreman.issues solved,
i just have to statically assign the same ip to the host via dhcp.

For the spoof preseed, this is what i got in the log:
Processing UnattendedController#preseed (for 134.59.22.73 at
2010-10-13 15:41:52) [GET]
Parameters: {"action"=>"preseed", "controller"=>"unattended",
"spoof"=>"10.0.22.70"}
unattended: conditions string: ip = ?10.0.22.70
Host Load (0.3ms) SELECT * FROM hosts WHERE (ip = '10.0.22.70')
LIMIT 1
Architecture Load (0.1ms) SELECT * FROM architectures WHERE
(architectures.id = 3)
Operatingsystem Load (0.1ms) SELECT * FROM operatingsystems
WHERE (operatingsystems.id = 1)
Domain Load (0.0ms) SELECT * FROM domains WHERE (domains.id
= 2)

NoMethodError (undefined method path' for nil:NilClass): lib/family.rb:18:inmedia_uri'
lib/family.rb:34:in preseed_path' app/controllers/unattended_controller.rb:29:inpreseed'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in
process_request' /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb: 207:inmain_loop'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:
418:in start_request_handler' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb: 358:inhandle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in safe_fork' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb: 354:inhandle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
__send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:inmain_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in
start_synchronously' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:instart'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:
213:in start' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:inspawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:
126:in lookup_or_add' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:inspawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:
80:in synchronize' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb: 79:insynchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in
spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:inspawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in
handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:insend'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:instart_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61

Rendering /usr/share/foreman/public/500.html (500 Internal Server
Error)

Regards

··· On 13 oct, 15:35, Ohad Levy wrote: > On Wed, Oct 13, 2010 at 3:34 PM, vince wrote: > > > Thank you for your fast answer.Sorry for the question, now that i've > > setup TFTP i realized how much stupid it was. > > Now, i've hard times the pxe client fetching the preseed file for my > > debian client: > > the client pxe boots, loads linux and initrd file, enter the debian > > installer, configure the network via dhcp.Then, the > >http://foreman/unattended/preseed > > file can't be fetched and the automatic debian installation stops. > > I tried to view the dynamically generated preseed file via > >http://foreman/unattended/preseed?spoof=ipaddress, but i got the > > "We're sorry, but something went wrong" page. > > > is my url parameter false in my pxe conf file: > > url=http://foreman/unattended/preseed > > > what does the logs say? :) > >

Just to let you guys know, I have a working setup in my lab that
Foreman automatically configures the tftp server too (kernel, initrd and pxe
configurations).
it also work on remote tftp servers though restful api.
the same goes for dhcp…

beta testers are welcomed :slight_smile:

Ohad

··· On Wed, Oct 13, 2010 at 2:37 PM, Mohit Chawla wrote:

Yup. And configure it, before using it with Foreman.

On Wed, Oct 13, 2010 at 5:39 PM, vince ben.online.storage2@gmail.comwrote:

Hello,

I really can’t understand how to enable tftf support in foreman.
Do i have to install a seperate tftp server?

Thanks in advance


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

> Thank you for your fast answer.Sorry for the question, now that i've
> setup TFTP i realized how much stupid it was.
> Now, i've hard times the pxe client fetching the preseed file for my
> debian client:
> the client pxe boots, loads linux and initrd file, enter the debian
> installer, configure the network via dhcp.Then, the
> http://foreman/unattended/preseed
> file can't be fetched and the automatic debian installation stops.
> I tried to view the dynamically generated preseed file via
> http://foreman/unattended/preseed?spoof=ipaddress, but i got the
> "We're sorry, but something went wrong" page.
>
> is my url parameter false in my pxe conf file:
> url=http://foreman/unattended/preseed
>
> what does the logs say? :slight_smile:

··· On Wed, Oct 13, 2010 at 3:34 PM, vince wrote:

I assume you didnt select a media for this host?
make sure you also pointed the media path to a real repo (could be also some
where on the web).

Ohad

··· On Wed, Oct 13, 2010 at 3:47 PM, vince wrote:

On 13 oct, 15:35, Ohad Levy ohadl...@gmail.com wrote:

On Wed, Oct 13, 2010 at 3:34 PM, vince <ben.online.stora...@gmail.com > >wrote:

Thank you for your fast answer.Sorry for the question, now that i’ve
setup TFTP i realized how much stupid it was.
Now, i’ve hard times the pxe client fetching the preseed file for my
debian client:
the client pxe boots, loads linux and initrd file, enter the debian
installer, configure the network via dhcp.Then, the
http://foreman/unattended/preseed
file can’t be fetched and the automatic debian installation stops.
I tried to view the dynamically generated preseed file via
http://foreman/unattended/preseed?spoof=ipaddress, but i got the
“We’re sorry, but something went wrong” page.

is my url parameter false in my pxe conf file:
url=http://foreman/unattended/preseed

what does the logs say? :slight_smile:

(I’m completely stupid today)
for the first problem, the client doesn’t have the same ip address
from dhcp when booting via pxe, than the one in Foreman.issues solved,
i just have to statically assign the same ip to the host via dhcp.

For the spoof preseed, this is what i got in the log:
Processing UnattendedController#preseed (for 134.59.22.73 at
2010-10-13 15:41:52) [GET]
Parameters: {“action”=>“preseed”, “controller”=>“unattended”,
“spoof”=>“10.0.22.70”}
unattended: conditions string: ip = ?10.0.22.70
Host Load (0.3ms) SELECT * FROM hosts WHERE (ip = ‘10.0.22.70’)
LIMIT 1
Architecture Load (0.1ms) SELECT * FROM architectures WHERE
(architectures.id = 3)
Operatingsystem Load (0.1ms) SELECT * FROM operatingsystems
WHERE (operatingsystems.id = 1)
Domain Load (0.0ms) SELECT * FROM domains WHERE (domains.id
= 2)

NoMethodError (undefined method path' for nil:NilClass): lib/family.rb:18:in media_uri’
lib/family.rb:34:in preseed_path' app/controllers/unattended_controller.rb:29:in preseed’
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in
process_request' /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb: 207:in main_loop’
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:
418:in start_request_handler' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb: 358:in handle_spawn_application’
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in safe_fork' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb: 354:in handle_spawn_application’
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
__send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in main_loop’
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in
start_synchronously' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in start’
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:
213:in start' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in spawn_rails_application’
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:
126:in lookup_or_add' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in spawn_rails_application’
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:
80:in synchronize' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb: 79:in synchronize’
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in
spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in spawn_application’
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in
handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in send
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in start_synchronously’
/usr/lib/phusion_passenger/passenger-spawn-server:61

Rendering /usr/share/foreman/public/500.html (500 Internal Server
Error)

Regards


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

You were right, unattended installs are working now

Got some other questions:
*As Foreman needs access to puppetca and /etc/puppet/
namespaceauth.conf, if we want unattended install, the foreman server
and puppetmaster master need to be the same for now?
*Is it possible to configure the foreman log directory path easily:as
i use apache, it would be fine to define /var/log/apache2/, and use
apache logrotate file to rotate automatically the production.log file
and restart apache.

Thanks

··· On 13 oct, 15:54, Ohad Levy wrote: > I assume you didnt select a media for this host?

>
>
> > I assume you didnt select a media for this host?
>
> You were right, unattended installs are working now
>
> Got some other questions:
> *As Foreman needs access to puppetca and /etc/puppet/
> namespaceauth.conf, if we want unattended install, the foreman server
> and puppetmaster master need to be the same for now?
>
for the current stable version yes, there is already a proxy (or gateway, we
are not sure about its name for now :wink: which runs on remote dhcp/dns/tftp
and puppet servers… if you are willing to play with it, let me know, but
its not merged into foreman as of today.

··· On Thu, Oct 14, 2010 at 9:14 AM, vince wrote: > On 13 oct, 15:54, Ohad Levy wrote:

*Is it possible to configure the foreman log directory path easily:as
i use apache, it would be fine to define /var/log/apache2/, and use
apache logrotate file to rotate automatically the production.log file
and restart apache.

You could move the real file and create a link?

Thanks


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.