The nova.virt.vmwareapi.images Module

Utility functions for Image transfer and manipulation.

class VMwareImage(image_id, file_size=0, os_type='otherGuest', adapter_type='lsiLogic', disk_type='preallocated', container_format='bare', file_type='vmdk', linked_clone=None, vif_model='e1000')

Bases: object

file_size_in_kb
classmethod from_image(image_id, image_meta)

Returns VMwareImage, the subset of properties the driver uses.

:param image_id - image id of image :param image_meta - image metadata object we are working with :return: vmware image object :rtype: nova.virt.vmwareapi.images.VmwareImage

is_iso
is_ova
is_sparse
fetch_image(context, instance, host, port, dc_name, ds_name, file_path, cookies=None)

Download image from the glance image server.

fetch_image_ova(context, instance, session, vm_name, ds_name, vm_folder_ref, res_pool_ref)

Download the OVA image from the glance image server to the Nova compute node.

fetch_image_stream_optimized(context, instance, session, vm_name, ds_name, vm_folder_ref, res_pool_ref)

Fetch image from Glance to ESX datastore.

get_vmdk_name_from_ovf(xmlstr)

Parse the OVA descriptor to extract the vmdk name.

start_transfer(context, read_file_handle, data_size, write_file_handle=None, image_id=None, image_meta=None)

Start the data transfer from the reader to the writer. Reader writes to the pipe and the writer reads from the pipe. This means that the total transfer time boils down to the slower of the read/write and not the addition of the two times.

upload_image_stream_optimized(context, image_id, instance, session, vm, vmdk_size)

Upload the snapshotted vm disk file to Glance image server.

upload_iso_to_datastore(iso_path, instance, **kwargs)

Previous topic

The nova.virt.vmwareapi.imagecache Module

Next topic

The nova.virt.vmwareapi.io_util Module

Project Source

This Page