boto.utils.get_instance_userdata() hangs for a long time if no userdata is provided

Bug #419306 reported by Soren Hansen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu on EC2
Invalid
High
Soren Hansen
boto
Unknown
Unknown
python-boto (Ubuntu)
Fix Released
High
Soren Hansen
Karmic
Fix Released
High
Soren Hansen

Bug Description

If no user-data is provided for RunInstances,
boto.utils.get_instance_userdata() will hang for a very long time. This
is because boto.utils.retry_url() handles a 404 (which is a valid
response if the user did not supply any userdata) just like a network
failure (which is usually caused by attempting to access the userdata
service before networking is up or before it's been populated and made
available). This needs to be fixed so that a 404 makes it bail out
immediately.

 affects ubuntu/python-boto
 milestone karmic-alpha-5

--
Soren Hansen |
Lead virtualisation engineer | Ubuntu Server Team
Canonical Ltd. | http://www.ubuntu.com/

Scott Moser (smoser)
Changed in ubuntu-on-ec2:
importance: Undecided → High
Changed in python-boto (Ubuntu):
importance: Undecided → High
Steve Langasek (vorlon)
Changed in python-boto (Ubuntu Karmic):
milestone: karmic-alpha-5 → karmic-alpha-6
Matt Zimmerman (mdz)
Changed in python-boto (Ubuntu Karmic):
status: New → Triaged
Changed in ubuntu-on-ec2:
status: New → Confirmed
Thierry Carrez (ttx)
Changed in python-boto (Ubuntu Karmic):
assignee: nobody → Soren Hansen (soren)
Changed in ubuntu-on-ec2:
assignee: nobody → Soren Hansen (soren)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-boto - 1.8d-1ubuntu1

---------------
python-boto (1.8d-1ubuntu1) karmic; urgency=low

  * Fix extremely long timeout when trying to fetch user-data and the
    user did not provide one. (LP: #419306)

 -- Soren Hansen <email address hidden> Tue, 08 Sep 2009 11:03:23 +0200

Changed in python-boto (Ubuntu Karmic):
status: Triaged → Fix Released
Scott Moser (smoser)
tags: added: ec2-images uec-images
Scott Moser (smoser)
Changed in ubuntu-on-ec2:
status: Confirmed → Invalid
Revision history for this message
Scott Moser (smoser) wrote :

I've verified that this is fixed in the nightly build from 20090910, which is now uploaded and registerd as ami-a40fefcd (i386) or ami-a20fefcb (x86_64).

The instance is reachable on boot with or without passing --user-data.

tags: added: iso-testing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.