[Puppet Users] Re: Exec doesn't work with Ubuntu Server 10.04 (Lucid Lynx) 64bit
t; >> File[/home/josh/.puppet/var] > >> debug: /File[/home/josh/.puppet/ssl/private_keys]: Autorequiring > >> File[/home/josh/.puppet/ssl] > >> debug: /File[/home/josh/.puppet/ssl/certs]: Autorequiring > >> File[/home/josh/.puppet/ssl] > >> debug: /File[/home/josh/.puppet/var]: Autorequiring > >> File[/home/josh/.puppet] > >> debug: /File[/home/josh/.puppet/ssl/private]: Autorequiring > >> File[/home/josh/.puppet/ssl] > >> debug: /File[/home/josh/.puppet/ssl/public_keys]: Autorequiring > >> File[/home/josh/.puppet/ssl] > >> debug: /File[/home/josh/.puppet/var/state/graphs]: Autorequiring > >> File[/home/josh/.puppet/var/state] > >> debug: /File[/home/josh/.puppet/var/facts]: Autorequiring > >> File[/home/josh/.puppet/var] > >> debug: /File[/home/josh/.puppet/var/run]: Autorequiring > >> File[/home/josh/.puppet/var] > >> debug: Finishing transaction 23715921915640 with 0 changes > >> info: Applying configuration version '1266113402' > >> debug: //testmodule/Exec[TEST-EXEC]: Changing returns > >> debug: //testmodule/Exec[TEST-EXEC]: 1 change(s) > >> debug: //testmodule/Exec[TEST-EXEC]: Executing '/usr/bin/touch /tmp/ > >> >/tmp/123 2>&1' > >> debug: Executing '/usr/bin/touch /tmp/ >/tmp/123 2>&1' > >> notice: //testmodule/Exec[TEST-EXEC]/returns: executed successfully > >> debug: Finishing transaction 23715922698720 with 1 changes > >> j...@debian:~$ > > >> -Josh > > >> On Feb 13, 2010, at 9:49 AM, Nigel Kersten wrote: > > >>> Note too that the same bug should be affecting Debian testing and > >>> unstable if the Ruby 1.8.7 p249 package is the problem. > > >>> Surely we have some people running Debian testing on the list? Seeing > >>> any weird timeouts with execs? > > >>> On Fri, Feb 12, 2010 at 11:57 AM, Joel Ebel wrote: > >>>> Kai, and anyone else experiencing this problem, please go vote, and > >>>> optionally chime in with any details you can provide on: > >>>>https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+bug/520715 > > >>>> Thanks, > >>>> Joel > > >>>> On Feb 11, 3:06 pm, Joel Ebel wrote: > >>>>> I've reported this bug to Ubuntu. The solution is to rebuild ruby1.8 > >>>>> without pthreads, unless ruby fixes the bug upstream which causes the > >>>>> hang. > > >>>>>https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+bug/520715 > > >>>>> Joel > > >>>>> On Feb 10, 2:42 pm, Nigel Kersten wrote: > > >>>>>> On Wed, Feb 10, 2010 at 11:48 AM, Nigel Kersten > >>>>>> wrote: > >>>>>>> On Tue, Feb 9, 2010 at 5:06 AM, kai.steverding > >>>>>>> wrote: > >>>>>>>> I installed ruby on the above server and tried with a simple exec- > >>>>>>>> test : > > >>>>>>>> class testmodule { > >>>>>>>> exec {"TEST-EXEC" : > >>>>>>>> cwd => "/tmp/", > >>>>>>>> command =>"/usr/bin/touch /tmp/ >/tmp/123 > >>>>>>>> 2>&1", > >>>>>>>> timeout => 5, > >>>>>>>> logoutput=> on_failure > >>>>>>>> } > >>>>>>>> } > > >>>>>>>> This simple thing gets the following output from "puppet --debug -- > >>>>>>>> test" > > >>>>>>>> debug: Loaded state in 0.00 seconds > >>>>>>>> info: Applying configuration version '1265719507' > >>>>>>>> debug: //testmodule/Exec[TEST-EXEC]: Changing returns > >>>>>>>> debug: //testmodule/Exec[TEST-EXEC]: 1 change(s) > >>>>>>>> debug: //testmodule/Exec[TEST-EXEC]: Executing '/usr/bin/touch /tmp/ > >>>>>>>> ' > >>>>>>>> debug: Executing '/usr/bin/touch /tmp/' > >>>>>>>> err: //testmodule/Exec[TEST-EXEC]/returns: change from notrun to 0 > >>>>>>>> failed: Command exceeded timeout at /etc/puppet/mod
[Puppet Users] Re: Exec doesn't work with Ubuntu Server 10.04 (Lucid Lynx) 64bit
I could narrow down the problem : The exec call works in 2 CPU machine. It does not work in a single CPU machine. I can switch my VM from 2 to 1 CPU's and break puppet with this change. Here are the informations you requested : r...@puppet:/etc/puppet/manifests# ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] r...@puppet:/etc/puppet/manifests# puppet -V 0.25.4 On 9 Feb., 14:14, James Turnbull wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/02/10 12:06 AM, kai.steverding wrote: > > > I installed ruby on the above server and tried with a simple exec- > > test : > > What Puppet and Ruby versions? > > Regards > > James Turnbull > > - -- > Author of: > * Pro Linux System Administration (http://tinyurl.com/linuxadmin) > * Pulling Strings with Puppet (http://tinyurl.com/pupbook) > * Pro Nagios 2.0 (http://tinyurl.com/pronagios) > * Hardening Linux (http://tinyurl.com/hardeninglinux) > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.7 (Darwin) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > iQEVAwUBS3FfxCFa/lDkFHAyAQIdnwf9FVevibgcjvympW3YknpQQlIbgl9MPJIt > LoB0JKwqFOs4LjXY+YdP8j3CyIMTtQUGHKTpz5OpPLCBUIUN3spaIfZ/jSfCvozE > S20adBerNJKEtU7JMk1JGNCYVimOARJIWf31bpWnB9NiRuJltc7Cjcez/uJ0QpI7 > VGYw3rkjwzZDpE7joajcwyalwaY8KkYprRXXGdQWcBfawyHlay0kj8WUNB4BSK/s > 9I+RxoFtNehfF8yt+r4VkOpuGgYXnKKG+1lTmQQw/0W7WWOuKWkhYYM00wPU46DX > ny3oGioYYIK5eH3YQYVBxVbvH/cD5bLQWgRQT94V2SQ1JkemQiJmPA== > =aQtA > -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Exec doesn't work with Ubuntu Server 10.04 (Lucid Lynx) 64bit
I installed ruby on the above server and tried with a simple exec- test : class testmodule { exec {"TEST-EXEC" : cwd => "/tmp/", command =>"/usr/bin/touch /tmp/ >/tmp/123 2>&1", timeout => 5, logoutput=> on_failure } } This simple thing gets the following output from "puppet --debug -- test" debug: Loaded state in 0.00 seconds info: Applying configuration version '1265719507' debug: //testmodule/Exec[TEST-EXEC]: Changing returns debug: //testmodule/Exec[TEST-EXEC]: 1 change(s) debug: //testmodule/Exec[TEST-EXEC]: Executing '/usr/bin/touch /tmp/ ' debug: Executing '/usr/bin/touch /tmp/' err: //testmodule/Exec[TEST-EXEC]/returns: change from notrun to 0 failed: Command exceeded timeout at /etc/puppet/modules/testmodule/ manifests/init.pp:6 debug: Finishing transaction 69914685668640 with 1 changes debug: Storing state debug: Stored state in 0.01 seconds debug: Format pson not supported for Puppet::Transaction::Report; has not implemented method 'from_pson' debug: Format s not supported for Puppet::Transaction::Report; has not implemented method 'from_s' What can I do ? Did i make a mistake, or is exec broken ? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.