The glance_store._drivers.rbd Module

The glance_store._drivers.rbd Module

Storage backend for RBD (RADOS (Reliable Autonomic Distributed Object Store) Block Device)

class glance_store._drivers.rbd.ImageIterator(pool, name, snapshot, store, chunk_size=None)

Bases: object

Reads data from an RBD image, one chunk at a time.

class glance_store._drivers.rbd.Store(conf)

Bases: glance_store.driver.Store

An implementation of the RBD backend adapter.

EXAMPLE_URL = 'rbd://<FSID>/<POOL>/<IMAGE>/<SNAP>'
OPTIONS = [<oslo_config.cfg.IntOpt object>, <oslo_config.cfg.StrOpt object>, <oslo_config.cfg.StrOpt object>, <oslo_config.cfg.StrOpt object>, <oslo_config.cfg.IntOpt object>]
add(store, *args, **kwargs)
configure_add()

Configure the Store to use the stored configuration options Any store that needs special configuration should implement this method. If the store was not able to successfully configure itself, it should raise exceptions.BadStoreConfiguration

delete(store, *args, **kwargs)
get(store, *args, **kwargs)
get_connection(*args, **kwds)
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()
Raises:glance_store.exceptions.NotFound if image does not exist
class glance_store._drivers.rbd.StoreLocation(store_specs, conf)

Bases: glance_store.location.StoreLocation

Class describing a RBD URI. This is of the form:

rbd://image

or

rbd://fsid/pool/image/snapshot

get_uri()
parse_uri(uri)
process_specs()
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.