can_connect function inside ec2.rb always return false
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
facter (Ubuntu) |
Fix Released
|
High
|
Adam Gandelman | ||
Lucid |
Fix Released
|
High
|
Unassigned | ||
Maverick |
Fix Released
|
High
|
Unassigned | ||
Natty |
Fix Released
|
High
|
Unassigned | ||
Oneiric |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Adam Gandelman |
Bug Description
Binary package hint: facter
the can_connect function in ec2.rb always return false.
I modified the code as follows and it seems to have fixed the issue:
Before (Line 9 in ec2.rb): Timeout:
After: Timeout:
After that change, the module seems to work properly in EC2 instances.
======
IMPACT:
* Any puppet configuration that relies on EC2 related facts will fail entirely or fail to propagate the correct configuration on nodes running lucid, maverick, and natty.
ADDRESSED:
* This was fixed upstream and in ubuntu as of oneiric. The proposed patch fixes argument handling in a test of the ec2 metadata service.
REPRODUCE:
* Launch any AMI of an affected series, 'apt-get install facter' and 'facter | grep ec2' should report none of the ec2 related facts.
REGRESSION POTENTIAL:
* The potential regression is minimal as the fix enables functionality that was previously broken.
======
Related branches
- Luke Yelavich (community): Approve
- James Page: Needs Fixing
- Ubuntu branches: Pending requested
-
Diff: 152 lines (+64/-38)7 files modified.pc/applied-patches (+0/-1)
.pc/debian-changes-1.5.8-2ubuntu2/lib/facter/ec2.rb (+0/-35)
debian/changelog (+10/-0)
debian/patches/fix_ec2_metadata_facts.patch (+22/-0)
debian/patches/reload_all_facts.patch (+28/-0)
debian/patches/series (+2/-0)
lib/facter/ec2.rb (+2/-2)
- Luke Yelavich (community): Approve
-
Diff: 51 lines (+18/-2)3 files modifieddebian/changelog (+11/-0)
lib/facter/ec2.rb (+2/-1)
lib/facter/util/collection.rb (+5/-1)
- Luke Yelavich (community): Approve
-
Diff: 51 lines (+18/-2)3 files modifieddebian/changelog (+11/-0)
lib/facter/ec2.rb (+2/-1)
lib/facter/util/collection.rb (+5/-1)
- Ubuntu Development Team: Pending requested
-
Diff: 28 lines (+10/-1)2 files modifieddebian/changelog (+7/-0)
lib/facter/ec2.rb (+3/-1)
- Ubuntu Development Team: Pending requested
-
Diff: 28 lines (+10/-1)2 files modifieddebian/changelog (+7/-0)
lib/facter/ec2.rb (+3/-1)
- Ubuntu Development Team: Pending requested
-
Diff: 58 lines (+20/-5)3 files modifieddebian/changelog (+8/-0)
debian/patches/fix_ec2_metadata_facts.patch (+9/-4)
lib/facter/ec2.rb (+3/-1)
Changed in facter (Ubuntu): | |
assignee: | David Lowes (davidl-david) → Adam Gandelman (gandelman-a) |
importance: | Low → High |
Changed in facter (Ubuntu): | |
status: | Confirmed → In Progress |
description: | updated |
Changed in facter (Ubuntu Lucid): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in facter (Ubuntu Maverick): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in facter (Ubuntu Natty): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in facter (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in facter (Ubuntu Oneiric): | |
status: | New → Fix Released |
tags: |
added: verification-done removed: verification-needed |
The meta-data URL also seems to be wrong: 169.254. 169.254/ 2008-02- 01/meta- data 169.254. 169.254/ latest/ meta-data
http://
It should be:
http://