euca2ools published images do not run on ec2

Bug #702626 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
euca2ools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: euca2ools

images bundled with euca-bundle-img do not run on EC2, but go from 'pending' to 'terminated'.

Below is an example, that can be run on natty, given appropriately configured euca2ools.

-----
bucket=MY_BUCKET_HERE; # set your bucket here
imgurl=http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-i686-12.1_2.6.35-22_1.tar.gz
wget ${imgurl} -O "${imgurl##*/}"
tar -Sxvzf "${imgurl##*/}"
img=$(ls *.img)

n="euca";
rm -Rf ${n}-wd;
mkdir ./${n}-wd;
EC2PRE=${n}- uec-publish-image --kernel aki-407d9529 \
   -vv --rename mytest-${n}.img --working-dir ${n}-wd \
   i386 ${img} $bucket;

The above will result in a ami that will go straight from pending to 'terminated'.
Using the ec2-api-tools and ec2-ami-tools, the instance will start and go to 'running'. Note, that it won't actually boot, but that is a problem with the image itself, not with the tools (some bug with pv-grub loading).

With the newest version of cloud-utils, you can set up your environment variables correctly, and then just change 'euca' to 'ec2' to use the ec2-a[mp]i-tools rather than euca2ools, and it will all work.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: euca2ools 1.3.1-0ubuntu1
ProcVersionSignature: User Name 2.6.37-12.26-virtual 2.6.37
Uname: Linux 2.6.37-12-virtual x86_64
Architecture: amd64
Date: Thu Jan 13 21:46:32 2011
Ec2AMI: ami-4e768727
Ec2AMIManifest: ubuntu-images-testing-us/ubuntu-natty-daily-amd64-server-20110112.manifest.xml
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: m1.large
Ec2Kernel: aki-427d952b
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: euca2ools

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

I believe that I've tested with trunk boto and trunk euca2ools and seen it working there.

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.