Issue #4769 has been updated by Nigel Kersten.

Actually, this isn't a puppet bug due to 0.25.5 changes.

It is a ruby stack difference.

<pre>
nig...@wittgenstein:~ $ ruby --version
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
nig...@wittgenstein:~ $ ruby -rtimeout -e "Timeout::timeout(-1) { puts 'meh' }"
meh
</pre>

vs

<pre>

r...@nigelk-vm1:~# ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
r...@nigelk-vm1:~# ruby -rtimeout -e "Timeout::timeout(-1) { puts 'meh' }"
/usr/lib/ruby/1.8/timeout.rb:60:in `sleep': time interval must be positive 
(ArgumentError)
        from /usr/lib/ruby/1.8/timeout.rb:60:in `timeout'
        from /usr/lib/ruby/1.8/timeout.rb:58:in `start'
        from /usr/lib/ruby/1.8/timeout.rb:58:in `timeout'
        from -e:1
</pre>

Looks like we need to start handling negative timeout values ourselves rather 
than just passing them on.
----------------------------------------
Bug #4769: exec no longer supports negative values for timeout.
http://projects.puppetlabs.com/issues/4769

Author: Nigel Kersten
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected version: 0.25.5
Keywords: 
Branch: 


Given this manifest.
<pre>
# cat /tmp/test.pp 
  exec { "dpkg_configure_all":
    environment => "DEBIAN_FRONTEND=noninteractive",
    command     => "/usr/bin/dpkg --configure -a --force-confold",
    timeout     => "-1",
  }
</pre>

as according to the docs a negative timeout disables the timeout.

<pre>
r...@nigelk-vm1:~/maverick/ruby1.8-1.8.7.299# puppet -v --factpath /nofacts 
/tmp/test.pp 
info: Applying configuration version '1284498507'
err: //Exec[dpkg_configure_all]/returns: change from notrun to 0 failed: time 
interval must be positive

This wasn't the case for 0.25.4



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to