Drivers for volumes.
Bases: cinder.volume.driver.ISCSIDriver
Logs calls instead of executing.
No setup necessary in fake mode.
Execute that simply logs the command.
Bases: cinder.volume.driver.VolumeDriver
Executes commands relating to Fibre Channel volumes.
Initializes the connection and returns connection info.
The driver returns a driver_volume_type of ‘fibre_channel’. The target_wwn can be a single entry or a list of wwns that correspond to the list of remote wwn(s) that will export the volume. Example return values:
- {
‘driver_volume_type’: ‘fibre_channel’ ‘data’: {
‘target_discovered’: True, ‘target_lun’: 1, ‘target_wwn’: ‘1234567890123’,}
}
or
- {
‘driver_volume_type’: ‘fibre_channel’ ‘data’: {
‘target_discovered’: True, ‘target_lun’: 1, ‘target_wwn’: [‘1234567890123’, ‘0987654321321’],}
}
Bases: cinder.volume.driver.VolumeDriver
Executes commands relating to ISCSI volumes.
We make use of model provider properties as follows:
Fetch the image from image_service and write it to the volume.
Copy the volume to the specified image.
Get volume status.
If ‘refresh’ is True, run update the stats first.
Initializes the connection and returns connection info.
The iscsi driver returns a driver_volume_type of ‘iscsi’. The format of the driver data is defined in _get_iscsi_properties. Example return value:
{
'driver_volume_type': 'iscsi'
'data': {
'target_discovered': True,
'target_iqn': 'iqn.2010-10.org.openstack:volume-00000001',
'target_portal': '127.0.0.0.1:3260',
'volume_id': 1,
}
}
Bases: object
Executes commands relating to Volumes.
Callback for volume attached to instance.
Create a new backup from an existing volume.
Create a volume efficiently from an existing image.
image_location is a string whose format depends on the image service backend in use. The driver should use it to determine whether cloning is possible.
Returns a boolean indicating whether cloning occurred
Fetch the image from image_service and write it to the volume.
Copy the volume to the specified image.
Creates a clone of the specified volume.
Exports the volume. Can optionally return a Dictionary of changes to the volume object to be persisted.
Creates a snapshot.
Creates a volume. Can optionally return a Dictionary of changes to the volume object to be persisted.
Creates a volume from a snapshot.
Deletes a snapshot.
Deletes a volume.
Callback for volume detached.
Any initialization the volume driver does while starting
Synchronously recreates an export for a volume.
Return the current state of the volume service. If ‘refresh’ is True, run the update first.
Allow connection to connector and return connection info.
Removes an export for a volume.
Restore an existing backup to a new or existing volume.
Disallow connection from connector