The cinder.volume.drivers.zfssa.zfssanfs
Module¶
ZFS Storage Appliance NFS Cinder Volume Driver
-
class
ZFSSANFSDriver
(*args, **kwargs)¶ Bases:
cinder.volume.drivers.nfs.NfsDriver
ZFSSA Cinder NFS volume driver.
Version history: 1.0.1:
Backend enabled volume migration. Local cache feature.-
VERSION
= '1.0.1'¶
-
check_for_setup_error
()¶ Check that driver can login.
Check also for properly configured pool, project and share Check that the http and nfs services are enabled
-
clone_image
(context, volume, image_location, image_meta, image_service)¶ Create a volume efficiently from an existing image.
Verify the image ID being used:
(1) If there is no existing cache volume, create one and transfer image data to it. Take a snapshot.
(2) If a cache volume already exists, verify if it is either alternated or updated. If so try to remove it, raise exception if removal fails. Create a new cache volume as in (1).
Clone a volume from the cache volume and returns it to Cinder.
-
create_cloned_volume
(volume, src_vref)¶ Creates a snapshot and then clones the snapshot into a volume.
-
create_snapshot
(snapshot)¶ Creates a snapshot of a volume.
-
create_volume_from_snapshot
(volume, snapshot, method='COPY')¶
-
delete_snapshot
(snapshot)¶ Deletes a snapshot.
-
delete_volume
(volume)¶
-
do_setup
(context)¶
-
driver_prefix
= 'nfs'¶
-
driver_volume_type
= 'nfs'¶
-
migrate_volume
(ctxt, volume, host)¶
-
protocol
= 'nfs'¶
-
update_migrated_volume
(ctxt, volume, new_volume, original_volume_status)¶ Return model update for migrated volume.
Parameters: - volume – The original volume that was migrated to this backend
- new_volume – The migration volume object that was created on this backend as part of the migration process
- original_volume_status – The status of the original volume
:return model_update to update DB with any needed changes
-
volume_backend_name
= 'ZFSSA_NFS'¶
-
-
factory_zfssa
()¶