Issue #2074 has been updated by Kelsey Hightower.

Tired to reproduce this issue on a debian VM. My environment looks like this:

* Debian 6
* Puppet 2.7.4

We used the follow class:

<pre>
root@master:~# cat /etc/puppetlabs/puppet/modules/2074/manifests/init.pp 
class 2074 {
  file { "/etc/sudoers.tmp":
    ensure => file,
    source => "/etc/puppetlabs/puppet/modules/2074/files/sudoers",
  }

  exec { "sudoers validation":
    command => "/usr/sbin/visudo -c -f /etc/sudoers.tmp",
    cwd     => "/etc/",
    require => File["/etc/sudoers.tmp"];
  }
}
</pre>

Kicked up the load on the machine to get close to the reporters env:

<pre>
root@master:~# uptime
 14:38:36 up 14:11,  3 users,  load average: 3.60, 2.37, 1.07
</pre>

So we tried recreating this issue 2 different ways, first we ran puppet on the 
command line using

<pre>
root@master:~# puppet agent -t
info: Retrieving plugin
info: Loading facts in facter_dot_d
info: Loading facts in facter_dot_d
info: Loading facts in facter_dot_d
info: Loading facts in facter_dot_d
info: Caching catalog for master.hightowerlabs.com
info: Applying configuration version '1327175146'
notice: /Stage[main]/2074/File[/etc/sudoers.tmp]/ensure: defined content as 
'{md5}c5dab0f2771411ed7e67d6dab60a311f'
notice: /Stage[main]/2074/Exec[sudoers validation]/returns: executed 
successfully
notice: Finished catalog run in 4.06 seconds

root@master:~# ps aux | grep defunct
root      9393  0.0  0.0   3300   744 pts/1    S+   14:46   0:00 grep defunct
</pre>

So notice that there are no defunct processes. 

Then we reran the same test by letting Puppet run as a daemon every 30 seconds 
under the same load mentioned above. Still no defunct processes.

At this point it is not clear how to reproduce this issue.

----------------------------------------
Bug #2074: Lots of Defunct Processes left behind by puppetd's Execs
https://projects.puppetlabs.com/issues/2074

Author: Hari Sekhon
Status: Needs More Information
Priority: High
Assignee: Kelsey Hightower
Category: 
Target version: 
Affected Puppet version: 0.24.8
Keywords: 
Branch: 


I'm running CentOS 5.2 and have lots of <defunct> processes in the process 
table dating back a month.

The processes are all different programs, so I cannot believe that it is the 
fault of any of the programs involved considering they are shells (sh) and 
common programs.

Restarting puppetd clears them. Surely puppetd should have closed them?


-- 
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