From Fedora Project Wiki
No edit summary |
(mention the F16 appliance image) |
||
Line 3: | Line 3: | ||
|setup= | |setup= | ||
# Follow [[QA:Testcase_add_SSH_keypair_to_OpenStack]] | # Follow [[QA:Testcase_add_SSH_keypair_to_OpenStack]] | ||
# Download the set of images commonly used by OpenStack developers for testing. | |||
# Download the set of tty images commonly used by OpenStack developers for testing. | |||
$> mkdir images | $> mkdir images | ||
Line 12: | Line 13: | ||
|actions= | |actions= | ||
# Register the images. | # 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 | |||
# Register the tty images. | |||
$> sudo nova-manage image convert images/ | $> sudo nova-manage image convert images/ | ||
|results= | |results= | ||
Verify that | Verify that the images have been registered. | ||
$> glance index | $> glance index | ||
ID | 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. | Check for errors in nova logs. |
Revision as of 12:41, 6 March 2012
Description
Test downloading and registering images with OpenStack.
Setup
- Download the set of tty images commonly used by OpenStack developers for testing.
$> mkdir images $> cd images $> curl http://images.ansolabs.com/tty.tgz | tar -xzv $> cd ..
How to test
- 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
- Register the tty images.
$> sudo nova-manage image convert images/
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