This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 docs or all OpenStack docs too.

The nova.image.glance Module

Implementation of an image service that uses Glance as the backend

class nova.image.glance.GlanceImageService(client=None)

Bases: nova.image.service.BaseImageService

Provides storage and retrieval of disk image objects within Glance.

create(context, image_meta, data=None)

Store the image data and return the new image id.

:raises AlreadyExists if the image already exist.

delete(context, image_id)

Delete the given image.

:raises NotFound if the image does not exist.

delete_all()

Clears out all images

detail(context)

Calls out to Glance for a list of detailed image information

get(context, image_id, data)

Calls out to Glance for metadata and data and writes data.

index(context)

Calls out to Glance for a list of images available

show(context, image_id)

Returns a dict containing image data for the given opaque image id.

show_by_name(context, name)

Returns a dict containing image data for the given name.

update(context, image_id, image_meta, data=None)

Replace the contents of the given image with the new data.

:raises NotFound if the image does not exist.