oslo_vmware.image_transfer
Module¶Functions and classes for image transfer between ESX/VC & image service.
oslo_vmware.image_transfer.
copy_stream_optimized_disk
(context, timeout_secs, write_handle, **kwargs)¶Copy virtual disk from VMware server to the given write handle.
Parameters: |
|
---|---|
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException, ImageTransferException, ValueError |
oslo_vmware.image_transfer.
download_file
(read_handle, host, port, dc_name, ds_name, cookies, upload_file_path, file_size, cacerts, timeout_secs)¶Download file to VMware server.
Parameters: |
|
---|
oslo_vmware.image_transfer.
download_flat_image
(context, timeout_secs, image_service, image_id, **kwargs)¶Download flat image from the image service to VMware server.
Parameters: |
|
---|---|
Raises: | VimConnectionException, ImageTransferException, ValueError |
oslo_vmware.image_transfer.
download_image
(image, image_meta, session, datastore, rel_path, bypass=True, timeout_secs=7200)¶Transfer an image to a datastore.
Parameters: |
|
---|
oslo_vmware.image_transfer.
download_stream_optimized_data
(context, timeout_secs, read_handle, **kwargs)¶Download stream optimized data to VMware server.
Parameters: |
|
---|---|
Returns: | managed object reference of the VM created for import to VMware server |
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException, ImageTransferException, ValueError |
oslo_vmware.image_transfer.
download_stream_optimized_image
(context, timeout_secs, image_service, image_id, **kwargs)¶Download stream optimized image from image service to VMware server.
Parameters: |
|
---|---|
Returns: | managed object reference of the VM created for import to VMware server |
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException, ImageTransferException, ValueError |
oslo_vmware.image_transfer.
upload_image
(context, timeout_secs, image_service, image_id, owner_id, **kwargs)¶Upload the VM’s disk file to image service.
Parameters: |
|
---|---|
Raises: | VimException, VimFaultException, VimAttributeException, VimSessionOverLoadException, VimConnectionException, ImageTransferException, ValueError |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.