Nutanix OpenStack Part IV – Image Management

This will be the forth part of my Nutanix OpenStack blog series and it will cover the OpenStack Glance Image service. The following blog posts has been released so far:

It’s now time to create another object needed to make it possible for end users to leverage the solution. OpenStack Glance Image service interacts with Acropolis via the driver provided in the Nutanix OVM. The service includes discovery, registration and can retrieve VM images which can be used as templates for new VMs. The Glance service be accessed via e.g. REST API where a copy or snapshot process can be initiated.

By taking a quick look in the Image section of the OpenStack dashboard via Compute -> Images we can see there are no Images available.

Screen Shot 2016-05-10 at 08.53.00

By using the OVM cli we can verify the same thing via the Glance service using the following commands:

  •  source keystonerc_admin
  •  glance image-list
    Screen Shot 2016-05-10 at 09.00.50

A quick look in the Nutanix PRISM Image Configuration section where we can see a few existing images but non is available in OpenStack.

Screen Shot 2016-05-10 at 08.52.50

Just follow the below outlined simple steps to upload an Image to the OpenStack controller Glance service:

  • Click Create Image in the OpenStack Dashboard -> Image section
    Screen Shot 2016-05-10 at 09.09.28
  • Fill in the required information. In my case i included the below information before i hit the Create Image button/link:
    • Name = CentOS-6.4
    • Description = CentOS version 6.4 64 bit
    • For Image Source i used Image Location where you can specify a URL to the image you want to upload. In my case = http://10.10.x.a/CentOS-6.4-x86_64-bin-DVD1.0.iso
    • Format = ISO Optical Disk Image
      Screen Shot 2016-05-10 at 10.53.43
      Screen Shot 2016-05-10 at 09.08.47

You can monitor the progress via OpenStack UI and Nutanix PRISM:

  • OpenStack UI
    Screen Shot 2016-05-10 at 10.53.56
  • Nutanix PRISM
    Screen Shot 2016-05-10 at 10.54.25

When the upload progress is finished it will look like this:

  • OpenStack UI
    Screen Shot 2016-05-10 at 11.04.49
  • Nutanix PRISM

If you click the image you’ll get more details about it including:

  • Name
  • Description
  • ID
  • Owner
  • Status
  • Public
  • Protected
  • Checksum
  • Created
  • Updated
  • Size
  • Container Format
  • Disk FormatCustom Properties
Screen Shot 2016-08-03 at 21.30.24

This information can also be viewed using the glance command and the Image ID. In this case i used the following command:

 glance image-show –human-readable 7dfb7c3c-11e1-4f94-b266-4d607c2f7ac3
The ID was retrieved by running glance image-list
Screen Shot 2016-08-03 at 21.45.23

In Nutanix PRISM you’ll find the CentOS ISO in the Image Configuration.
Screen Shot 2016-08-03 at 21.49.33

As you can see the Image is stored in the Nutanix ECP cluster and not in the OVM itself. However, Image metadata is stored in the OpenStack controller Glance service. Images should only be managed via the OpenStack dashboard and not directly via Nutanix PRISM.