The nova.virt.libvirt.imagecache Module

Image cache manager.

The cache manager implements the specification at http://wiki.openstack.org/nova-image-cache-management.

class ImageCacheManager

Bases: object

verify_base_images(context, all_instances)

Verify that base images are in a reasonable state.

get_info_filename(base_path)

Construct a filename for storing additional information about a base image.

Returns a filename.

is_valid_info_file(path)

Test if a given path matches the pattern for info files.

read_stored_checksum(target, timestamped=True)

Read the checksum.

Returns the checksum (as hex) or None.

read_stored_info(target, field=None, timestamped=False)

Read information about an image.

Returns an empty dictionary if there is no info, just the field value if a field is requested, or the entire dictionary otherwise.

write_stored_checksum(target)

Write a checksum to disk for a file in _base.

write_stored_info(target, field=None, value=None)

Write information about an image.

Previous topic

The nova.virt.libvirt.imagebackend Module

Next topic

The nova.virt.libvirt.utils Module

This Page