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.

allow_access(context, access_id)

Allow access to some share.

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

Creates a share.

create_snapshot(context, share_id, snapshot_id)

Create snapshot for share.

delete_share(context, share_id)

Delete a share.

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

Delete share snapshot.

deny_access(context, access_id)

Deny access to some share.

init_host()

Initialization for a standalone service.

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.

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

Bases: object

Class defines interface of NAS driver.

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

Allow access to the share.

check_for_setup_error()

Check for setup error.

create_share(context, share, share_server=None)

Is called to create share.

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

Is called to create share from snapshot.

create_snapshot(context, snapshot, share_server=None)

Is called to create snapshot.

delete_share(context, share, share_server=None)

Is called to remove share.

delete_snapshot(context, snapshot, share_server=None)

Is called to remove snapshot.

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

Deny access to the share.

do_setup(context)

Any initialization the share driver does while starting.

ensure_share(context, share, share_server=None)

Invoked to sure that share is exported.

get_network_allocations_number()

Returns number of network allocations for creating VIFs.

get_share_stats(refresh=False)

Get share status.

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

setup_server(network_info, metadata=None)

Set up and configures share server with given network parameters.

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