From Fedora Project Wiki
(add tty images without setting any shell variables) |
|
(No difference)
|
Revision as of 14:19, 8 March 2012
Description
Test downloading and registering images with OpenStack.
Setup
How to test
1. Directly register a Fedora 16 appliance image. Note this will download a 200MB image (without a progress bar)
$> glance add name=f16 is_public=true disk_format=qcow2 container_format=ovf \ copy_from=http://berrange.fedorapeople.org/images/2012-02-29/f16-x86_64-openstack-sda.qcow2
2. Download and register the tty images
$> mkdir images $> cd images $> curl http://images.ansolabs.com/tty.tgz | tar -xzv $> glance add name=aki-tty is_public=true container_format=aki disk_format=aki < aki-tty/image $> glance add name=ari-tty is_public=true container_format=ari disk_format=ari < ari-tty/image $> glance add name=ami-tty is_public=true container_format=ami disk_format=ami \ "kernel_id=$(glance index | awk '/aki-tty/ {print $1}')" \ "ramdisk_id=$(glance index | awk '/ari-tty/ {print $1}')" \ < <(zcat --force ami-tty/image)
Expected Results
Verify that the images have been registered.
$> glance index ID Name Disk Format Container Format Size ------------------------------------ ------------------------------ -------------------- -------------------- -------------- xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ami-tty ami ami 25165824 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ari-tty ari ari 5882349 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx aki-tty aki aki 4404752 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx f16 qcow2 ovf 213581824
Check for errors in nova logs.
$> grep -i error /var/log/{nova,glance}/*.log