Ellison Marks
2012-Nov-21 19:02 UTC
[Puppet Users] bad network causing puppet runs to hang
Thought I''d ask around here before I go file a bug report. Basically, I have a few machines administered by puppet which have an unreliable internet connection. They talk to my puppetmaster on an internal network and have NAT through a router to the internet. The NAT doesn''t always work. When it doesn''t, puppet runs start to hang with a python script at /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py just never exiting. if I kill it, the run finishes with no changes. Sometimes it will exit on it''s own after a few hours. So, anyone else having this issue, or have I found something new. os: centos 6 puppet: 3.0.1 ruby: 1.8.7 python: 2.6.6 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/huGsYsbVi6UJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
jcbollinger
2012-Nov-26 14:26 UTC
[Puppet Users] Re: bad network causing puppet runs to hang
On Wednesday, November 21, 2012 1:02:02 PM UTC-6, Ellison Marks wrote:> > Thought I''d ask around here before I go file a bug report. > > Basically, I have a few machines administered by puppet which have an > unreliable internet connection. They talk to my puppetmaster on an internal > network and have NAT through a router to the internet. The NAT doesn''t > always work. When it doesn''t, puppet runs start to hang with a python > script at /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py > just never exiting. if I kill it, the run finishes with no changes. > Sometimes it will exit on it''s own after a few hours. > > So, anyone else having this issue, or have I found something new. > >I am not experiencing the issue, probably because my machines are not routinely afflicted with unreliable networking. If the problem is specific to the Yum provider, however, then I would look first at yum. It has some behaviors that could very well cause delays and/or hangs under some types of unfavorable network conditions. Specifically, you should uninstall or disable Yum''s "fastestmirror" plugin on machines that cannot reliably reach the Internet, and you should ensure that all enabled repositories are pointed to repository or mirrorlist URLs that can be reached reliably. The latter will probably require you to maintain local mirrors of all the repositories you use, but that''s a pretty good practice anyway. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/sj_MEi0gibkJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.