Todo
rework
NAS share manager managers creating shares and access rights.
Related Flags
share_driver: | Used by ShareManager. |
---|
Bases: manila.manager.SchedulerDependentManager
Manages NAS storages.
Allow access to some share.
Creates a share.
Create snapshot for share.
Delete a share.
Delete share snapshot.
Deny access to some share.
Initialization for a standalone service.
Collect driver status and then publish it.
Drivers for shares.
Bases: object
Provides an executable functionality to a driver class.
Bases: object
Augment derived classes with Ganesha configuration.
Bases: object
Class defines interface of NAS driver.
Allocate network resources using given network information.
Allow access to the share.
Check for setup error.
Is called to create share.
Is called to create share from snapshot.
Is called to create snapshot.
Deallocate network resources for the given share server.
Is called to remove share.
Is called to remove snapshot.
Deny access to the share.
Any initialization the share driver does while starting.
Invoked to ensure that share is exported.
Driver can use this method to update the list of export locations of the share if it changes. To do that, you should return list with export locations.
:return None or list with export locations
Returns number of network allocations for creating VIFs.
Drivers that use Nova for share servers should return zero (0) here same as Generic driver does. Because Nova will handle network resources allocation. Drivers that handle networking itself should calculate it according to their own requirements. It can have 1+ network interfaces.
Return pool name where the share resides on.
Parameters: | share – The share hosted by the driver. |
---|
Get share status.
If ‘refresh’ is True, run update the stats first.
Brings an existing share under Manila management.
If provided share is not valid, then raise a ManageInvalidShare exception, specifying a reason for the failure.
The share has a share_type, and the driver can inspect that and compare against the properties of the referenced backend share. If they are incompatible, raise a ManageExistingShareTypeMismatch, specifying a reason for the failure.
Parameters: |
|
---|---|
Returns: | share_update dictionary with required key ‘size’, which should contain size of the share. |
Removes the specified share from Manila management.
Does not delete the underlying backend share.
For most drivers, this will not need to do anything. However, some drivers might use this call as an opportunity to clean up any Manila-specific configuration that they have associated with the backend share.
If provided share cannot be unmanaged, then raise an UnmanageInvalidShare exception, specifying a reason for the failure.
Authentication and Authorization
Enter search terms or a module, class or function name.