glance_store._drivers.cinder Module¶Storage backend for Cinder
glance_store._drivers.cinder.Store(*args, **kargs)¶Bases: glance_store.driver.Store
Cinder backend store adapter.
EXAMPLE_URL = 'cinder://<VOLUME_ID>'¶OPTIONS = [<oslo_config.cfg.StrOpt object at 0x39aa110>, <oslo_config.cfg.StrOpt object at 0x39aa490>, <oslo_config.cfg.StrOpt object at 0x39aa510>, <oslo_config.cfg.StrOpt object at 0x39aa5d0>, <oslo_config.cfg.IntOpt object at 0x39aa650>, <oslo_config.cfg.IntOpt object at 0x39a2550>, <oslo_config.cfg.BoolOpt object at 0x39aa710>, <oslo_config.cfg.StrOpt object at 0x39aa790>, <oslo_config.cfg.StrOpt object at 0x39aa810>, <oslo_config.cfg.StrOpt object at 0x39aa890>, <oslo_config.cfg.StrOpt object at 0x39aa910>, <oslo_config.cfg.StrOpt object at 0x39aa990>, <oslo_config.cfg.StrOpt object at 0x39aaa10>]¶add(store, *args, **kwargs)¶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 image size
| Parameters: | location – glance_store.location.Location object, supplied from glance_store.location.get_location_from_uri() |
|---|---|
| Raises: | glance_store.exceptions.NotFound if image does not exist |
| Return type: | int |
glance_store._drivers.cinder.StoreLocation(store_specs, conf)¶Bases: glance_store.location.StoreLocation
Class describing a Cinder URI.
get_uri()¶parse_uri(uri)¶process_specs()¶glance_store._drivers.cinder.get_cinderclient(conf, context=None)¶glance_store._drivers.cinder.get_root_helper()¶glance_store._drivers.cinder.is_user_overriden(conf)¶glance_store._drivers.cinder.temporary_chown(*args, **kwds)¶
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.