The glance_store._drivers.vmware_datastore Module

The glance_store._drivers.vmware_datastore Module

Storage backend for VMware Datastore

class glance_store._drivers.vmware_datastore.Store(conf)

Bases: glance_store.driver.Store

An implementation of the VMware datastore adapter.

OPTIONS = [<oslo_config.cfg.HostAddressOpt object>, <oslo_config.cfg.StrOpt object>, <oslo_config.cfg.StrOpt object>, <oslo_config.cfg.IntOpt object>, <oslo_config.cfg.IntOpt object>, <oslo_config.cfg.StrOpt object>, <oslo_config.cfg.BoolOpt object>, <oslo_config.cfg.StrOpt object>, <oslo_config.cfg.MultiStrOpt object>]
WRITE_CHUNKSIZE = 1048576
add(store, *args, **kwargs)
configure(re_raise_bsc=False)
configure_add()
delete(store, *args, **kwargs)
get(store, *args, **kwargs)
get_schemes()
get_size(location, context=None)

Takes a glance_store.location.Location object that indicates where to find the image file, and returns the size

Parameters:locationglance_store.location.Location object, supplied from glance_store.location.get_location_from_uri()
reset_session()
select_datastore(image_size)

Select a datastore with free space larger than image size.

class glance_store._drivers.vmware_datastore.StoreLocation(store_specs, conf)

Bases: glance_store.location.StoreLocation

Class describing an VMware URI.

An VMware URI can look like any of the following: vsphere://server_host/folder/file_path?dcPath=dc_path&dsName=ds_name

get_uri()
https_url

Creates a https url that can be used to upload/download data from a vmware store.

parse_uri(uri)
process_specs()
glance_store._drivers.vmware_datastore.http_response_iterator(conn, response, size)

Return an iterator for a file-like object.

Parameters:
  • conn – HTTP(S) Connection
  • response – http_client.HTTPResponse object
  • size – Chunk size to iterate with
glance_store._drivers.vmware_datastore.new_session(insecure=False, ca_file=None, total_retries=None)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.