cinder.volume.targets.driver module

cinder.volume.targets.driver module

class Target(*args, **kwargs)

Bases: object

Target object for block storage devices.

Base class for target object, where target is data transport mechanism (target) specific calls. This includes things like create targets, attach, detach etc.

Base class here does nothing more than set an executor and db as well as force implementation of required methods.

create_export(context, volume, volume_path)

Exports a Target/Volume.

Can optionally return a Dict of changes to the volume object to be persisted.

ensure_export(context, volume, volume_path)

Synchronously recreates an export for a volume.

initialize_connection(volume, connector)

Allow connection to connector and return connection info.

remove_export(context, volume)

Removes an export for a Target/Volume.

terminate_connection(volume, connector, **kwargs)

Disallow connection from connector.

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.