Bases: cinder.volume.driver.LocalVD, cinder.volume.driver.TransferVD, cinder.volume.driver.BaseVD
Common base for drivers that work like NFS.
Just to override parent behavior.
Fetch the image from image_service and write it to the volume.
Copy the volume to the specified image.
Exports the volume.
Can optionally return a dictionary of changes to the volume object to be persisted.
Creates a volume.
Parameters: | volume – volume reference |
---|---|
Returns: | provider_location update dict for database |
Delete snapshot.
Do nothing for this driver, but allow manager to handle deletion of snapshot in error state.
Deletes a logical volume.
Parameters: | volume – volume reference |
---|
Any initialization the volume driver does while starting.
Synchronously recreates an export for a logical volume.
Get volume stats.
If ‘refresh’ is True, update the stats first.
Allow connection to connector and return connection info.
Parameters: |
|
---|
Get volume path (mounted locally fs path) for given volume.
Parameters: | volume – volume reference |
---|
Removes an export for a logical volume.
Determine if driver is operating in Secure File Operations mode.
The Cinder Volume driver needs to query if this driver is operating in a secure file mode; check our nas_secure_file_operations flag.
Determine the setting to use for Secure NAS options.
This method must be overridden by child wishing to use secure NAS file operations. This base method will set the NAS security options to false.
Disallow connection from connector.
Bases: cinder.volume.drivers.remotefs.RemoteFSSnapDriverBase
Bases: cinder.volume.drivers.remotefs.RemoteFSDriver, cinder.volume.driver.SnapshotVD
Base class for remotefs drivers implementing qcow2 snapshots.
Returns filename of the active image from the info file.
Bases: cinder.volume.drivers.remotefs.RemoteFSSnapDriverBase
Copy the volume to the specified image.
Creates a clone of the specified volume.
Apply locking to the create snapshot operation.
Apply locking to the delete snapshot operation.
Lock decorator for volume operations.
Takes a named lock prior to executing the operation. The lock is named with the id of the volume. This lock can be used by driver methods to prevent conflicts with other operations modifying the same volume.
May be applied to methods that take a ‘volume’ or ‘snapshot’ argument.