PYTHON-MANILACLIENT(1)
π¦ python-manilaclient(1) π¦
okay so this is the manual for python-manilaclient, and it's giving OpenStack Manila bestie energy. Version 6.3.0, no cap. We're gonna go through the whole thing together, and yes, every flag is invited to the party. π
β¨ NAME β¨
python-manilaclient β python-manilaclient 6.3.0
This is a client for OpenStack Manila API. There's a Python API <> (the manilaclient <#module-manilaclient> module) for programmatic access, and a command-line interface via the OpenStack CLI client. See Project Structure <#project-structure> for more information.
π«Ά You'll need credentials for an OpenStack cloud that implements the Manila API in order to use the manila client. Like, non-negotiable, bestie.
π COMMAND-LINE REFERENCE π
Use the openstack CLI client to interact with the Manila API from the command line:
π openstack share Command-Line Interface (CLI) π
πΈ Synopsis πΈ
openstack [options] share <command> [command-options]
openstack help share <command>
πΈ Description πΈ
The OpenStack Client plugin interacts with the Manila service through the openstack share command line interface (CLI).
To use the CLI, you must provide your OpenStack username, password, project, auth endpoint and the share API version. You can use configuration options --os-username, --os-password, --os-project-name, --os-auth-url and --os-share-api-version, or set the corresponding environment variables:
export OS_USERNAME=foo
export OS_PASSWORD=bar
export OS_PROJECT_NAME=foobarproject
export OS_AUTH_URL=http://...
export OS_SHARE_API_VERSION=2.51
It is possible to use different Manila endpoint while using Openstack Client. In this case, you can use configuration option --os-endpoint-override or set the corresponding environment variable:
export OS_SHARED_FILE_SYSTEM_ENDPOINT_OVERRIDE=http://...
πΈ Getting help πΈ
To get a full list of all possible commands, run:
$ openstack help share
To get detailed help for one command, run:
$ openstack help share <command>
πΈ Examples πΈ
Get information about the openstack share create command:
$ openstack help share create
Create one share:
$ openstack share create NFS 1 --name "myshare"
List shares:
$ openstack share list
Display a share:
$ openstack share show myshare
Delete a share:
$ openstack share delete myshare
Extend a 1gb share to 2gb:
$ openstack share resize myshare 2
Shrink a 2gb share to 1gb:
$ openstack share resize myshare 1
π Command Reference π
List of released CLI commands available in openstack client. These commands can be referenced by executing openstack help share.
π Command Reference π
yes bestie, it really says "Command Reference" twice. iconic behavior. The list is right here, and every command below can be found with openstack help share.
ποΈ shares ποΈ
π¦ share instances π¦
π share instance delete π
Forces the deletion of a share instance.
share instance delete [--wait] <instance> [<instance> ...]
--waitβ Wait for share instance deletion.instanceβ ID of the share instance to delete.
β¨ This command is provided by the python-manilaclient plugin. β¨
π share instance list π
List share instances.
share instance list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--share <share>]
[--export-location <export-location>]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sort the column(s) in descending order--share <share>β Name or ID of the share to list instances for.--export-location <export-location>β Export location to list instances for.
β¨ This command is provided by the python-manilaclient plugin. β¨
π share instance set π
Explicitly reset share instance status.
share instance set [--status <status>] <instance>
--status <status>β Indicate which state to assign the instance. Options are:available,error,creating,deleting,error_deleting,migrating,migrating_to,server_migrating.instanceβ Instance to be modified.
β¨ This command is provided by the python-manilaclient plugin. β¨
π share instance show π
Show share instance.
share instance show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<instance>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.instanceβ ID of the share instance.
β¨ This command is provided by the python-manilaclient plugin. β¨
π share access rules π
π share access create π
Create new share access rule.
share access create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--properties [<key=value> ...]]
[--access-level <access_level>]
[--wait]
[--lock-visibility]
[--lock-deletion]
[--lock-reason <lock_reason>]
<share>
<access_type>
<access_to>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--properties <key=value>β Space separated list ofkey=valuepairs of properties. OPTIONAL: Default=None. Available only for API microversion>= 2.45.--access-level <access_level>β Share access level ("rw"and"ro"access levels are supported). Defaults torw.--waitβ Wait for share access rule creation.--lock-visibilityβ Whether the sensitive fields of the access rule redacted to other users. Only available with API version>= 2.82.--lock-deletionβ When enabled, a'delete'lock will be placed against the rule and the rule cannot be deleted while the lock exists. Only available with API version>= 2.82.--lock-reason <lock_reason>β Reason for locking the access rule. Should only be provided alongside a deletion or visibility lock. Only available with API version>= 2.82.shareβ Name or ID of the NAS share to modify.access_typeβ Access rule type (only"ip","user"(user or group),"cert"or"cephx"are supported).access_toβ Value that defines access.
β¨ This command is provided by the python-manilaclient plugin. β¨
π share access delete π
Delete a share access rule.
share access delete [--wait] [--unrestrict] <share> <id>
--waitβ Wait for share access rule deletion--unrestrictβ Seek access rule deletion despite restrictions. Only available with API version>= 2.82.shareβ Name or ID of the NAS share to modify.idβ ID of the access rule to be deleted.
β¨ This command is provided by the python-manilaclient plugin. β¨
π share access list π
List share access rule.
share access list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--properties [<key=value> ...]]
[--access-type <access_type>]
[--access-key <access_key>]
[--access-to <access_to>]
[--access-level <access_level>]
<share>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ tells it which column(s) to sort the data by. Columns you name first get priority, and non-existent columns are just ignored (no drama). Column names are case-insensitive and accept underscores instead of spaces. You can repeat this one if you're feeling extra. β¨--sort-ascendingβ sorts those column(s) in ascending order, smallest to biggest, lowest to highest, alphabetically forward, you get it π--sort-descendingβ same thing but backwards, descending order, biggest first π₯--properties <key=value>β filters results by properties, written askey=value. This one is OPTIONAL and defaults toNone. Heads up though: it's only available for API microversion >= 2.45, so check your microversion bestie π«Ά--access-type <access_type>β filters access rules by the access type.--access-key <access_key>β filters access rules by the access key.--access-to <access_to>β filters access rules by the access to field.--access-level <access_level>β filters access rules by the access level.
share β name or ID of the share.
This command is provided by the python-manilaclient plugin. π§
πΈ share access set
Sets properties on a share access rule. Available for API microversion 2.45 and higher π
share access set
[--property <key=value>]
[--access-level <access_level>]
<access_id>
--property <key=value>β sets a property on this share access rule. Repeat the option to set multiple properties, the more the merrier. Available only for API microversion >= 2.45.--access-level <access_level>β the share access level to set. Supported values are"rw"and"ro"access levels, that's it, that's the list π
access_id β ID of the NAS share access rule.
This command is provided by the python-manilaclient plugin. π§
π share access show
Displays a share access rule. Available for API microversion 2.45 and higher β
share access show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<access_id>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to show.
access_id β ID of the NAS share access rule.
This command is provided by the python-manilaclient plugin. π§
π¦ share access unset
Unsets properties of a share access rule. Available for API microversion 2.45 and higher π
share access unset [--property <key>] <access_id>
--property <key>β removes a property from the share access rule. Repeat the option to remove multiple properties (yes, deleting in bulk is valid). Available only for API microversion >= 2.45.
access_id β ID of the NAS share access rule.
This command is provided by the python-manilaclient plugin. π§
π share migration
(that's it, that's the whole entry β a category heading, no description here)
π share networks
(same vibe, category heading, no description)
π share network subnets
(category heading again, no description, we move)
π share network subnet create
Creates a share network subnet β¨
share network subnet create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--neutron-net-id <neutron-net-id>]
[--neutron-subnet-id <neutron-subnet-id>]
[--availability-zone <availability-zone>]
[--check-only]
[--restart-check]
[--property <key=value>]
<share-network>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to show.--neutron-net-id <neutron-net-id>β Neutron network ID. Used to set up network for share servers (optional). Should be defined together with'--neutron-subnet-id'. Bestie they're a package deal, don't separate them π--neutron-subnet-id <neutron-subnet-id>β Neutron subnet ID. Used to set up network for share servers (optional). Should be defined together with'--neutron-net-id'to which this subnet belongs to.--availability-zone <availability-zone>β optional availability zone that the subnet is available within (Default=None). IfNone, the subnet will be considered as being available across all availability zones. So it's everywhere at once, main character energy π--check-onlyβ runs a dry-run of a share network subnet create. Available only for microversion >= 2.70.--restart-checkβ restarts a dry-run of a share network subnet create. Helpful when check results are stale. Available only for microversion >= 2.70.--property <key=value>β sets a property on this share network subnet (repeat option to set multiple properties). Available only for microversion >= 2.78.
share-network β share network name or ID.
This command is provided by the python-manilaclient plugin. π§
π share network subnet delete
Deletes a share network subnet ποΈ
share network subnet delete
<share-network>
<share-network-subnet>
[<share-network-subnet> ...]
share-network β share network name or ID.
share-network-subnet β ID(s) of share network subnet(s) to be deleted.
This command is provided by the python-manilaclient plugin. π§
π
share network subnet set
Sets share network subnet properties π
share network subnet set
[--property <key=value>]
<share-network>
<share-network-subnet>
--property <key=value>β sets a property on this share network subnet (repeat option to set multiple properties). Available only for microversion >= 2.78.
share-network β share network name or ID.
share-network-subnet β ID of share network subnet to set a property.
This command is provided by the python-manilaclient plugin. π§
π§ share network subnet show
Shows a share network subnet π
share network subnet show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<share-network>
<share-network-subnet>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to show.
share-network β share network name or ID.
share-network-subnet β ID of share network subnet to show.
This command is provided by the python-manilaclient plugin. π§
β share network subnet unset
Unsets a share network subnet property π
share network subnet unset
[--property <key>]
<share-network>
<share-network-subnet>
--property <key>β removes a property from the share network subnet (repeat option to remove multiple properties). Available only for microversion >= 2.78.
share-network β share network name or ID.
share-network-subnet β ID of share network subnet to set a property.
This command is provided by the python-manilaclient plugin. π§
πΈ share types
(category heading, no description β we simply vibe onward)
π₯ share type access create
Adds access for a share type π«
share type access create <share_type> <project_id>
share_type β share type name or ID to add access to
project_id β project ID to add share type access for
This command is provided by the python-manilaclient plugin. π§
π¦ share type access delete
Deletes access from a share type π
share type access delete <share_type> <project_id>
share_type β share type name or ID to delete access from
project_id β project ID to delete share type access for
This command is provided by the python-manilaclient plugin. π§
π share type access list
Gets the access list for a share type, iykyk π
share type access list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
<share_type>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to show.--sort-columnSORT_COLUMN β picks the column(s) you wanna sort by, bestie. Columns you list first get priority, and any column that doesn't exist just gets politely ignored (no error, no drama). Names are case-insensitive and you can swap spaces for underscores. Repeatable, so go off π--sort-ascendingβ sorts those column(s) ascending, smallest to biggest, A to Z, the whole vibe β¬οΈ--sort-descendingβ sorts them descending instead, biggest to smallest, Z to A, reverse-slay β¬οΈ
share_type β the share type name or ID you're grabbing the access list for π
This command is provided by the python-manilaclient plugin.
β¨ share type create β¨
Creates a brand new share type, like building a whole new aesthetic from scratch π
share type create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--description <description>]
[--snapshot-support <snapshot_support>]
[--create-share-from-snapshot-support <create_share_from_snapshot_support>]
[--revert-to-snapshot-support <revert_to_snapshot_support>]
[--mount-snapshot-support <mount_snapshot_support>]
[--extra-specs [<key=value> ...]]
[--public <public>]
<name>
<spec_driver_handles_share_servers>
-f<FORMATTER>,--format<FORMATTER> β the output format, and it defaults totableπͺ-cCOLUMN,--columnCOLUMN β names the column(s) you want included. Repeat it to stack up multiple columns π«--noindentβ turns off indenting for the JSON output, flat and unfussy--prefix<PREFIX> β sticks a prefix on all variable names π·οΈ--max-width<integer> β maximum display width; anything<1disables it. You can also set theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter wins if they disagree π--fit-widthβ fits the table to your display width. This is implied whenever--max-widthis greater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always have it on π--print-emptyβ prints an empty table if there's no data to show, so at least you get something π«Ά--description<description> β the share type's description. Available only for microversion>= 2.41β οΈ--snapshot-support<snapshot_support> β a Boolean extra spec, used to filter back ends by whether they can create share snapshots πΈ--create-share-from-snapshot-support<create_share_from_snapshot_support> β a Boolean extra spec, used to filter back ends by whether they can create shares from snapshots π±--revert-to-snapshot-support<revert_to_snapshot_support> β a Boolean extra spec, used to filter back ends by whether they can revert shares to snapshots. (Default isFalse.) βͺ--mount-snapshot-support<mount_snapshot_support> β a Boolean extra spec, used to filter back ends by whether they can mount share snapshots. (Default isFalse.) ποΈ--extra-specs<key=value> β extra specs key and value of the share type, used for share type creation. OPTIONAL: Default=None. Example:
--extra-specs thin_provisioning='<is> True', replication_type=readable
--public<public> β makes the type accessible to the public (defaulttrue) π
name β the share type name π
spec_driver_handles_share_servers β a required extra specification. Valid values are 'true' and 'false' β
This command is provided by the python-manilaclient plugin.
π share type delete π
Deletes a share type. Begone, era over π
share type delete <share_types> [<share_types> ...]
share_types β name or ID of the share type(s) you're deleting ποΈ
This command is provided by the python-manilaclient plugin.
π share type list π
Lists out all the share types, the full lineup β¨
share type list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--all]
[--extra-specs [<key=value> ...]]
-f<FORMATTER>,--format<FORMATTER> β the output format, defaults totableπͺ-cCOLUMN,--columnCOLUMN β the column(s) to include; repeat to show multiple columns π«--quote<QUOTE_MODE> β when to include quotes, defaults tononnumeric--noindentβ disables JSON indenting--max-width<integer> β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence π--fit-widthβ fits the table to the display width. Implied if--max-widthis greater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable π--print-emptyβ prints an empty table if there's no data to show--sort-columnSORT_COLUMN β the column(s) to sort the data by (columns specified first have priority, non-existing columns are ignored). Column names are case-insensitive and accept underscores for spaces. Can be repeated--sort-ascendingβ sorts the column(s) in ascending order--sort-descendingβ sorts the column(s) in descending order--allβ displays all share types, whatever public or private. Default=False. (Admin only) π--extra-specs<key=value> β filters share types by extra specs (key=value). Available only for API microversion>= 2.43. OPTIONAL: Default=None. π
This command is provided by the python-manilaclient plugin.
π¦ share type set π¦
Sets share type properties β a little glow-up for your type π
share type set
[--extra-specs [<key=value> ...]]
[--public <public>]
[--description <description>]
[--name <name>]
<share_type>
--extra-specs<key=value> β extra specs key and value of share type that will be used for share type creation. OPTIONAL: Default=None. Example:
--extra-specs thin_provisioning='<is> True', replication_type=readable
--public<public> β the new visibility of the share type. If set toTrue, the share type will be available to all projects in the cloud. Available only for microversion>= 2.50π--description<description> β the new description of the share type. Available only for microversion>= 2.50β οΈ--name<name> β the new name of the share type. Available only for microversion>= 2.50π·οΈ
share_type β name or ID of the share type you're modifying π
This command is provided by the python-manilaclient plugin.
π share type show π
Displays all the juicy share type details π
share type show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<share_type>
-f<FORMATTER>,--format<FORMATTER> β the output format, defaults totableπͺ-cCOLUMN,--columnCOLUMN β the column(s) to include, repeatable for multiple columns π«--noindentβ disables JSON indenting--prefix<PREFIX> β adds a prefix to all variable names π·οΈ--max-width<integer> β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence π--fit-widthβ fits the table to the display width. Implied if--max-widthis greater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable π--print-emptyβ prints an empty table if there's no data to show
share_type β the share type to display (name or ID) π
This command is provided by the python-manilaclient plugin.
π§ share type unset π§
Unsets share type extra specs β cleaning out the closet π§Ή
share type unset <share_type> <key> [<key> ...]
share_type β name or ID of the share type to modify π
key β removes extra_specs from this share type β
This command is provided by the python-manilaclient plugin.
π¦ share transfers π¦
πΈ share transfer accept πΈ
Accepts a share transfer β it's officially yours now, congratulations π
share transfer accept [--clear-rules] <transfer> <auth_key>
--clear-rules,--clear_rulesβ whether manila should clean up the access rules after the transfer is complete. (Default=False) π§½
transfer β ID of the transfer to accept π
auth_key β authentication key of the transfer to accept π
This command is provided by the python-manilaclient plugin.
β share transfer create β
Creates a brand new share transfer β¨
share transfer create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--name <name>]
<share>
-f<FORMATTER>,--format<FORMATTER> β the output format, defaults totableπͺ-cCOLUMN,--columnCOLUMN β the column(s) to include; repeat for multiple columns π«--noindentβ disables JSON indenting--prefix<PREFIX> β adds a prefix to all variable names π·οΈ--max-width<integer> β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence π--fit-widthβ fits the table to the display width. Implied if--max-widthis greater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable π--print-emptyβ prints an empty table if there's no data to show--name<name> β the transfer name. Default=None. π·οΈ
share β name or ID of the share to transfer π
This command is provided by the python-manilaclient plugin.
π share transfer delete π
Removes one or more transfers, no cap ποΈ
share transfer delete <transfer> [<transfer> ...]
transfer β name(s) or ID(s) of the transfer(s) π«
This command is provided by the python-manilaclient plugin.
π₯ share transfer list π₯
Lists all the transfers π
share transfer list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--all-projects]
[--name <name>]
[--id <id>]
[--resource-type <resource_type>]
[--resource-id <resource_id>]
[--source-project-id <source_project_id>]
[--limit <limit>]
[--offset <offset>]
[--sort-key <sort_key>]
[--sort-dir <sort_dir>]
[--detailed [<0|1>]]
Okay so like, these next few are the formatter flags that show up on basically every list-y command, and bestie, they are π― the same vibe every time, so learn them once and you're set for life:
-f <FORMATTER>,--format <FORMATTER>β picks your output format. Default?table. Obviously. π-c COLUMN,--column COLUMNβ says which column(s) to show. You can repeat it to show multiple columns, so go off, stack them.--quote <QUOTE_MODE>β decides when quotes get included. Defaults tononnumeric. no cap.--noindentβ turns off JSON indenting. Flat and unbothered.--max-width <integer>β max display width; anything<1disables it entirely. You can also set theCLIFF_MAX_TERM_WIDTHenvironment variable, but heads up: the parameter takes precedence. π--fit-widthβ makes the table fit the display width. It's implied if--max-widthis greater than 0. Wanna always have it? SetCLIFF_FIT_WIDTH=1in your environment.--print-emptyβ prints an empty table when there's literally no data to show. Respect the emptiness. π--sort-column SORT_COLUMNβ picks the column(s) to sort by. Columns listed first get priority, non-existing columns are just ignored (rude but whatever), column names are case-insensitive, and they accept underscores for spaces. Repeatable!--sort-ascendingβ sorts the column(s) ascending. β¬οΈ--sort-descendingβ sorts the column(s) descending. β¬οΈ
And then the actual transfer filters, the main character flags of this command:
--all-projectsβ shows details for all tenants. Admin only, iykyk. π--name <name>β filters share transfers by name. Default=None.--id <id>β filters share transfers by ID. Default=None.--resource-type <resource_type>,--resource_type <resource_type>β filters share transfers by resource type, which can beshare. Default=None.--resource-id <resource_id>,--resource_id <resource_id>β filters share transfers by resource ID. Default=None.--source-project-id <source_project_id>,--source_project_id <source_project_id>β filters share transfers by the ID of the Project that initiated the transfer. Default=None.--limit <limit>β max number of transfer records to return. (Default=None)--offset <offset>β start position of the transfer records listing. Like, where you begin scrolling.--sort-key <sort_key>,--sort_key <sort_key>β the key to sort by. Available keys are('id', 'resource_type', 'resource_id', 'name', 'source_project_id', 'destination_project_id', 'created_at', 'expires_at'). Default=None.--sort-dir <sort_dir>,--sort_dir <sort_dir>β sort direction, available values are('asc', 'desc'). OPTIONAL: Default=None.--detailed <0|1>β shows detailed information about filtered share transfers. β¨
This command is provided by the python-manilaclient plugin.
πΈ share transfer show πΈ
Show details about a share transfer. Like a lil spotlight moment for one single transfer.
share transfer show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<transfer>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β adds a prefix to all variable names.--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ Print empty table if there is no data to show.transferβ Name or ID of transfer to show. π
This command is provided by the python-manilaclient plugin.
π share quotas π
The quota corner of the universe. Budgets. Limits. The "bestie, you've had enough" of Manilaclient.
share quota delete
Delete Quota. Yep. It's giving very straightforward. ποΈ
share quota delete
[--user <user> | --share-type <share-type>]
<project>
--user <user>β Name or ID of user to delete the quotas for. Optional. Mutually exclusive with--share-type.--share-type <share-type>β Name or ID of a share type to delete the quotas for. Optional. Mutually exclusive with--user. Available only for microversion >= 2.39.projectβ Name or ID of the project to delete quotas for.
This command is provided by the python-manilaclient plugin.
share quota set
Set Quota for a project, or project/user or project/share-type or a class. So many flavors of quota, and honestly? Iconic.
share quota set
[--class | --user <user> | --share-type <share-type>]
[--shares <shares>]
[--snapshots <snapshots>]
[--gigabytes <gigabytes>]
[--snapshot-gigabytes <snapshot-gigabytes>]
[--share-networks <share-networks>]
[--share-groups <share-groups>]
[--share-group-snapshots <share-group-snapshots>]
[--share-replicas <share-replicas>]
[--replica-gigabytes <replica-gigabytes>]
[--per-share-gigabytes <per-share-gigabytes>]
[--encryption-keys <encryption-keys>]
[--force]
<project/class>
--classβ Update class quota to all projects. Mutually exclusive with--userand--share-type.--user <user>β Name or ID of a user to set the quotas for. Mutually exclusive with--share-typeand--class.--share-type <share-type>β Name or ID of a share type to set the quotas for. Mutually exclusive with--userand--class. Available only for microversion >= 2.39.--shares <shares>β New value for the "shares" quota.--snapshots <snapshots>β New value for the "snapshots" quota.--gigabytes <gigabytes>β New value for the "gigabytes" quota.--snapshot-gigabytes <snapshot-gigabytes>β New value for the "snapshot-gigabytes" quota.--share-networks <share-networks>β New value for the "share-networks" quota.--share-groups <share-groups>β New value for the "share-groups" quota. Available only for microversion >= 2.40.--share-group-snapshots <share-group-snapshots>β New value for the "share-group-snapshots" quota. Available only for microversion >= 2.40.--share-replicas <share-replicas>β Number of share replicas. Available only for microversion >= 2.53.--replica-gigabytes <replica-gigabytes>β Capacity of share replicas in total. Available only for microversion >= 2.53.--per-share-gigabytes <per-share-gigabytes>β New value for the "per-share-gigabytes" quota. Available only for microversion >= 2.62.--encryption-keys <encryption-keys>β New value for the "encryption-keys" quota. Available only for microversion >= 2.90.--forceβ Force update the quota. Not applicable for class update. β οΈproject/classβ A project (name/ID) or a class (e.g.:default).
This command is provided by the python-manilaclient plugin.
share quota show
Show Quota. The big reveal. π¦
share quota show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--user <user> | --share-type <share-type>]
[--detail]
[--defaults]
<project>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ Print empty table if there is no data to show.--user <user>β Name or ID of user to list the quotas for. Optional. Mutually exclusive with--share-type.--share-type <share-type>β Name or ID of a share type to list the quotas for. Optional. Mutually exclusive with--user. Available only for microversion >= 2.39.--detailβ Optional flag to indicate whether to show quota in detail. Default false, available only for microversion >= 2.25.--defaultsβ Show the default quotas for the project.projectβ Name or ID of the project to list quotas for.
This command is provided by the python-manilaclient plugin.
π share snapshots π
Snapshot zone. The "remember when" of your shares. πΈ
share snapshot abandon
Abandon share snapshot(s). Letting go, emotionally and administratively. π«Ά
share snapshot abandon [--wait] <snapshot> [<snapshot> ...]
--waitβ Wait until share snapshot is abandoned.snapshotβ Name or ID of the snapshot(s) to be abandoned.
This command is provided by the python-manilaclient plugin.
share snapshot access create
Allow access to a snapshot. Sharing is caring, bestie. π
share snapshot access create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<snapshot>
<access_type>
<access_to>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β max width of the display, bestie. Anything less than1turns it off entirely. You can also set theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter itself wins β the flag takes precedence, periodt.--fit-widthβ squishes the table to fit your display width. It's implied if--max-widthis greater than 0. Want it always on? Set the environment variableCLIFF_FIT_WIDTH=1and slay.--print-emptyβ prints an empty table when there's literally no data to show. Iconic empty-state behaviour πsnapshotβ name or ID of the snapshot π«Άaccess_typeβ the access rule type. Only"ip","user"(that's user or group, iykyk),"cert"or"cephx"are supported β those four, no others, no cap.access_toβ the value that defines access.
This command is provided by the python-manilaclient plugin.
πΈ share snapshot access delete
Delete access to a snapshot β¨
share snapshot access delete <snapshot> <id> [<id> ...]
snapshotβ name or ID of the share snapshot to deny access to.idβ ID(s) of the access rule(s) to be deleted. Yes, plural, you can drop a whole list of them π
This command is provided by the python-manilaclient plugin.
π¦ share snapshot access list
Show access list for a snapshot β the receipts, basically π
share snapshot access list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
<snapshot>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include. Repeat it to show multiple columns π--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric.--noindentβ whether to disable indenting the JSON.--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data. Columns specified first have a priority, non-existing columns are ignored, column names are case-insensitive and accept underscores for spaces, and you can repeat it π--sort-ascendingβ sort the column(s) in ascending order.--sort-descendingβ sort the column(s) in descending order.snapshotβ name or ID of the share snapshot to show access list for.
This command is provided by the python-manilaclient plugin.
π§ share snapshot adopt
Adopt a share snapshot π₯Ί (yes, adopt, like it's a little orphan snapshot and you're its new parent)
share snapshot adopt
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--name <name>]
[--description <description>]
[--driver-option <key=value>]
[--wait]
<share>
<provider-location>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ Print empty table if there is no data to show.--name <name>β Optional snapshot name (Default=None).--description <description>β Optional snapshot description (Default=None).--driver-option <key=value>β Set driver options askey=valuepairs. (repeat option to set multiplekey=valuepairs)--waitβ Wait until share snapshot is adopted π«Άshareβ name or ID of the share that owns the snapshot to be adopted.provider-locationβ provider location of the snapshot on the backend.
This command is provided by the python-manilaclient plugin.
π share snapshot create
Create a snapshot of the given share π
share snapshot create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--force]
[--name <name>]
[--description <description>]
[--wait]
[--property <key=value>]
<share>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ Print empty table if there is no data to show.--forceβ Optional flag to indicate whether to snapshot a share even if it's busy. (Default=False) β like, it will just go for it π--name <name>β Add a name to the snapshot (Optional).--description <description>β Add a description to the snapshot (Optional).--waitβ Wait for share snapshot creation β¨--property <key=value>β Set a property to this snapshot (repeat option to set multiple properties). Available only for microversion>= 2.73β so check your microversion bestie, no cap.shareβ name or ID of the share to create snapshot of.
This command is provided by the python-manilaclient plugin.
π share snapshot delete
Delete one or more share snapshots π
share snapshot delete [--force] [--wait] <snapshot> [<snapshot> ...]
--forceβ Delete the snapshot(s) ignoring the current state. Unhinged behaviour but ok, do your thing π--waitβ Wait for share snapshot deletion.snapshotβ name or ID of the snapshot(s) to delete.
This command is provided by the python-manilaclient plugin.
β share snapshot export location list
List export locations of a given snapshot π
share snapshot export location list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
<snapshot>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric.--noindentβ whether to disable indenting the JSON.--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated.--sort-ascendingβ sort the column(s) in ascending order.--sort-descendingβ sort the column(s) in descending order.snapshotβ name or ID of the share snapshot.
This command is provided by the python-manilaclient plugin.
π share snapshot export location show
Show export location of the share snapshot π
share snapshot export location show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<snapshot>
<export-location>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ Print empty table if there is no data to show.snapshotβ name or ID of the share snapshot.export-locationβ ID of the share snapshot export location.
This command is provided by the python-manilaclient plugin.
πΈ share snapshot list
List snapshots β the full roster, bestie π
share snapshot list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--all-projects]
[--name <name>]
[--description <description>]
[--status <status>]
[--share <share>]
[--usage <usage>]
[--limit <num-snapshots>]
[--marker <snapshot>]
[--sort <key>[:<direction>]]
[--name~ <name~>]
[--description~ <description~>]
[--detail]
[--property <key=value>]
[--count]
-f <FORMATTER>,--format <FORMATTER>β the output format, bestie. defaults totable-c COLUMN,--column COLUMNβ pick the column(s) you wanna include; repeat it to show multiple columns β¨--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence π«Ά--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated π--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sort the column(s) in descending order--all-projectsβ Display snapshots from all projects (Admin only). π--name <name>β Filter results by name.--description <description>β Filter results by description. Available only for microversion >=2.36.--status <status>β Filter results by status--share <share>β Name or ID of a share to filter results by.--usage <usage>β Option to filter snapshots by usage.--limit <num-snapshots>β Limit the number of snapshots returned--marker <snapshot>β The last share ID of the previous page--sort <key>[:<direction>]β Sort output by selected keys and directions(asc or desc) (default:name:asc), multiple keys and directions can be specified separated by comma--name~ <name~>β Filter results matching a share snapshot name pattern. Available only for microversion >=2.36.--description~ <description~>β Filter results matching a share snapshot description pattern. Available only for microversion >=2.36.--detailβ List share snapshots with details--property <key=value>β Filter snapshots having a given metadatakey=valueproperty. (repeat option to filter by multiple properties)--countβ The total count of share snapshots before pagination is applied. This parameter is useful when applying pagination parameters--limitand--offset. Available only for microversion >=2.79. π₯
This command is provided by the python-manilaclient plugin.
π share snapshot set
Set share snapshot properties β glow-up time, we're editing β¨
share snapshot set
[--name <name>]
[--description <description>]
[--status <status>]
[--property <key=value>]
<snapshot>
--name <name>β Set a name to the snapshot.--description <description>β Set a description to the snapshot.--status <status>β Assign a status to the snapshot (Admin only). Options include :available,error,creating,deleting,manage_starting,manage_error,unmanage_starting,unmanage_error,error_deleting.--property <key=value>β Set a property to this snapshot (repeat option to set multiple properties)snapshotβ Name or ID of the snapshot to set a property for
This command is provided by the python-manilaclient plugin.
π share snapshot show
Show details about a share snapshot β the full lore dump π
share snapshot show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<snapshot>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.snapshotβ Name or ID of the snapshot to display
This command is provided by the python-manilaclient plugin.
π¦ share snapshot unset
Unset a share snapshot property β we're removing things, not adding, okay? π
share snapshot unset
[--name]
[--description]
[--property <key>]
<snapshot>
--nameβ Unset snapshot name.--descriptionβ Unset snapshot description.--property <key>β Remove a property from snapshot (repeat option to remove multiple properties)snapshotβ Name or ID of the snapshot to set a property for
This command is provided by the python-manilaclient plugin.
πΈ share snapshot instances
share snapshot instance export location list
List export locations from a share snapshot instance. π§
share snapshot instance export location list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
<instance>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sort the column(s) in descending orderinstanceβ Name or ID of the share instance.
This command is provided by the python-manilaclient plugin.
β share snapshot instance export location show
Show export location of the share snapshot instance. π«
share snapshot instance export location show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<snapshot_instance>
<export_location>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.snapshot_instanceβ ID of the share snapshot instance.export_locationβ ID of the share snapshot instance export location.
This command is provided by the python-manilaclient plugin.
π share snapshot instance list
List all share snapshot instances β the whole roster, no cap π
share snapshot instance list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--snapshot <snapshot>]
[--detailed]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sort the column(s) in descending order--snapshot <snapshot>β Filter results by share snapshot ID.--detailedβ Show detailed information about snapshot instances.
This command is provided by the python-manilaclient plugin.
π share snapshot instance set
Explicitly update the state of a share snapshot instance. π οΈ
share snapshot instance set [--status <status>] <snapshot_instance>
--status <status>β sets the state you want the snapshot instance flipped to. Default isavailable.snapshot_instanceβ the ID of the share snapshot instance you're updating, bestie.
This command is provided by the python-manilaclient plugin.
π¦ share snapshot instance show
Show deets about a share snapshot instance. Receipts only, no changes.
share snapshot instance show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<snapshot_instance>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ print empty table if there is no data to show.snapshot_instanceβ ID of the share snapshot instance.
This command is provided by the python-manilaclient plugin.
π user messages
π share message delete
Remove one or more messages. Yeet, but like, officially.
share message delete <message> [<message> ...]
messageβ ID of the message(s). Yes bestie, you can drop a whole stack of them in one go.
This command is provided by the python-manilaclient plugin.
β¨ share message list
Lists all messages. The whole inbox vibe check.
share message list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--resource-id <resource-id>]
[--resource-type <resource-type>]
[--action-id <action-id>]
[--detail-id <detail-id>]
[--request-id <request-id>]
[--message-level <message-level>]
[--limit <limit>]
[--since <since>]
[--before <before>]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric.--noindentβ whether to disable indenting the JSON.--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated.--sort-ascendingβ sort the column(s) in ascending order.--sort-descendingβ sort the column(s) in descending order.--resource-id <resource-id>β filters results by a resource uuid. Default=None.--resource-type <resource-type>β filters results by a resource type. Default=None. Example:"openstack message list --resource-type share"--action-id <action-id>β filters results by action id. Default=None.--detail-id <detail-id>β filters results by detail id. Default=None.--request-id <request-id>β filters results by request id. Default=None.--message-level <message-level>β filters results by the message level. Default=None. Example:"openstack message list --message-level ERROR"--limit <limit>β maximum number of messages to return. (Default=None)--since <since>β return only user messages created since given date. The date format must be conforming to ISO8601. Available only for microversion >=2.52.--before <before>β return only user messages created before given date. The date format must be conforming to ISO8601. Available only for microversion >=2.52.
This command is provided by the python-manilaclient plugin.
π₯ share message show
Show details about a message. One (1) singular message, main character energy.
share message show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<message>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ print empty table if there is no data to show.messageβ ID of the message.
This command is provided by the python-manilaclient plugin.
π share replicas
π«Ά share replica create
Create a replica of the given share. Clone era, but make it storage.
share replica create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--availability-zone <availability-zone>]
[--wait]
[--scheduler-hint <key=value>]
[--share-network <share-network-name-or-id>]
[--property <key=value>]
<share>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ print empty table if there is no data to show.--availability-zone <availability-zone>β availability zone in which the replica should be created.--waitβ wait for replica creation. Patience is a virtue, bestie.--scheduler-hint <key=value>β scheduler hint for the share replica askey=valuepairs, supported key isonly_host. Available for microversion >=2.67.--share-network <share-network-name-or-id>β optional network info ID or name. Available for microversion >=2.72.--property <key=value>β set a property to this replica (repeat option to set multiple properties). Available only for microversion >=2.95.shareβ name or ID of the share to replicate.
This command is provided by the python-manilaclient plugin.
π share replica delete
Delete one or more share replicas. Goodbye forever, no cap.
share replica delete [--force] [--wait] <replica> [<replica> ...]
--forceβ attempt to force delete a replica on its backend. Using this option will purge the replica from Manila even if it is not cleaned up on the backend. β οΈ Yeah, that's the dramatic one β read it twice.--waitβ wait for share replica deletion.replicaβ name or ID of the replica(s) to delete.
This command is provided by the python-manilaclient plugin.
π§ share replica export location list
List export locations of a share replica. Where the replica is actually, physically at.
share replica export location list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
<replica>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric.--noindentβ whether to disable indenting the JSON.--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated.--sort-ascendingβ sort the column(s) in ascending order.--sort-descendingβ sort the column(s) in descending order.replicaβ ID of the share replica.
This command is provided by the python-manilaclient plugin.
π share replica export location show
Show details of a share replica's export location. Just the one location, all up close and personal.
share replica export location show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<replica>
<export-location>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ pick which column(s) you wanna see; repeat it to stack more columns in there π--noindentβ turns off the pretty indenting on the JSON. chaotic but valid β¨--prefix <PREFIX>β slaps a prefix on, like, every variable name π--max-width <integer>β max display width, and anything<1just disables it entirely. you can also set theCLIFF_MAX_TERM_WIDTHenv var, but ngl the parameter wins over it π--fit-widthβ makes the table fit your display width. it's implied if--max-widthis greater than 0. setCLIFF_FIT_WIDTH=1to always have it on π¦--print-emptyβ prints an empty table even when there's no data to show. yes bestie, an empty table. it's giving "at least we tried" π«Ά- replica β the ID of the share replica.
- export-location β the ID of the share replica export location.
this one's brought to you by the python-manilaclient plugin, periodt β¨
πΈ share replica list πΈ
List out your share replicas, iconic behaviour only π
share replica list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--share <share>]
[--property <key=value>]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sort the column(s) in descending order--share <share>β Name or ID of the share to list replicas for.--property <key=value>β Filter replicas having a given metadatakey=valueproperty. (repeat option to filter by multiple properties)
provided by the python-manilaclient plugin, no cap β¨
π₯ share replica promote π₯
Promote the specified replica to 'active' replica_state β main character energy, honestly π
share replica promote
[--quiesce-wait-time <quiesce-wait-time>]
[--wait]
<replica>
--quiesce-wait-time <quiesce-wait-time>β Quiesce wait time in seconds. Available for microversion>= 2.75--waitβ Wait for share replica promotion- replica β ID of the share replica.
courtesy of the python-manilaclient plugin π
π¦ share replica resync π¦
Attempts to update the share replica with its 'active' mirror. like syncing your notes app across devices but way more dramatic π
share replica resync <replica>
- replica β ID of the share replica to resync.
from the python-manilaclient plugin β¨
π share replica set π
Explicitly set share replica status and/or replica-state and/or property β you're literally setting the vibes manually π
share replica set
[--replica-state <replica-state>]
[--status <status>]
[--property <key=value>]
<replica>
--replica-state <replica-state>β Indicate whichreplica_stateto assign the replica. Options includein_sync,out_of_sync,activeanderror.--status <status>β Indicate which status to assign the replica. Options includeavailable,error,creating,deletinganderror_deleting.--property <key=value>β Set a property to this replica (repeat option to set multiple properties). Available only for microversion>= 2.95- replica β ID of the share replica to modify.
python-manilaclient plugin did that π«Ά
β share replica show β
Show all the deets about a replica β the full lore drop π
share replica show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<replica>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.- replica β ID of the share replica. Available only for microversion
>= 2.47.
shoutout to the python-manilaclient plugin π
π share replica unset π
Unset a share replica property β we're removing, not adding. it's giving declutter szn π§Ή
share replica unset [--property <key>] <replica>
--property <key>β Remove a property from replica (repeat option to remove multiple properties)- replica β ID of the share replica to unset property from
yup, python-manilaclient plugin again πΈ
π share availability zones π
π share availability zone list π
List all the availability zones, every single one, no crumbs left behind π«
share availability zone list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sort the column(s) in descending order
brought to you by the python-manilaclient plugin β¨
π share backups π
π share backup create π
Create a backup of the given share β save a copy, protect your peace, all that πΎ
share backup create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--name <name>]
[--description <description>]
[--backup-options <key=value>]
<share>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--name <name>β Optional share backup name. (Default=None).--description <description>β Optional share backup description. (Default=None).--backup-options <key=value>β Backup driver optionkey=valuepairs (Optional,Default=None).- share β Name or ID of the share to backup.
python-manilaclient plugin, obviously π
π share backup delete π
Delete one or more share backups β it's over for them, respectfully ποΈ
share backup delete [--wait] <backup> [<backup> ...]
--waitβ Wait for share backup deletion- backup β Name or ID of the backup(s) to delete
from the python-manilaclient plugin π«Ά
π¦ share backup list π¦
List share backups β the whole collection, on display β¨
share backup list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--share <share>]
[--name <name>]
[--description <description>]
[--name~ <name~>]
[--description~ <description~>]
[--status <status>]
[--limit <num-backups>]
[--offset <offset>]
[--sort-key <sort_key>]
[--sort-dir <sort_dir>]
[--detail [<0|1>]]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β max width of the display, bestie. Anything<1turns it off completely. You can also set theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter wins if you pass both. π--fit-widthβ makes the table fit your display width. It's implied if--max-widthis greater than 0. Want it always on? SetCLIFF_FIT_WIDTH=1in your environment. β¨--print-emptyβ prints an empty table when there's literally no data to show. Iconic empty-state behaviour, no cap.--sort-column SORT_COLUMNβ tells it which column(s) to sort by. Columns you list first get priority, non-existing columns are just ignored (not me, ignoring them π ), column names are case-insensitive and accept underscores for spaces, and yes you can repeat it.--sort-ascendingβ sorts the column(s) ascending. β¬οΈ--sort-descendingβ sorts the column(s) descending. β¬οΈ--share <share>β name or ID of the share to list backups for. π--name <name>β filters results by name. Default=None.--description <description>β filters results by description. Default=None.--name~ <name~>β filters results matching a share backup name pattern. Pattern mode, iykyk. π¦--description~ <description~>β filters results matching a share backup description (no period in the original, we keep it real).--status <status>β filters results by status. Default=None.--limit <num-backups>β caps how many backups come back. Default=None.--offset <offset>β start position of the backup records listing. π--sort-key <sort_key>,--sort_key <sort_key>β key to be sorted, available keys are('id', 'status', 'size', 'share_id', 'progress', 'restore_progress', 'name', 'host', 'topic', 'project_id'). Default=None.--sort-dir <sort_dir>,--sort_dir <sort_dir>β sort direction, available values are('asc', 'desc'). OPTIONAL: Default=None.--detail <0|1>β show detailed information about share backups. π
This command is provided by the python-manilaclient plugin.
πΈ share backup restore
Attempt to restore share backup. Bringing it back from the void, lowkey hero behaviour. π«Ά
share backup restore [--target-share <target-share>] [--wait] <backup>
--target-share <target-share>β the share to restore the backup to. Source share if none supplied.--waitβ wait for the restore conclusion. Patient queen energy. β³
backup β ID of the backup to restore.
This command is provided by the python-manilaclient plugin.
π share backup set
Set share backup properties. Glow-up time. β¨
share backup set
[--name <name>]
[--description <description>]
[--status <status>]
<backup>
--name <name>β set a name to the backup.--description <description>β set a description to the backup.--status <status>β assign a status to the backup (Admin only). Options include:available,error,creating,deleting,restoring.
backup β name or ID of the backup to set a property for.
This command is provided by the python-manilaclient plugin.
π share backup show
Show details of a backup. The full rundown, bestie. π
share backup show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<backup>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ print empty table if there is no data to show.
backup β ID of the share backup.
This command is provided by the python-manilaclient plugin.
π¦ share backup unset
Unset share backup properties. Taking it back, respectfully. π
share backup unset [--name] [--description] <backup>
--nameβ unset a name to the backup.--descriptionβ unset a description to the backup.
backup β name or ID of the backup to unset a property for.
This command is provided by the python-manilaclient plugin.
π share services
(group heading β the commands live below, keep scrolling bestie)
β share service ensure shares
Run ensure shares in a back end (Admin only).
share service ensure shares <host>
host β host to run ensure shares. <'example_host@example_backend>'.
This command is provided by the python-manilaclient plugin.
π share service list
List share services (Admin only).
share service list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--host <host>]
[--binary <binary>]
[--status <status>]
[--state <state>]
[--zone <zone>]
[--ensuring <ensuring>]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric.--noindentβ whether to disable indenting the JSON.--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated.--sort-ascendingβ sort the column(s) in ascending order.--sort-descendingβ sort the column(s) in descending order.--host <host>β filter services by name of the host.--binary <binary>β filter services by the name of the service.--status <status>β filter results by status.--state <state>β filter results by state.--zone <zone>β filter services by their availability zone.--ensuring <ensuring>β filter services running ensure shares or not.
This command is provided by the python-manilaclient plugin.
π share service set
Enable/Disable share service (Admin only). Flip the switch, bestie. π₯
share service set
[--enable | --disable]
[--disable-reason <reason>]
<host>
<binary>
--enableβ enable share service.--disableβ disable share service.--disable-reason <reason>β reason for disabling the service (should be used with--disableoption).
host β host name as <'example_host@example_backend>'.
binary β service binary, could be 'manila-share', 'manila-scheduler' or 'manila-data'.
This command is provided by the python-manilaclient plugin.
π§ share security services
πΈ share security service create
Create security service used by project.
share security service create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--dns-ip <dns-ip>]
[--ou <ou>]
[--server <server>]
[--domain <domain>]
[--user <user]
[--password <password>]
[--name <name>]
[--description <description>]
[--default-ad-site <default_ad_site>]
<type>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable.-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns.--noindentβ whether to disable indenting the JSON.--prefix <PREFIX>β add a prefix to all variable names.--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. Implied if--max-widthgreater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable.--print-emptyβ print empty table if there is no data to show.--dns-ip <dns-ip>β DNS IP address of the security service used inside project's network.--ou <ou>β security service OU (Organizational Unit). Available only for microversion>= 2.44.--server <server>β security service IP address or hostname.--domain <domain>β security service domain.--user <userβ security service user or group used by project. (yes, that bracket is missing in the original β we don't fix it, we respect it π)--password <password>β password used by user.--name <name>β security service name.--description <description>β security service description.--default-ad-site <default_ad_site>β default AD site. Available only for microversion>= 2.76. Can be provided in the place of'--server'but not along with it.
type β security service type. Possible options are: 'ldap', 'kerberos', 'active_directory'.
This command is provided by the python-manilaclient plugin.
π share security service delete
Delete one or more security services. Okay bye bestie πβ¨
share security service delete
<security-service>
[<security-service> ...]
security-service β name or ID of the security service(s) to delete.
This command is provided by the python-manilaclient plugin.
π share security service list
List security services.
π share security service list β the whole roster, filtered to perfection
okay bestie, this one lists out the security services (your LDAP / AD / Kerberos situations) and then lets you narrow them down with so many filters it's honestly giving search-engine energy. here's the shape of it:
share security service list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--all-projects]
[--share-network <share-network>]
[--status <status>]
[--name <name>]
[--type <type>]
[--user <user]
[--dns-ip <dns-ip>]
[--ou <ou>]
[--default-ad-site <default_ad_site>]
[--server <server>]
[--domain <domain>]
[--detail]
[--limit <num-security-services>]
[--marker <security-service>]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable. β¨-c COLUMN,--column COLUMNβ specify the column(s) to include, and yes you can repeat it to show multiple columns π«Ά--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β maximum display width,<1to disable. you can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence (it wins, always) π--fit-widthβ fit the table to the display width. implied if--max-widthis greater than 0. set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print an empty table if there's no data to show (so you get an aesthetic void instead of nothing)--sort-column SORT_COLUMNβ specify the column(s) to sort the data by (columns specified first have priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order β¬οΈ--sort-descendingβ sort the column(s) in descending order β¬οΈ--all-projectsβ display information from all projects (Admin only)--share-network <share-network>β filter results by share network name or ID--status <status>β filter results by status--name <name>β filter results by security service name--type <type>β filter results by security service type--user <userβ filter results by security service user or group used by project (the missing>is literally in the page, not my fault, iykyk)--dns-ip <dns-ip>β filter results by DNS IP address used inside project's network--ou <ou>β filter results by security service OU (Organizational Unit). available only for microversion>= 2.44π¦--default-ad-site <default_ad_site>β filter results by security servicedefault_ad_site. available only for microversion>= 2.76--server <server>β filter results by security service IP address or hostname--domain <domain>β filter results by security service domain--detailβ show detailed information about filtered security services--limit <num-security-services>β limit the number of security services returned--marker <security-service>β the last security service ID of the previous page (pagination slay)
this command is provided by the python-manilaclient plugin π
π§ share security service set β glow-up time
set security service. it's the makeover command, no cap.
share security service set
[--dns-ip <dns-ip>]
[--ou <ou>]
[--server <server>]
[--domain <domain>]
[--user <user]
[--password <password>]
[--name <name>]
[--description <description>]
[--default-ad-site <default_ad_site>]
<security-service>
--dns-ip <dns-ip>β set DNS IP address used inside project's network--ou <ou>β set security service OU (Organizational Unit). available only for microversion>= 2.44--server <server>β set security service IP address or hostname--domain <domain>β set security service domain--user <userβ set security service user or group used by project--password <password>β set password used by user π--name <name>β set security service name--description <description>β set security service description--default-ad-site <default_ad_site>β Default AD site. available only for microversion>= 2.76security-serviceβ security service name or ID
this command is provided by the python-manilaclient plugin π
π share security service show β the full reveal
show security service. one (1) single service, all the tea.
share security service show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<security-service>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names π--max-width <integer>β maximum display width,<1to disable. you can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence--fit-widthβ fit the table to the display width. implied if--max-widthis greater than 0. set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to showsecurity-serviceβ security service name or ID to show
this command is provided by the python-manilaclient plugin π
π§Ή share security service unset β the anti-makeover
unset security service. we're removing things, it's a cleanse β¨
share security service unset
[--dns-ip]
[--ou]
[--server]
[--domain]
[--user]
[--password]
[--name]
[--description]
[--default-ad-site]
<security-service>
--dns-ipβ unset DNS IP address used inside project's network--ouβ unset security service OU (Organizational Unit). available only for microversion>= 2.44--serverβ unset security service IP address or hostname--domainβ unset security service domain--userβ unset security service user or group used by project--passwordβ unset password used by user--nameβ unset security service name--descriptionβ unset security service description--default-ad-siteβ Default AD site. available only for microversion>= 2.76security-serviceβ security service name or ID
this command is provided by the python-manilaclient plugin π
π share pools
(that's the whole heading, bestie, there's literally nothing else under it β it's giving main character with no lines)
π share pool list β every pool the scheduler knows about
list all backend storage pools known to the scheduler (Admin only).
share pool list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--host <host>]
[--backend <backend>]
[--pool <pool>]
[--detail]
[--share-type <share-type>]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β maximum display width,<1to disable. you can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence--fit-widthβ fit the table to the display width. implied if--max-widthis greater than 0. set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to show--sort-column SORT_COLUMNβ specify the column(s) to sort the data by (columns specified first have priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sort the column(s) in descending order--host <host>β filter results by host name. regular expressions are supported π₯--backend <backend>β filter results by backend name. regular expressions are supported--pool <pool>β filter results by pool name. regular expressions are supported--detailβ show detailed information about pools--share-type <share-type>β filter results by share type name or ID. available only for microversion>= 2.23
this command is provided by the python-manilaclient plugin π
πΈ share limits
π share limits show β the receipts, per user
show a list of share limits for a user.
share limits show
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
(--absolute | --rate)
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β maximum display width,<1to disable. you can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence--fit-widthβ fit the table to the display width. implied if--max-widthis greater than 0. set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to show--sort-column SORT_COLUMNβ specify the column(s) to sort the data by (columns specified first have priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sorts the column(s) the other way, biggest-to-smallest energy π--absoluteβ grabs the absolute limits for the user, no cap--rateβ grabs the API rate limits for the user β‘
β¨ this command ships with the python-manilaclient plugin π«Ά
πΈ share instance export location πΈ
π¦ share instance export location list π¦
Lists all the export locations for a share instance β like, where can you actually reach this thing? π
share instance export location list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
<instance>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totableβ¨-c COLUMN,--column COLUMNβ pick the column(s) you wanna include; repeat it to show multiple columns π--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ turns off indenting the JSON--max-width <integer>β maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence π--fit-widthβ fits the table to the display width. Implied if--max-widthis greater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable it--print-emptyβ prints an empty table if there's literally no data to show π--sort-column SORT_COLUMNβ specify the column(s) to sort the data by (columns specified first have priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sorts the column(s) in ascending order β--sort-descendingβ sorts the column(s) in descending order πinstanceβ ID of the share instance.
β¨ provided by the python-manilaclient plugin, always and forever π«Ά
π share instance export location show π
Shows the export location for a share instance β one at a time, main character style π
share instance export location show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<instance>
<export_location>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, repeat to show multiple columns πΈ--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β adds a prefix to all variable names π--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.instanceβ Name or ID of the share instanceexport_locationβ ID of the share instance export location.
β¨ this one's also brought to you by the python-manilaclient plugin π
π share groups π
π share group types π
π share group type create π
Creates a brand-new share group type β birth of an icon tbh β¨
share group type create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--group-specs [<key=value> ...]]
[--public <public>]
<name>
<share-types>
[<share-types> ...]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--group-specs <key=value>β Share Group type extra specs by key and value. OPTIONAL: Default=None. Example:--group-specs consistent_snapshot_support=host. π§--public <public>β Make type accessible to the public (defaulttrue).nameβ Share group type nameshare-typesβ List of share type names or IDs. Example:my-share-type-1 my-share-type-2
β¨ yup, python-manilaclient plugin did that π
π share group type delete π
Deletes a share group type. gone, reduced to atoms π«
share group type delete <share-group-types> [<share-group-types> ...]
share-group-typesβ Name or ID of the share group type(s) to delete
β¨ python-manilaclient plugin, of course π«Ά
β share group type list β
Lists share types β the whole lineup, vibe check included π
share group type list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--all]
[--group-specs [<key=value> ...]]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns π--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sort the column(s) in descending order--allβ Display all share group types whether public or private. Default=False. (Admin only π)--group-specs <key=value>β Filter share group types with group specs (key=value).
β¨ brought to you by the python-manilaclient plugin π
πΈ share group type set πΈ
Sets properties on a share group type β glow-up time β¨
share group type set
[--group-specs [<key=value> ...]]
<share-group-type>
--group-specs <key=value>β Extra specs key and value of share group type that will be used for share type creation. OPTIONAL: Default=None. Example:--group-specs consistent-snapshot-support=Trueshare-group-typeβ Name or ID of the share group type to modify
β¨ python-manilaclient plugin, say it with me π«Ά
π share group type show π
Shows you a share group type in all its glory π
share group type show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<share-group-type>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.share-group-typeβ Name or ID of the share group type to show
β¨ python-manilaclient plugin did this π
π¦ share group type unset π¦
Unsets share group type extra specs β the un-glow-up π
share group type unset <share-group-type> <key> [<key> ...]
share-group-typeβ Name or ID of the share grouptype to modifykeyβ Remove group specs from this share group type
β¨ yes bestie, still the python-manilaclient plugin π«Ά
π§ share group snapshots π§
π share group snapshot create π
Creates a share group snapshot of the given share group β a lil time capsule for your group πΈ
share group snapshot create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--name <name>]
[--description <description>]
[--wait]
<share-group>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns πΈ--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β Maximum display width,<1to disable. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ Fit the table to the display width. Implied if--max-widthgreater than0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ Print empty table if there is no data to show.--name <name>β Optional share group snapshot name. (Default=None)--description <description>β an optional lil description for your share group snapshot. (Default=None) π--waitβ hang out until the share group snapshot is actually created. patience is a virtue bestie β¨share-groupβ the name or ID of the share group. that's it, that's the whole thing π
this command is provided by the python-manilaclient plugin.
πΈ share group snapshot delete
deletes one or more share group snapshots. plural. go off π
share group snapshot delete
[--force]
[--wait]
<share-group-snapshot>
[<share-group-snapshot> ...]
--forceβ try to force delete the share group snapshot(s). (Default=False) β Admin only, so don't get any ideas π--waitβ wait for the share group snapshot deletion to finish π«Άshare-group-snapshotβ name or ID of the group snapshot(s) you're deleting
this command is provided by the python-manilaclient plugin.
π¦ share group snapshot list
lists your share group snapshots. the full menu, basically π
share group snapshot list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--all-projects]
[--name <name>]
[--status <status>]
[--share-group <share-group>]
[--limit <limit>]
[--marker <marker>]
[--sort <key>[:<direction>]]
[--detailed]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ pick which column(s) to include, repeat it to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ turns off JSON indenting, for the minimalists π--max-width <integer>β max display width,<1to disable. you can also set theCLIFF_MAX_TERM_WIDTHenvironment variable, but this parameter wins if both are around π--fit-widthβ fits the table to your display width. implied if--max-widthis greater than 0. setCLIFF_FIT_WIDTH=1to always have it on β¨--print-emptyβ prints an empty table even when there's no data to show. empty but make it fashion π--sort-column SORT_COLUMNβ specify the column(s) to sort the data by (columns listed first get priority, non-existing columns are just ignored), column names are case-insensitive and accept underscores for spaces, and yes you can repeat it--sort-ascendingβ sort the column(s) ascending β¬οΈ--sort-descendingβ sort the column(s) descending β¬οΈ--all-projectsβ show info from all projects (Admin only)--name <name>β filter results by name--status <status>β filter results by status--share-group <share-group>β filter results by share group name or ID--limit <limit>β limit the number of share groups returned--marker <marker>β the last share group snapshot ID of the previous page (pagination bestie π«Ά)--sort <key>[:<direction>]β sort output by selected keys and directions (ascordesc) (default:name:asc), multiple keys and directions can be specified separated by comma--detailedβ show detailed information about the share group snapshot π
this command is provided by the python-manilaclient plugin.
π§ share group snapshot members list
lists the members of a share group snapshot. the whole squad π
share group snapshot members list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
<share-group-snapshot>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β maximum display width,<1to disable. you can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. implied if--max-widthgreater than 0. set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to show.--sort-column SORT_COLUMNβ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated--sort-ascendingβ sort the column(s) in ascending order--sort-descendingβ sort the column(s) in descending ordershare-group-snapshotβ name or ID of the group snapshot to list members for
this command is provided by the python-manilaclient plugin.
π share group snapshot set
sets properties on a share group snapshot. glow-up time β¨
share group snapshot set
[--name <name>]
[--description <description>]
[--status <status>]
<share-group-snapshot>
--name <name>β set a name for the snapshot--description <description>β set a description for the snapshot--status <status>β explicitly set the state of a share group snapshot (Admin only). options include:available,error,creating,deleting,error_deleting. like, you're literally deciding its mood πshare-group-snapshotβ name or ID of the snapshot to set a property for
this command is provided by the python-manilaclient plugin.
β share group snapshot show
shows the details of one share group snapshot. the full lore drop π
share group snapshot show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<share-group-snapshot>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β maximum display width,<1to disable. you can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. implied if--max-widthgreater than 0. set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to show.share-group-snapshotβ name or ID of the share group snapshot to display
this command is provided by the python-manilaclient plugin.
π share group snapshot unset
unsets a share group snapshot property. the anti-glow-up π
share group snapshot unset
[--name]
[--description]
<share-group-snapshot>
--nameβ unset the share group snapshot name.--descriptionβ unset the share group snapshot description.share-group-snapshotβ name or ID of the group snapshot to unset a property of
this command is provided by the python-manilaclient plugin.
π share servers
π resource locks
π qos types
π share qos type create
makes a brand new qos type. new qos type just dropped π₯
share qos type create
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--description <description>]
[--spec <key=value>]
<name>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β add a prefix to all variable names--max-width <integer>β maximum display width,<1to disable. you can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ fit the table to the display width. implied if--max-widthgreater than 0. set the environment variableCLIFF_FIT_WIDTH=1to always enable--print-emptyβ print empty table if there is no data to show.--description <description>β the QoS type description.--spec <key=value>β spec key and value of the QoS type that'll be used for QoS type creation. OPTIONAL: Default=None. Example:--spec qos_type='fixed' --spec peak_iops=300. stack 'em, bestie π«Άnameβ QoS type name. it must be unique, no copies allowed π
this command is provided by the python-manilaclient plugin.
π share qos type delete
deletes a qos type. gone, reduced to atoms π
share qos type delete <qos_types> [<qos_types> ...]
qos_typesβ name or ID of the qos type(s) to delete
this command is provided by the python-manilaclient plugin.
πΈ share qos type list
lists your qos types. the whole collection π
share qos type list
[-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent]
[--max-width <integer>]
[--fit-width]
[--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--name <name>]
[--description <description>]
[--name~ <name~>]
[--description~ <description~>]
[--limit <num-qos-types>]
[--offset <offset>]
[--sort-key <sort_key>]
[--sort-dir <sort_dir>]
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ specify the column(s) to include, can be repeated to show multiple columns--quote <QUOTE_MODE>β when to include quotes, defaults tononnumeric--noindentβ whether to disable indenting the JSON--max-width <integer>β maximum display width,<1to disable. you can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence.--fit-widthβ squishes the table to fit your display width β¨. It's implied automatically if--max-widthis greater than 0. Wanna always have it on? Set the environment variableCLIFF_FIT_WIDTH=1and it's yours forever π--print-emptyβ prints an empty table when there's literally no data to show. Not me wanting to see an empty table but okay bestie π«Ά--sort-column SORT_COLUMNβ tell it which column(s) to sort the data by. Columns you name first get priority, and non-existing columns are just ignored (they get the silent treatment π). Column names are case-insensitive and accept underscores for spaces. You can repeat this flag as many times as you want π₯--sort-ascendingβ sorts the column(s) in ascending order β¬οΈ--sort-descendingβ sorts the column(s) in descending order β¬οΈ--name <name>β filters the results by name. Default=None.--description <description>β filters the results by description. Default=None.--name~ <name~>β filters results that match a qos name pattern π--description~ <description~>β filters results that match a qos description pattern π--limit <num-qos-types>β caps how many qos types come back. Default=None.--offset <offset>β where to start in the qos type records listing, like a little starting line π--sort-key <sort_key>,--sort_key <sort_key>β the key you wanna sort by. The available keys are('id', 'name', 'created_at', 'updated_at'). Default=None.--sort-dir <sort_dir>,--sort_dir <sort_dir>β sort direction, and the available values are('asc', 'desc'). OPTIONAL: Default=None.
This command is provided by the python-manilaclient plugin π
π share qos type set π
Set a qos type's description or specs, bestie. Bestie behaviour fr fr.
share qos type set
[--description <description>]
[--spec <key=value>]
<qos_type>
--description <description>β the shiny new description for the qos type β¨--spec <key=value>β a spec key and value for the qos type that'll be used for the QoS type. OPTIONAL: Default=None. For example,--spec qos_type='fixed' --spec peak_iops=300β see how you can stack 'em? πqos_typeβ name or ID of the qos type you're modifying π οΈ
This command is provided by the python-manilaclient plugin π
πΈ share qos type show πΈ
Displays all the qos type details, like a full reveal moment π
share qos type show
[-f {json,shell,table,value,yaml}]
[-c COLUMN]
[--noindent]
[--prefix PREFIX]
[--max-width <integer>]
[--fit-width]
[--print-empty]
<qos_type>
-f <FORMATTER>,--format <FORMATTER>β the output format, defaults totable-c COLUMN,--column COLUMNβ picks the column(s) to include. Repeat it to show multiple columns π«--noindentβ whether to disable indenting the JSON--prefix <PREFIX>β adds a prefix to all the variable names--max-width <integer>β the maximum display width, and<1disables it. You can also use theCLIFF_MAX_TERM_WIDTHenvironment variable, but the parameter takes precedence (it wins the argument, periodt).--fit-widthβ fits the table to the display width. Implied if--max-widthis greater than 0. Set the environment variableCLIFF_FIT_WIDTH=1to always enable it.--print-emptyβ prints an empty table if there's no data to show.qos_typeβ the qos type to display, as a name or an ID π
This command is provided by the python-manilaclient plugin π
π¦ share qos type unset π¦
Unsets qos type specs β yes, we're taking things away now π
share qos type unset [--description] [--spec <key>] <qos_type>
--descriptionβ unsets the qos type description π§--spec <key>β removes the specified spec from this qos typeqos_typeβ name or ID of the qos type you're modifying π οΈ
This command is provided by the python-manilaclient plugin π
π OpenStackClient Mapping Guide π
Note: the legacy manila CLI has been removed π. This guide is maintained for historical reference, to help users upgrading from older versions.
The following is a mapping between the legacy manila CLI client and OpenStackClient. Command options are only shown when necessary π
π USING THE PYTHON MODULE π
The manilaclient Python API
Usage
Okay so if you wanna use the Python API directly, you have to first get yourself an auth token and figure out which endpoint you wanna talk to. Once you've done that, you can use the API like this, bestie:
>>> from manilaclient import client
>>> manila = client.Client('2', $OS_USER_NAME, $OS_PASSWORD, $OS_PROJECT_NAME, $OS_AUTH_URL)
>>> manila.shares.list()
[]
>>> share = manila.shares.create(share_proto="nfs", size=1, share_network_id="some_share_network_id")
>>> share.id
ce06d0a8-5c1b-4e2c-81d2-39eca6bbfb70
>>> manila.shares.list()
[<Share: ce06d0a8-5c1b-4e2c-81d2-39eca6bbfb70>]
>>> share.delete
And it's not just creating and deleting shares β the manilaclient can manage share-types, access controls, and more! π Here's an example using CephFS with Ganesha for NFS support (this assumes it continues from the initialization above):
>>> share_type = client.share_types.create(
>>> name="cephfsnfstype", spec_driver_handles_share_servers=False,
>>> extra_specs={
>>> 'vendor_name': 'Ceph',
>>> 'storage_protocol': 'NFS',
>>> 'snapshot_support': False,
>>> })
>>> share_type
<ShareType: cephfsnfstype>
>>> share = client.shares.create(
>>> share_type='cephfsnfstype', name='cephnfsshare1',
>>> share_proto="nfs", size=1)
>>> share.allow(access_type='ip', access="192.168.0.0/24", access_level='rw')
{'id': '29bc4b66-d55d-424d-8107-aee96d1c562b', 'share_id': '0ac95dd2-afba-4ba3-8934-721b29492f04', 'access_level': 'rw', 'access_to': '192.168.0.0/24', 'access_type': 'ip', 'state': 'new'}
>>> share.export_locations
['10.5.0.22:/volumes/_nogroup/cf0451b6-0a95-4982-a801-2e212e9c9b96']
In the example above, Manila gets set up with an NFS share type, backed by CephFS β¨. Then a share is created, and then access controls get added, giving the 192.168.0/24 subnet read/write access to the share. Iconic behaviour honestly π
π CONTRIBUTING π
Contributing
Basic Information
So You Want to Contribute...
For the general info on contributing to OpenStack, go check out the contributor guide at https://docs.openstack.org/contributors/ to get started π«Ά. It covers all the basics that are common to every OpenStack project: the accounts you need, the basics of interacting with our Gerrit review system, how we communicate as a community, etc.
This project contains a python SDK and command line clients to interact with the API exposed by Manila (https://opendev.org/openstack/manila), the OpenStack Shared File Systems service. Refer to the Contributor guide for Manila (https://docs.openstack.org/manila/latest/contributor/contributing.html) for the info about the team's task trackers, communicating with the other project developers, and contacting the core team π
Bugs
You found an issue and you wanna make sure we know about it? You can do that on Launchpad: https://bugs.launchpad.net/python-manilaclient π
And if you're looking to contribute, search for the low-hanging-fruit tag (https://bugs.launchpad.net/python-manilaclient/+bugs?field.tag=low-hanging-fruit) to see the issues that are easier to get started with π±
Project Structure
This project includes two distinct components, and yes they're both main characters:
- manilaclient SDK: python bindings for Manila API version V1 (
https://opendev.org/openstack/python-manilaclient/src/branch/master/manilaclient/v1) and version V2 (https://opendev.org/openstack/python-manilaclient/src/branch/master/manilaclient/v2) - OpenStack client shell: a plugin to support the OpenStack Client (
https://opendev.org/openstack/python-manilaclient/src/branch/master/manilaclient/osc) Command Line Interface.
The version 2 of the API for Manila supports microversions. The manilaclient library is expected to handle these for complete backwards compatibility. All versions of the Manila API are currently supported β however, future releases of manilaclient may drop support for older versions of the API π (so like, heads up).
If you're working on the OpenStack Client command line interface plugin that exists in this project, do read the OpenStack Client Developer Documentation (https://docs.openstack.org/python-openstackclient/latest/contributor/index.html). That includes the Human Interface Guide and some design principles β including command structure and command specs β that you'll find helpful π
Programming HowTos and Tutorials
Release Notes
What are release notes?
Release notes are important for change management within manila. Since manila follows a release cycle with milestones, release notes give the community and users a way to quickly grasp what changed within a development milestone. To the OpenStack release management and documentation teams, release notes are a way to compile changes per milestone. These notes get published on the OpenStack Releases website at http://releases.openstack.org π₯. Automated tooling is built around releasenotes and they get appropriately handled per release milestone, including any back-ports to stable releases.
What needs a release note?
- Changes that impact an upgrade β most importantly, the ones that require a deployer to take some action while upgrading β οΈ
- A new feature is implemented β¨
- An existing feature is deprecated
- An existing feature is removed
- Behavior of an existing feature has changed in a discernible way to an end user or administrator
- A security bug is fixed π
- New configuration option is added
What does not need a release note?
- A code change that doesn't change the general behavior of any feature, like a code refactor or logging changes. One case of this could be the removal of the python 2.x compatibility layer, i.e., the
"six"library, from code. - Functional or unit test coverage enhancement
- Any change submitted with a justified
TrivialFixflag added in the commit message - Adding or changing documentation within in-tree documentation guides
How do I add a release note?
We use Reno (https://docs.openstack.org/reno/latest/) to create and manage release notes. The new subcommand combines a random suffix with a "slug" value to make the new file with a unique name that's easy to identify again later π·οΈ. To create a release note for your change, use:
$ reno new slug-goes-here
If reno isn't installed globally on your system, you can use a tox environment in manila:
$ tox -e newnote -- slug-goes-here
Note: when you're adding a bug-fix reno, name your file using the template: bug-<launchpad-bug-id>-slug-goes-here π
Then add the notes in yaml format in the file you created. Pay attention to the type of section π. The following are the general sections to use:
prelude
Genel comments about the change, bestie. The prelude from all notes in a release get combined β in note order β to produce one single prelude introducing the release. It's giving "opening act energy" β¨
features
New features introduced. Slay. π
issues
A list of known issues with respect to the change being introduced. Like, if the new feature is experimental or known to not work in some cases, it should be mentioned right here. No cap, be honest about it. π«Ά
upgrade
A list of upgrade notes in the release. Any removals that affect upgrades are to be noted here.
deprecations
Any features, APIs, configuration options that the change has deprecated. Deprecations are not removals. Deprecations suggest that there will be support for a certain timeline. Deprecation should allow time for users to make necessary changes for the removal to happen in a future release. It is important to note the timeline of deprecation in this section β literally, write the timeline down, iykyk. π°οΈ
critical
A list of fixed critical bugs (descriptions only).
security
A list of fixed security issues (descriptions only).
fixes
A list of other fixed bugs (descriptions only).
other
Other notes that are important but do not fall into any of the given categories.
---
prelude: >
Replace this text with content to appear at the
top of the section for this change.
features:
- List new features here, or remove this section.
issues:
- List known issues here, or remove this section.
upgrade:
- List upgrade notes here, or remove this section.
deprecations:
- List deprecation notes here, or remove this section
critical:
- Add critical notes here, or remove this section.
security:
- Add security notes here, or remove this section.
fixes:
- Add normal bug fixes here, or remove this section.
other:
- Add other notes here, or remove this section.
π Dos and Don'ts
- Release notes need to be succinct. Short and unambiguous descriptions are preferred π―
- Write in past tense, unless you are writing an imperative statement
- Do not have blank sections in the file π
- Do not include code or links
- Avoid special rst formatting unless absolutely necessary
- Always prefer including a release note in the same patch
- Release notes are not a replacement for developer/user/admin documentation
- Release notes are not a way of conveying behavior of any features or usage of any APIs
- Limit a release note to fewer than 2-3 lines per change per section
- OpenStack prefers atomic changes. So remember that your change may need the fewest sections possible
- General writing guidelines can be found here: <https://docs.openstack.org/doc-contrib-guide/writing-style/general-writing-guidelines.html>
- Proofread your note. Pretend you are a user or a deployer who is reading the note after a milestone or a release has been cut π
Fr fr, that last one is the vibe check that matters. Read it like a stranger would. π
π§ͺ Testing
Manilaclient has two types of tests β unit and functional.
The preferred way to run tests is using tox.
See Consistent Testing Interface <https://opendev.org/openstack/governance/src/branch/master/reference/project-testing-interface.rst> for more details.
π¦ Functional tests
There is a suite of functional tests under the python-manilaclient/tests/functional directory. Unlike unit tests, these tests perform API calls to Manila and are designed to run on a DevStack.
Adding functional tests to your changes is not mandatory but it's certainly a good practice and it's encouraged. Lowkey iconic of you if you do. β¨
π Prerequisite
You need to have manila running somewhere. If you wish to use DevStack to run manila, a good place to start would be the manila contributor guide: <https://docs.openstack.org/manila/latest/contributor/development-environment-devstack.html>
Note: We absolutely recommend using a fake shared file system back end as opposed to a real storage system, because our tests are written with the assumption that all APIs manila exposes are usable. In reality, different real world storage back ends have different capabilities <https://docs.openstack.org/manila/latest/admin/share_back_ends_feature_support_mapping.html> and this project doesn't need to worry about them to provide a general purpose interface to Manila. A fake driver provides fake storage, so don't expect to be able to mount or use the shared file systems that you create with it. π Like, it's fake fake. Don't try to mount it, bestie.
You can use the following local.conf file to configure DevStack including Manila using a few fake back ends:
[[local|localrc]]
# auth
ADMIN_PASSWORD=nomoresecret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
# enable logging for DevStack
LOGFILE=/opt/stack/logs/stack.sh.log
# Logging mode for DevStack services
VERBOSE=True
# manila
enable_plugin manila https://opendev.org/openstack/manila
# python-manilaclient
LIBS_FROM_GIT=python-manilaclient
# share driver
SHARE_DRIVER=manila.tests.share.drivers.dummy.DummyDriver
# share types
MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='snapshot_support=True create_share_from_snapshot_support=True revert_to_snapshot_support=True mount_snapshot_support=True'
MANILA_CONFIGURE_DEFAULT_TYPES=True
# backends and groups
MANILA_ENABLED_BACKENDS=alpha,beta,gamma,delta
MANILA_CONFIGURE_GROUPS=alpha,beta,gamma,delta,membernet,adminnet
# alpha
MANILA_OPTGROUP_alpha_share_driver=manila.tests.share.drivers.dummy.DummyDriver
MANILA_OPTGROUP_alpha_driver_handles_share_servers=True
MANILA_OPTGROUP_alpha_share_backend_name=ALPHA
MANILA_OPTGROUP_alpha_network_config_group=membernet
MANILA_OPTGROUP_alpha_admin_network_config_group=adminnet
# beta
MANILA_OPTGROUP_beta_share_driver=manila.tests.share.drivers.dummy.DummyDriver
MANILA_OPTGROUP_beta_driver_handles_share_servers=True
MANILA_OPTGROUP_beta_share_backend_name=BETA
MANILA_OPTGROUP_beta_network_config_group=membernet
MANILA_OPTGROUP_beta_admin_network_config_group=adminnet
# gamma
MANILA_OPTGROUP_gamma_share_driver=manila.tests.share.drivers.dummy.DummyDriver
MANILA_OPTGROUP_gamma_driver_handles_share_servers=False
MANILA_OPTGROUP_gamma_share_backend_name=GAMMA
MANILA_OPTGROUP_gamma_replication_domain=DUMMY_DOMAIN
# delta
MANILA_OPTGROUP_delta_share_driver=manila.tests.share.drivers.dummy.DummyDriver
MANILA_OPTGROUP_delta_driver_handles_share_servers=False
MANILA_OPTGROUP_delta_share_backend_name=DELTA
MANILA_OPTGROUP_delta_replication_domain=DUMMY_DOMAIN
# membernet
MANILA_OPTGROUP_membernet_network_api_class=manila.network.standalone_network_plugin.StandaloneNetworkPlugin
MANILA_OPTGROUP_membernet_standalone_network_plugin_gateway=10.0.0.1
MANILA_OPTGROUP_membernet_standalone_network_plugin_mask=24
MANILA_OPTGROUP_membernet_standalone_network_plugin_network_type=vlan
MANILA_OPTGROUP_membernet_standalone_network_plugin_segmentation_id=1010
MANILA_OPTGROUP_membernet_standalone_network_plugin_allowed_ip_ranges=10.0.0.10-10.0.0.209
MANILA_OPTGROUP_membernet_network_plugin_ipv4_enabled=True
# adminnet
MANILA_OPTGROUP_adminnet_network_api_class=manila.network.standalone_network_plugin.StandaloneNetworkPlugin
MANILA_OPTGROUP_adminnet_standalone_network_plugin_gateway=11.0.0.1
MANILA_OPTGROUP_adminnet_standalone_network_plugin_mask=24
MANILA_OPTGROUP_adminnet_standalone_network_plugin_network_type=vlan
MANILA_OPTGROUP_adminnet_standalone_network_plugin_segmentation_id=1011
MANILA_OPTGROUP_adminnet_standalone_network_plugin_allowed_ip_ranges=11.0.0.10-11.0.0.19,11.0.0.30-11.0.0.39,11.0.0.50-11.0.0.199
MANILA_OPTGROUP_adminnet_network_plugin_ipv4_enabled=True
π Configuration
The functional tests require a couple of configuration files, so you will need to generate them before running the tests. Annoying? A little. Necessary? Extremely. π
π§ For DevStack
On your DevStack machine, you can run the following script. It assumes that devstack is cloned onto your base folder.
DEST=${DEST:-/opt/stack}
MANILACLIENT_DIR=${MANILACLIENT_DIR:-$DEST/python-manilaclient}
MANILACLIENT_CONF="$MANILACLIENT_DIR/etc/manilaclient/manilaclient.conf"
# Go to the manilaclient dir
cd $MANILACLIENT_DIR
# Give permissions
sudo chown -R $USER:stack .
# Create manilaclient config file
touch $MANILACLIENT_CONF
# Import functions from devstack
source $HOME/devstack/functions
# Set options to config client.
source $HOME/devstack/openrc demo demo
export OS_TENANT_NAME=${OS_PROJECT_NAME:-$OS_TENANT_NAME}
iniset $MANILACLIENT_CONF DEFAULT username $OS_USERNAME
iniset $MANILACLIENT_CONF DEFAULT tenant_name $OS_TENANT_NAME
iniset $MANILACLIENT_CONF DEFAULT password $OS_PASSWORD
iniset $MANILACLIENT_CONF DEFAULT auth_url $OS_AUTH_URL
iniset $MANILACLIENT_CONF DEFAULT project_domain_name $OS_PROJECT_DOMAIN_NAME
iniset $MANILACLIENT_CONF DEFAULT user_domain_name $OS_USER_DOMAIN_NAME
iniset $MANILACLIENT_CONF DEFAULT project_domain_id $OS_PROJECT_DOMAIN_ID
iniset $MANILACLIENT_CONF DEFAULT user_domain_id $OS_USER_DOMAIN_ID
source $HOME/devstack/openrc admin demo
export OS_TENANT_NAME=${OS_PROJECT_NAME:-$OS_TENANT_NAME}
iniset $MANILACLIENT_CONF DEFAULT admin_username $OS_USERNAME
iniset $MANILACLIENT_CONF DEFAULT admin_tenant_name $OS_TENANT_NAME
iniset $MANILACLIENT_CONF DEFAULT admin_password $OS_PASSWORD
iniset $MANILACLIENT_CONF DEFAULT admin_auth_url $OS_AUTH_URL
iniset $MANILACLIENT_CONF DEFAULT admin_project_domain_name $OS_PROJECT_DOMAIN_NAME
iniset $MANILACLIENT_CONF DEFAULT admin_user_domain_name $OS_USER_DOMAIN_NAME
iniset $MANILACLIENT_CONF DEFAULT admin_project_domain_id $OS_PROJECT_DOMAIN_ID
iniset $MANILACLIENT_CONF DEFAULT admin_user_domain_id $OS_USER_DOMAIN_ID
# Suppress errors in cleanup of resources
SUPPRESS_ERRORS=${SUPPRESS_ERRORS_IN_CLEANUP:-False}
iniset $MANILACLIENT_CONF DEFAULT suppress_errors_in_cleanup $SUPPRESS_ERRORS
# Set access type usage specific to dummy driver that we are using in CI
iniset $MANILACLIENT_CONF DEFAULT access_types_mapping "nfs:ip,cifs:user"
# Dummy driver is capable of running share migration tests
iniset $MANILACLIENT_CONF DEFAULT run_migration_tests "True"
# Running mountable snapshot tests in dummy driver
iniset $MANILACLIENT_CONF DEFAULT run_mount_snapshot_tests "True"
# Create share network and use it for functional tests if required
USE_SHARE_NETWORK=$(trueorfalse True USE_SHARE_NETWORK)
if [[ ${USE_SHARE_NETWORK} = True ]]; then
SHARE_NETWORK_NAME=${SHARE_NETWORK_NAME:-ci}
DEFAULT_NEUTRON_NET=$(openstack network show private -c id -f value)
DEFAULT_NEUTRON_SUBNET=$(openstack subnet show private-subnet -c id -f value)
NEUTRON_NET=${NEUTRON_NET:-$DEFAULT_NEUTRON_NET}
NEUTRON_SUBNET=${NEUTRON_SUBNET:-$DEFAULT_NEUTRON_SUBNET}
manila share-network-create --name $SHARE_NETWORK_NAME --neutron-net $NEUTRON_NET --neutron-subnet $NEUTRON_SUBNET
iniset $MANILACLIENT_CONF DEFAULT share_network $SHARE_NETWORK_NAME
iniset $MANILACLIENT_CONF DEFAULT admin_share_network $SHARE_NETWORK_NAME
fi
# Set share type if required
if [[ "$SHARE_TYPE" ]]; then
iniset $MANILACLIENT_CONF DEFAULT share_type $SHARE_TYPE
fi
like, yes bestie, the blank lines are doing literally nothing functional but they're iconic and we're keeping them, no notes π
π§ͺ Running the tests π§ͺ
k so you wanna run the whole functional test suite? slay. first thing: make sure you're chillin' at the top level of your python-manilaclient module (think /opt/stack/python-manilaclient/), and then you literally just run:
tox -e functional
and that's it, that's the whole vibe π
what happens under the hood: it creates a virtual environment, loads all the packages from test-requirements.txt, and runs all the functional tests. that's the entire sentence, fr fr β no hidden steps, no extra flags, no secret handshake β¨
π Author π
Author name not set
(yeah. that's the whole author section. it's giving mystery, it's giving anonymous main character energy π nobody claimed it, so here we are)
π Copyright π
Rackspace, based on work by Jacob Kaplan-Moss
so the copyright line is Rackspace's, and it sits on top of work by Jacob Kaplan-Moss β give credit where credit is due, periodt π«Ά
and that's a wrap on the whole page, bestie!! π you made it to the end, which is honestly such a flex π this beauty is python-manilaclient version 6.3.0, dated Jan 02, 1980 (yes, the date is a whole mood π), and it goes out to you, PYTHON-MANILACLIENT(1) reader, with love π¦π go forth and functional-test responsibly β¨
π¦ where this page comes from
- nixpkgs unstable: python3.13-python-manilaclient 6.3.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms