Lab 5 - Managing Images

Return to Workshop

Where Shall We Store Our Golden Images?

Glance

The Image service (glance) project provides a service where users can upload and discover data assets that are meant to be used with other services. This currently includes images and metadata definitions.

Glance image services include discovering, registering, and retrieving virtual machine (VM) images. Glance has a RESTful API that allows querying of VM image metadata as well as retrieval of the actual image.

VM images made available through Glance can be stored in a variety of locations from simple filesystems to object-storage systems like the OpenStack Swift project.

Let's Go Upload a New Image to Glance

Navigate to Compute -> Images using the second level navigation tabs

Lab 5 Figure 1: Project Image Listing

To complete this lab, you need to download the latest Cirros Cloud test image from the link below. Save it to a good location locally to be used later in the lab.

http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img

Click Create Image on the right hand side of the screen
Enter studentX-cirros for Name
Enter Cirros Cloud Image cirros/cubswin:) for Image Description
Click Browse... under File and select the Cirros 3.5 image you downloaded for this lab
Select QCOW2 - QEMU Emulator for Format
Leave Kernel and Ramdisk alone. No need to select them for this lab
Scroll down to finish entering the Image Details

Lab 5 Figure 2: Details for New cirros Image

Leave Architecture empty
Enter 1 for Minimum Disk (GB)
Enter 512 for Minimum RAM (MB) Click Private under Visibility (this image will only be available to your project) Leave Protected set to No
Click Create Image

You will first see the image file get uploaded via a progress bar on the create image dialog

Then the image will begin processing to get uploaded to glance

Lab 5 Figure 3: Details Continued for New cirros Image

You should see a green box appear in the upper right corner of the screen that says something similar to "Success: Image student1-cirros was successfully created."

If you did not, let the intstructor know now

Lab 5 Figure 4: New Image Uploaded to Glance and Available to Project

Summary

We have now learned how to upload images to our project. We can now use these images in our project as a basis for launching instances.

Building images is beyond the scope of this workshop. There are many resources on this topic both officially from Red Hat and from OpenStack.org

In our next lab, we will start working with instances.

Return to Workshop