The cinder.volume.drivers.nfs Module

class NfsDriver(execute=<function execute at 0x7f98707f8e60>, *args, **kwargs)

Bases: cinder.volume.driver.ExtendVD, cinder.volume.drivers.remotefs.RemoteFSDriver

NFS based cinder driver.

Creates file on NFS share for using it as block device on hypervisor.

VERSION = '1.3.0'
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.

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
volume_backend_name = 'Generic_NFS'

Previous topic

The cinder.volume.drivers.netapp.utils Module

Next topic

The cinder.volume.drivers.nimble Module

Project Source

This Page