Skip to content

Commit

Permalink
Update test script to use microkernel for testing
Browse files Browse the repository at this point in the history
The test script was using an Ubuntu image by default.

This was problematic when their mirrors were getting
hammered during the precise release.

This commit updates the script to use something
much smaller.
  • Loading branch information
Dan Bode committed Apr 30, 2012
1 parent c946ae4 commit 108687d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ext/nova.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
source /root/auth

# get an image to test with
wget http://uec-images.ubuntu.com/releases/11.10/release/ubuntu-11.10-server-cloudimg-amd64-disk1.img
#wget http://uec-images.ubuntu.com/releases/11.10/release/ubuntu-11.10-server-cloudimg-amd64-disk1.img

# import that image into glance
glance add name="Ubuntu 11.10 cloudimg amd64" is_public=true container_format=ovf disk_format=qcow2 < ubuntu-11.10-server-cloudimg-amd64-disk1.img
#glance add name="Ubuntu 11.10 cloudimg amd64" is_public=true container_format=ovf disk_format=qcow2 < ubuntu-11.10-server-cloudimg-amd64-disk1.img

IMAGE_ID=`glance index | grep 'Ubuntu 11.10 cloudimg amd64' | head -1 | awk -F' ' '{print $1}'`
#IMAGE_ID=`glance index | grep 'Ubuntu 11.10 cloudimg amd64' | head -1 | awk -F' ' '{print $1}'`

wget https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img

glance add name='cirros image' is_public=true container_format=bare disk_format=qcow2 < cirros-0.3.0-x86_64-disk.img

IMAGE_ID=`glance index | grep 'cirros image' | head -1 | awk -F' ' '{print $1}'`

# create a pub key
ssh-keygen -f /tmp/id_rsa -t rsa -N ''
Expand Down

0 comments on commit 108687d

Please sign in to comment.