Issue #19390 has been updated by Brian Rak.
Kernel version: 2.6.18-348.el5 x86_64 ---------------------------------------- Bug #19390: Puppet agent getting stuck https://projects.puppetlabs.com/issues/19390#change-83674 Author: Brian Rak Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected Puppet version: 3.1.0 Keywords: Branch: I recently upgraded a number of CentOS 5 nodes from 2.7.x to 3.1. After this upgrade, I've noticed a lot of the nodes are getting 'stuck'. They'll run for awhile then randomly miss a scheduled run. The log files look like this: <pre> Feb 20 20:14:19 dl4 puppet-agent[28390]: Finished catalog run in 8.08 seconds Feb 20 20:44:25 dl4 puppet-agent[29313]: Finished catalog run in 8.36 seconds Feb 20 21:48:47 dl4 puppet-agent[30722]: Finished catalog run in 8.68 seconds </pre> There's no indication of why it didn't run around 21:15, or any sign that it even attempted to. A strace of the process shows: <pre>Process 21298 attached - interrupt to quit select(1, [], [], [], {2395, 665000} <unfinished ...></pre> And the corresponding lsof: <pre># lsof -p 21298 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME puppet 21298 root cwd DIR 8,2 4096 2 / puppet 21298 root rtd DIR 8,2 4096 2 / puppet 21298 root txt REG 8,2 9352 6556131 /usr/bin/ruby puppet 21298 root mem REG 8,2 144776 3401531 /lib64/ld-2.5.so puppet 21298 root mem REG 8,2 1726320 3401532 /lib64/libc-2.5.so puppet 21298 root mem REG 8,2 23360 3401533 /lib64/libdl-2.5.so puppet 21298 root mem REG 8,2 614992 3401542 /lib64/libm-2.5.so puppet 21298 root mem REG 8,2 149968 3401537 /lib64/libpthread-2.5.so puppet 21298 root mem REG 8,2 85544 3401269 /lib64/libz.so.1.2.3 puppet 21298 root mem REG 8,2 95464 3401546 /lib64/libselinux.so.1 puppet 21298 root mem REG 8,2 247496 3401545 /lib64/libsepol.so.1 puppet 21298 root mem REG 8,2 53448 3401538 /lib64/librt-2.5.so puppet 21298 root mem REG 8,2 48600 3401391 /lib64/libcrypt-2.5.so puppet 21298 root mem REG 8,2 58400 3401543 /lib64/libgcc_s-4.1.2-20080825.so.1 puppet 21298 root mem REG 8,2 1367232 3401544 /lib64/libcrypto.so.0.9.8e puppet 21298 root mem REG 8,2 10096 3401550 /lib64/libcom_err.so.2.1 puppet 21298 root mem REG 8,2 9472 3401554 /lib64/libkeyutils-1.2.so puppet 21298 root mem REG 8,2 613928 6561354 /usr/lib64/libkrb5.so.3.3 puppet 21298 root mem REG 8,2 315080 3401552 /lib64/libssl.so.0.9.8e puppet 21298 root mem REG 8,2 92816 3401281 /lib64/libresolv-2.5.so puppet 21298 root mem REG 8,2 153720 6553592 /usr/lib64/libk5crypto.so.3.1 puppet 21298 root mem REG 8,2 35984 6557290 /usr/lib64/libkrb5support.so.0.1 puppet 21298 root mem REG 8,2 190976 6561355 /usr/lib64/libgssapi_krb5.so.2.2 puppet 21298 root mem REG 8,2 919480 6556130 /usr/lib64/libruby.so.1.8.7 puppet 21298 root mem REG 8,2 16296 6712775 /usr/lib64/ruby/1.8/x86_64-linux/thread.so puppet 21298 root mem REG 8,2 9928 6704832 /usr/lib64/ruby/1.8/x86_64-linux/etc.so puppet 21298 root mem REG 8,2 20064 6712770 /usr/lib64/ruby/1.8/x86_64-linux/stringio.so puppet 21298 root mem REG 8,2 116824 6712772 /usr/lib64/ruby/1.8/x86_64-linux/syck.so puppet 21298 root mem REG 8,2 5000 6712764 /usr/lib64/ruby/1.8/x86_64-linux/fcntl.so puppet 21298 root mem REG 8,2 45440 6704845 /usr/lib64/ruby/1.8/x86_64-linux/socket.so puppet 21298 root mem REG 8,2 254832 6712767 /usr/lib64/ruby/1.8/x86_64-linux/openssl.so puppet 21298 root mem REG 8,2 12072 6712759 /usr/lib64/ruby/1.8/x86_64-linux/digest.so puppet 21298 root mem REG 8,2 16064 6704836 /usr/lib64/ruby/1.8/x86_64-linux/iconv.so puppet 21298 root mem REG 8,2 18192 6712771 /usr/lib64/ruby/1.8/x86_64-linux/strscan.so puppet 21298 root mem REG 8,2 53880 3401243 /lib64/libnss_files-2.5.so puppet 21298 root mem REG 8,2 12440 6712773 /usr/lib64/ruby/1.8/x86_64-linux/syslog.so puppet 21298 root mem REG 8,2 5160 6704829 /usr/lib64/ruby/1.8/x86_64-linux/digest/sha1.so puppet 21298 root mem REG 8,2 263072 6704838 /usr/lib64/ruby/1.8/x86_64-linux/nkf.so puppet 21298 root mem REG 8,2 15048 6704841 /usr/lib64/ruby/1.8/x86_64-linux/racc/cparse.so puppet 21298 root mem REG 8,2 5160 6712761 /usr/lib64/ruby/1.8/x86_64-linux/digest/md5.so puppet 21298 root mem REG 8,2 36424 6712777 /usr/lib64/ruby/1.8/x86_64-linux/zlib.so puppet 21298 root mem REG 8,2 87472 6712778 /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/selinux.so puppet 21298 root mem REG 8,2 9600 6705111 /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/shadow.so puppet 21298 root 0r CHR 1,3 0t0 2002 /dev/null puppet 21298 root 1w CHR 1,3 0t0 2002 /dev/null puppet 21298 root 2w CHR 1,3 0t0 2002 /dev/null puppet 21298 root 3u unix 0xffff810633a95200 0t0 65535771 socket</pre> My puppet.cfg has the following: <pre> listen = false runinterval = 1800 splay = false splaylimit = 1800</pre> I left the agent running with '--debug --verbose --logdest /tmp/puppet.log --autoflush true' on the command line, and these were the last few entries in the log: <pre>Thu Feb 21 13:27:34 -0500 2013 Puppet (notice): Finished catalog run in 11.72 seconds Thu Feb 21 13:27:34 -0500 2013 Puppet (debug): Value of 'preferred_serialization_format' (pson) is invalid for report, using default (yaml) Thu Feb 21 13:27:34 -0500 2013 Puppet (debug): report supports formats: b64_zlib_yaml raw yaml; using yaml</pre> I am using the following versions (both from the puppetlabs repo): <pre># puppet --version 3.1.0 # ruby --version ruby 1.8.7 (2012-06-29 patchlevel 370) [x86_64-linux] </pre> I'm also *only* seeing this on my CentOS 5 machines. I have a number of CentOS 6 machines running the same configuration (same puppetmaster as well), and I have not seen them get stuck like this yet. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
