cinder.volume.drivers.nfs
Modulecinder.volume.drivers.nfs
Module¶NfsDriver
(execute=<function execute at 0x25ddb18>, *args, **kwargs)¶Bases: cinder.volume.drivers.remotefs.RemoteFSSnapDriverDistributed
, cinder.volume.driver.ExtendVD
NFS based cinder driver.
Creates file on NFS share for using it as block device on hypervisor.
CI_WIKI_NAME
= ‘Cinder_Jenkins’¶VERSION
= ‘1.4.0’¶create_snapshot
(snapshot)¶Apply locking to the create snapshot operation.
create_volume
(volume)¶Apply locking to the create volume operation.
delete_snapshot
(snapshot)¶Apply locking to the delete snapshot operation.
delete_volume
(volume)¶Deletes a logical volume.
do_setup
(context)¶Any initialization the volume driver does while starting.
driver_prefix
= ‘nfs’¶driver_volume_type
= ‘nfs’¶extend_volume
(volume, new_size)¶Extend an existing volume to the new size.
initialize_connection
(volume, connector)¶set_nas_security_options
(is_new_cinder_install)¶Determine the setting to use for Secure NAS options.
Value of each NAS Security option is checked and updated. If the option is currently ‘auto’, then it is set to either true or false based upon if this is a new Cinder installation. The RemoteFS variable ‘_execute_as_root’ will be updated for this driver.
Parameters: | is_new_cinder_install – bool indication of new Cinder install |
---|
update_migrated_volume
(ctxt, volume, new_volume, original_volume_status)¶Return the keys and values updated from NFS for migrated volume.
This method should rename the back-end volume name(id) on the destination host back to its original name(id) on the source host.
Parameters: |
|
---|---|
Returns: | model_update to update DB with any needed changes |
volume_backend_name
= ‘Generic_NFS’¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.