Bug 837661 - get_instance_metadata chokes on empty strings - breaks cloud-init
Summary: get_instance_metadata chokes on empty strings - breaks cloud-init
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-boto
Version: 17
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Garrett Holmstrom
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-04 15:46 UTC by Neil Wilson
Modified: 2012-07-17 17:25 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-07-17 17:25:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix for get-instance-metadata (504 bytes, patch)
2012-07-04 15:55 UTC, Neil Wilson
no flags Details | Diff

Description Neil Wilson 2012-07-04 15:46:12 UTC
Description of problem:

An alteration to boto to support json metadata has broken the 'get_instance_metadata' routing in 'utils'. This stops the 'cloud-init' service from working properly where any of the meta-data fields are empty (eg public ip).


Version-Release number of selected component (if applicable):

2.5.1-1.fc17


How reproducible:

Run cloudinit against a EC2 interface with a blank public ip.

Comment 1 Neil Wilson 2012-07-04 15:55:56 UTC
Created attachment 596253 [details]
Fix for get-instance-metadata

Comment 2 Fedora Update System 2012-07-09 03:22:21 UTC
python-boto-2.5.2-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/FEDORA-2012-10373/python-boto-2.5.2-1.fc17

Comment 3 Garrett Holmstrom 2012-07-09 03:31:51 UTC
Thanks for the report!

The update system appears to have failed to mention that this update is already in updates-testing.  If you're interested in testing the fix for this bug then please run:

    yum --enablerepo=updates-testing update python-boto

...and then give it +1 here if the package works:

    https://admin.fedoraproject.org/updates/FEDORA-2012-10373

Comment 4 Fedora Update System 2012-07-17 17:25:05 UTC
python-boto-2.5.2-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.