[Facter - Bug #17925] Could not retrieve ec2_userdata: 404 Not Found

2012-12-12 Thread tickets

Issue #17925 has been updated by Jeff McCune.

Branch changed from https://github.com/puppetlabs/hiera/pull/98 to 
https://github.com/puppetlabs/facter/pull/375



Bug #17925: Could not retrieve ec2_userdata: 404 Not Found
https://projects.puppetlabs.com/issues/17925#change-78679

Author: Banio Carpenter
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: 
Category: cloud - ec2
Target version: 1.6.x
Keywords: ec2
Branch: https://github.com/puppetlabs/facter/pull/375
Affected Facter version: 1.6.16


# puppet agent --version
3.0.1
# facter --version
1.6.16
# ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]


When puppet agent -t is run on my ec2 instances, it outputs on stderr:
Could not retrieve ec2_userdata: 404 Not Found

This appears to be due to the ec2_userdata function in: 
/usr/lib/ruby/site_ruby/1.8/facter/ec2.rb

When I comment the function I no longer get the error.


-- 
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 puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.



[Facter - Bug #17925] Could not retrieve ec2_userdata: 404 Not Found

2012-12-06 Thread tickets

Issue #17925 has been updated by Jeff McCune.

Project changed from Puppet to Facter



Bug #17925: Could not retrieve ec2_userdata: 404 Not Found
https://projects.puppetlabs.com/issues/17925#change-78320

Author: Banio Carpenter
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: ec2
Branch: 
Affected Facter version: 


# puppet agent --version
3.0.1
# facter --version
1.6.16
# ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]


When puppet agent -t is run on my ec2 instances, it outputs on stderr:
Could not retrieve ec2_userdata: 404 Not Found

This appears to be due to the ec2_userdata function in: 
/usr/lib/ruby/site_ruby/1.8/facter/ec2.rb

When I comment the function I no longer get the error.


-- 
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 puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.



[Facter - Bug #17925] Could not retrieve ec2_userdata: 404 Not Found

2012-12-06 Thread tickets

Issue #17925 has been updated by Jeff McCune.


I believe this problem is caused by Facter not accounting for the situation 
where the EC2 metadata server returns a 404 if there is no user-data set for 
the instance.  I'm going to write a small patch to take this scenario into 
account which should fix the problem.

pre
$ ruby -r 'open-uri' -e 'open http://169.254.169.254/latest/user-data;'
/usr/lib/ruby/1.8/open-uri.rb:277:in `open_http': 404 Not Found 
(OpenURI::HTTPError)
from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /usr/lib/ruby/1.8/open-uri.rb:518:in `open'
from /usr/lib/ruby/1.8/open-uri.rb:30:in `open'
from -e:1
/pre

Bug #17925: Could not retrieve ec2_userdata: 404 Not Found
https://projects.puppetlabs.com/issues/17925#change-78338

Author: Banio Carpenter
Status: Accepted
Priority: Normal
Assignee: 
Category: cloud - ec2
Target version: 1.6.x
Keywords: ec2
Branch: 
Affected Facter version: 1.6.16


# puppet agent --version
3.0.1
# facter --version
1.6.16
# ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]


When puppet agent -t is run on my ec2 instances, it outputs on stderr:
Could not retrieve ec2_userdata: 404 Not Found

This appears to be due to the ec2_userdata function in: 
/usr/lib/ruby/site_ruby/1.8/facter/ec2.rb

When I comment the function I no longer get the error.


-- 
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 puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.