Issue #17925 has been updated by Josh Cooper.

Status changed from Unreviewed to Accepted
Keywords set to ec2

Wow, deja vu. On my ec2 instance, I do see the error message (since I haven't 
specified EC2 userdata), but I also get the correct set of EC2 facts:
<pre>
Could not retrieve ec2_userdata: 404 Not Found
...
ec2_ami_id => ami-XXXXXXX
ec2_ami_launch_index => 0
ec2_ami_manifest_path => (unknown)
ec2_block_device_mapping_ami => /dev/sda1
ec2_block_device_mapping_ephemeral0 => /dev/sdb
ec2_block_device_mapping_root => /dev/sda1
ec2_hostname => domU-12-31-39-03-38-9C.compute-1.internal
ec2_instance_id => XXXXXXXX
ec2_instance_type => t1.micro
ec2_kernel_id => aki-XXXXXX
ec2_local_hostname => domU-12-31-39-03-38-9C.compute-1.internal
ec2_local_ipv4 => XX.XX.XX.XX
ec2_placement_availability_zone => us-east-1d
ec2_profile => default-paravirtual
ec2_public_hostname => ec2-XX-XX-XX-XX.compute-1.amazonaws.com
ec2_public_ipv4 => XX.XX.XX.XX
ec2_public_keys_0_openssh_key => XXXX
ec2_reservation_id => XXXXX
ec2_security_groups => default
</pre>

Are you seeing similar facts too? And the issue is just the harmless error 
message?

Prior to commit #e3da3c7b7f9b215929c6d7ec654e3577ff1697bb we used to perform 
the open call outside of the setcode block and explicitly rescue and ignore 
OpenURI::HTTPErrors.
----------------------------------------
Bug #17925: Could not retrieve ec2_userdata: 404 Not Found
https://projects.puppetlabs.com/issues/17925#change-78053

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


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