The cinder.volume.drivers.vmware.read_write_util Module

Classes to handle image files. Collection of classes to handle image upload/download to/from Image service (like Glance image storage and retrieval service) from/to VMware server.

class GlanceFileRead(glance_read_iter)

Bases: object

Glance file read handler class.

close()

A dummy close just to maintain consistency.

get_next()

Get the next item from the image iterator.

read(chunk_size)

Read an item from the queue.

The chunk size is ignored for the Client ImageBodyIterator uses its own CHUNKSIZE.

class VMwareHTTPFile(file_handle)

Bases: object

Base class for VMDK file access over HTTP.

close()

Close the file handle.

find_vmdk_url(lease_info, host)

Find the URL corresponding to a vmdk disk in lease info.

get_size()

Get size of the file to be read.

get_soap_url(scheme, host)

return IPv4/v6 compatible url constructed for host.

read(chunk_size)

Read a chunk of data.

write(data)

Write data to the file.

class VMwareHTTPReadVmdk(session, host, vm_ref, vmdk_path, vmdk_size)

Bases: cinder.volume.drivers.vmware.read_write_util.VMwareHTTPFile

read VMDK over HTTP using VMware HttpNfcLease.

close()

End the lease and close the connection.

read(chunk_size)

Read a chunk from file.

update_progress()

Updates progress to lease.

This call back to the lease is essential to keep the lease alive across long running read operations.

class VMwareHTTPWriteFile(host, data_center_name, datastore_name, cookies, file_path, file_size, scheme='https')

Bases: cinder.volume.drivers.vmware.read_write_util.VMwareHTTPFile

VMware file write handler class.

close()

Get the response and close the connection.

write(data)

Write to the file.

class VMwareHTTPWriteVmdk(session, host, rp_ref, vm_folder_ref, vm_create_spec, vmdk_size)

Bases: cinder.volume.drivers.vmware.read_write_util.VMwareHTTPFile

Write VMDK over HTTP using VMware HttpNfcLease.

close()

End the lease and close the connection.

get_imported_vm()

“Get managed object reference of the VM created for import.

update_progress()

Updates progress to lease.

This call back to the lease is essential to keep the lease alive across long running write operations.

write(data)

Write to the file.

Previous topic

The cinder.volume.drivers.vmware.pbm Module

Next topic

The cinder.volume.drivers.vmware.vim Module

This Page