ec2-run-user-data should be run after ec2-fetch-credentials

Bug #308533 reported by Eric Hammond
4
Affects Status Importance Assigned to Milestone
Ubuntu on EC2
Fix Released
Undecided
Unassigned
Beta2
Invalid
Undecided
Chuck Short
VMBuilder
Invalid
Undecided
Unassigned
ec2-init (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

AMI: ami-814aaee8 (official Ubuntu 8.10 Intrepid 32-bit beta AMI)

In the script

  /etc/init.d/ec2-init

it first calls
  ec2-run-user-data
then
  ec2-fetch-credentials

The order of these should be reversed (first fetch ssh credentials, then run user-data).

The user-data script may take a long time to run (tens of minutes, an hour, or even forever if it has a bug in it) and the current order prevents the user from being able to ssh in to the instance until the script has completed.

Related branches

Eric Hammond (esh)
Changed in vmbuilder:
status: New → Invalid
Eric Hammond (esh)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ec2-init - 0.2

---------------
ec2-init (0.2) jaunty; urgency=low

  * debian/init: Run fetch-credentials before anything else.
    (LP: #308533)
  * Add ec2-set-hostname.py: Queries ec2 metdada for public-hostname
    and then sets it (LP: #316201)

 -- Chuck Short <email address hidden> Tue, 13 Jan 2009 15:20:21 -0500

Changed in ec2-init:
status: New → Fix Released
Revision history for this message
Chuck Short (zulcss) wrote :

This is fixed for jaunty. I will fix it in for the next beta

Changed in ubuntu-on-ec2:
status: New → Fix Committed
Revision history for this message
Chuck Short (zulcss) wrote :

Target for beta2

Changed in ubuntu-on-ec2:
milestone: none → beta2
Revision history for this message
Chuck Short (zulcss) wrote :

mistake

Revision history for this message
Chuck Short (zulcss) wrote :

beta2 is out

Changed in ubuntu-on-ec2:
status: Fix Committed → Fix Released
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.