Shared Filesystems

Todo

rework

The manila.share.manager Module

NAS share manager managers creating shares and access rights.

Related Flags

share_driver:Used by ShareManager.
class ShareManager(share_driver=None, service_name=None, *args, **kwargs)

Bases: manila.manager.SchedulerDependentManager

Manages NAS storages.

ShareManager.allow_access(context, access_id)

Allow access to some share.

ShareManager.create_share(context, share_id, request_spec=None, filter_properties=None, snapshot_id=None)

Creates a share.

ShareManager.create_snapshot(context, share_id, snapshot_id)

Create snapshot for share.

ShareManager.delete_share(context, share_id)

Delete a share.

ShareManager.delete_share_server(context, share_server)
ShareManager.delete_snapshot(context, snapshot_id)

Delete share snapshot.

ShareManager.deny_access(context, access_id)

Deny access to some share.

ShareManager.init_host()

Initialization for a standalone service.

ShareManager.publish_service_capabilities(context)

Collect driver status and then publish it.

The manila.share.driver Module

Drivers for shares.

class ExecuteMixin(*args, **kwargs)

Bases: object

Provides an executable functionality to a driver class.

ExecuteMixin.set_execute(execute)
class ShareDriver(*args, **kwargs)

Bases: object

Class defines interface of NAS driver.

ShareDriver.allow_access(context, share, access, share_server=None)

Allow access to the share.

ShareDriver.check_for_setup_error()

Check for setup error.

ShareDriver.create_share(context, share, share_server=None)

Is called to create share.

ShareDriver.create_share_from_snapshot(context, share, snapshot, share_server=None)

Is called to create share from snapshot.

ShareDriver.create_snapshot(context, snapshot, share_server=None)

Is called to create snapshot.

ShareDriver.delete_share(context, share, share_server=None)

Is called to remove share.

ShareDriver.delete_snapshot(context, snapshot, share_server=None)

Is called to remove snapshot.

ShareDriver.deny_access(context, share, access, share_server=None)

Deny access to the share.

ShareDriver.do_setup(context)

Any initialization the share driver does while starting.

ShareDriver.ensure_share(context, share, share_server=None)

Invoked to sure that share is exported.

ShareDriver.get_network_allocations_number()

Returns number of network allocations for creating VIFs.

ShareDriver.get_share_stats(refresh=False)

Get share status.

If ‘refresh’ is True, run update the stats first.

ShareDriver.setup_server(network_info, metadata=None)

Set up and configures share server with given network parameters.

ShareDriver.teardown_server(server_details, security_services=None)

Teardown share server.

Incubated Project

Table Of Contents

Previous topic

The Database Layer

Next topic

Authentication and Authorization

This Page