euca2ools published images do not run on ec2
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=
imgurl=http://
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
ProcVersionSign
Uname: Linux 2.6.37-12-virtual x86_64
Architecture: amd64
Date: Thu Jan 13 21:46:32 2011
Ec2AMI: ami-4e768727
Ec2AMIManifest: ubuntu-
Ec2Availability
Ec2InstanceType: m1.large
Ec2Kernel: aki-427d952b
Ec2Ramdisk: unavailable
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
LC_MESSAGES=
SHELL=/bin/bash
SourcePackage: euca2ools
I believe that I've tested with trunk boto and trunk euca2ools and seen it working there.