From Fedora Project Wiki

(We already setup glance to use keystone so remove that reference)
(nova manage is now out of the equation)
Line 38: Line 38:
Check for errors in nova logs.
Check for errors in logs.
  $> grep -i error /var/log/{nova,glance}/*.log
  $> grep -i error /var/log/glance/*.log
[[Category:OpenStack Test Cases]]
[[Category:OpenStack Test Cases]]
[[Category:Cloud SIG]]
[[Category:Cloud SIG]]

Revision as of 13:26, 8 March 2012


Test downloading and registering images with OpenStack.


  1. Follow QA:Testcase_add_SSH_keypair_to_OpenStack
  1. Download the set of tty images commonly used by OpenStack developers for testing.
$> mkdir images
$> cd images
$> curl | tar -xzv 

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 \
  1. Register the tty images.
 $> KERNEL_ID=$(glance add name=aki-tty is_public=true container_format=aki disk_format=aki --silent-upload \
      < aki-tty/image | cut -f2 -d:) 
 $> RAMDISK_ID=$(glance add name=ari-tty is_public=true container_format=ari disk_format=ari --silent-upload \
      < ari-tty/image | cut -f2 -d:)
 $> IMAGE_ID=$(glance add name=ami-tty is_public=true container_format=ami disk_format=ami "kernel_id=$KERNEL_ID" \
      "ramdisk_id=$RAMDISK_ID" --silent-upload < <(zcat --force ami-tty/image) | cut -f2 -d:)

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 logs.

$> grep -i error /var/log/glance/*.log