[Bug 885998] Re: facter upgrade crashes puppet
David Brewer
885998 at bugs.launchpad.net
Mon Nov 7 22:50:09 UTC 2011
I just ran into this issue this afternoon on my own servers. The issue
is definitely related to the ec2.rb changes in facter 1.5.6-2ubuntu2.2.
As a temporary hack/workaround I was able to get Puppet working again by
manually editing /usr/lib/ruby/1.8/facter/ec2.rb and reverting the
"can_connect?" method to use the code for that method defined in the
previous version of the page. Specifically, see below the commented
"new" version of the method and my inserted "old" version of the method.
# This version of the method causes timeouts even if your machine is not using EC2
#def can_connect?(ip,port,wait_sec=2)
# url = "http://#{ip}:#{port}"
# Timeout::timeout(wait_sec) {open(url)}
# return true
#rescue
# return false
#end
# This version of the method seems to work, although I can't guarantee it works with EC2
# as my servers are not running there
def can_connect?(ip,port,wait_sec=2)
Timeout::timeout(wait_sec) {open(ip, port)}
return true
rescue
return false
end
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to facter in Ubuntu.
https://bugs.launchpad.net/bugs/885998
Title:
facter upgrade crashes puppet
To manage notifications about this bug go to:
https://bugs.launchpad.net/puppet/+bug/885998/+subscriptions
More information about the Ubuntu-server-bugs
mailing list