Bug 837661

Summary: get_instance_metadata chokes on empty strings - breaks cloud-init
Product: [Fedora] Fedora Reporter: Neil Wilson <neil>
Component: python-botoAssignee: Garrett Holmstrom <gholms>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: gholms, redhat-bugzilla, walters
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-17 17:25:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fix for get-instance-metadata none

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.