summaryrefslogtreecommitdiff
path: root/cinderclient/v2/shell.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * | CLI: Non-disruptive backupXing Yang2015-08-111-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the CLI change required to support non-disruptive backup for volumes in 'in-use' status. A force flag is added to the create backup CLI. The force flag needs to be True when backing up an 'in-use' volume. By default it is False and it is not needed when backing up an 'available' volume. The Cinder server side change is merged: https://review.openstack.org/#/c/193937/ Partial-implements blueprint non-disruptive-backup Change-Id: I53aff3973cc6365a5b1d40c21b0885c1d8166df5
* | | Fix help message for reset-state commandsRajesh Tailor2015-08-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Fixed help messages for reset-state and snapshot-reset-state commands for v1 as well as v2 api. Change-Id: I06ca6e33f4e4b486ed29f258325550b89f6dc930 Closes-Bug: 1489285
* | | Merge "Show backup and volume info in backup_restore"Jenkins2015-08-241-1/+9
|\ \ \
| * | | Show backup and volume info in backup_restorelisali2015-07-201-1/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When no volume is specified in backup_restore command, a new volume is created with specified name. If running the same command several times, several volumes with same name are created, it needs to check logs to find out which volume is latest. This update is to show the returned info from api. Change-Id: I035fc85aa636b716b16c8a543c843ebf4659a96e Closes-Bug: #1472493 Depends-On: I9f5d8ded993fcf1d351d4c65b6806929693b15d6
* | | Merge "CLI: Clone CG"Jenkins2015-08-201-6/+19
|\ \ \ | |_|/ |/| |
| * | CLI: Clone CGXing Yang2015-08-081-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for clone CG in cinderclient. It uses the existing create CG from source command and adds an existing CG as a source, in addition to a CG snapshot. The server side patch is merged: https://review.openstack.org/#/c/203473/ Change-Id: I2a923de42348c22c6ae5ff5880cdbe6d719ea0ae Partial-implements: blueprint clone-cg
* | | Merge "Add support '--all-tenants' for cinder backup-list"Jenkins2015-08-191-1/+36
|\ \ \ | |/ / |/| |
| * | Add support '--all-tenants' for cinder backup-listYuriy Nesenenko2015-08-191-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added support '--name', '--status', '--volume-id' arguments for cinder backup-list. DocImpact Closes-Bug: #1422046 Depends On: I73f6377c7d6fd92d0464d13f9c8dd6682fef78e3 Change-Id: I5f2ab6370a8333a9ee498c6158037b0433f36a23
* | | Merge "Add response message when volume delete"Jenkins2015-07-301-0/+1
|\ \ \ | |/ / |/| |
| * | Add response message when volume deleteTom Jose Kalapura2015-07-161-0/+1
| |/ | | | | | | | | | | | | | | | | | | When a request is send for deleting a volume it will not print any success message if it deleted successfully.It will print only error message if the volume deletion fails. This fix will print response message if the volume deletion is success. Change-Id: Icef2045107e1dcc3b7f2abfeb50b3f180ded1a27 Closes-Bug: #1475430
* | Add commands for modifying image metadataDave Chen2015-07-271-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are Cinder Client specific changes for modifying volume and snapshot's image metadata. - cinder image-metadata volume_id set key=value This command can be used to create a new image metadata associated with the volume when the key not exists, and update the value for the existed key. - cinder image-metadata volume_id unset key This command can be used to delete image metadata associated with the volume. Depends-On: I22792ef7bd49c763d7c130aa8cac9abc3fff2d4c Partially implements: bp support-modify-volume-image-metadata Change-Id: I03787563cb3ea4ef96ed145a37fc665f80565a12
* | Add more details for replicationKuo-tung Kao2015-07-151-2/+5
|/ | | | | | | | Show more information when user uses help function to get more details about replication-promote and replication_reenable. Change-Id: Icd41bd746c32cdfabbd27a80a818344136e7b71a Closes-Bug: #1401877
* Merge "Fix outdated URLs and some minor fixes"1.3.1Jenkins2015-07-081-4/+2
|\
| * Fix outdated URLs and some minor fixesKallebe Monteiro2015-03-021-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | A minor commit. Credit to Jeremy Stanley for findind out this in other projects. The developer documentation changed. It is now at infra manual, so now the CONTRIBUTING.md was updated accordingly. Fixed some other things, like a line break which was not needed (80 char limit), the help text, and updated URL for jacobian Change-Id: I3b7cce90f72349a986a5b055fa59e53c089ba308
* | Merge "Set max volume size limit for the tenant"Jenkins2015-06-301-1/+5
|\ \
| * | Set max volume size limit for the tenantRakesh Mishra2015-06-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a need to limit maximum size of a volume to levels that the storage infrastructure can handle. Setting a maximum limit on size of a volume also prevents a tenant from creating large volumes that have not been tested and certified to satisfy SLA objectives. This feature allows admin to set volume size limit [per_volume_gigabytes] for a tenant. Change-Id: Iab584c72a34f9171000b20b2200ac12d21fc40ae Implements: blueprint cinder-quota-define-per-volume
* | | Merge "Add encryption-type-update to cinderclient"Jenkins2015-06-191-0/+57
|\ \ \ | |/ / |/| |
| * | Add encryption-type-update to cinderclientPeter Hamilton2015-06-191-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This modification adds support for updating volume encryption types. The encryption-type-update command requires a single argument, the name or ID of the volume type whose associated encryption type should be updated, and up to four optional arguments representing new values for the encryption type attributes. The update implementation supports three use cases: 1. The user wants to specify new values for attributes of an encryption type. - include the attribute and its new value at invocation 2. The user wants to preserve the values for attributes of an encryption type. - exclude the attribute at invocation 3. The user wants to set the values for attributes of an encryption type to provider defaults (only valid for cipher and key-size). - include the attribute but provide no value at invocation The encryption type may only be updated if the associated volume type is unused. This modification leverages update support for encryption types provided by the cinder volume encryption type API extension. See the following patch for more information: https://review.openstack.org/#/c/58344/ blueprint: encrypt-cinder-volumes https://blueprints.launchpad.net/nova/+spec/encrypt-cinder-volumes Change-Id: I8e6a37428e76ba69a422468630fdb66b4fe460ab DocImpact
* | | Merge "Add volume multi attach support"Jenkins2015-06-171-3/+12
|\ \ \
| * | | Add volume multi attach supportWalter A. Boring IV2015-06-111-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the new multiattach flag during volume creation time. This patch adds the attachment_uuid during detach time so cinder knows which attachment it should detach. This patch is needed by Cinder's multi-attach-volume https://review.openstack.org/#/c/85847/ Change-Id: I98c6150cf548e9d1d8557770dbd3f88ec17a9b41 Implements: blueprint multi-attach-volume
* | | | Merge "Fixes quota-class-update commands"Jenkins2015-06-161-2/+2
|\ \ \ \
| * | | | Fixes quota-class-update commandsliyingjun2015-03-021-2/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The quota-class-update commands for v1 and v2 are both broken, Fix v1 by returning result for update method in QuotaClassSetManager, fix v2 by changing arg 'class-name' to 'class_name' for consistent with v1. Change-Id: Ic7188f485b914dc55048cf056a0685618134e87a Closes-bug: #1423884
* | | | Merge "The is_public filter in VolumeTypeManager.list broke the find in ↵Jenkins2015-06-161-10/+2
|\ \ \ \ | | | | | | | | | | | | | | | VolumeTypeAccessManager, which caused all commands which should have taken a volume_type name to fail. I have choosen to fix this by effectively removing the filter in the client (and the --all argument to type-list). This is OK, since Cinder implements the filtering by user anyway. The consequence of this change is that the Admin user will always see the entire list (including private types) every time they execute type-list"
| * | | | The is_public filter in VolumeTypeManager.list broke the find inEd Balduf2015-06-151-10/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VolumeTypeAccessManager, which caused all commands which should have taken a volume_type name to fail. I have choosen to fix this by effectively removing the filter in the client (and the --all argument to type-list). This is OK, since Cinder implements the filtering by user anyway. The consequence of this change is that the Admin user will always see the entire list (including private types) every time they execute type-list Change-Id: I5c9a693711db2918abbd3bbfae53e48162a01c3c Closes-Bug: 1462104
* | | | Fix condition in CheckSizeArgForCreate parser actionAnton Arefiev2015-06-081-2/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CheckSizeArgForCreate checks that size is specified when snapshot or source volume aren't. But when size is 0, CheckSizeArgForCreate action works wrong and generates error: 'Size is a required parameter if snapshot or source volume is not specified', meanwhile user expected to see: 'Volume size '0' must be greater than 0'. Change-Id: I164970a600d6e86bd7076dd485f676a703f5e487 Closes-Bug: #1454276
* | | Merge "Remove "OPTIONAL:" from optional argument help text (v2)"Jenkins2015-05-061-6/+6
|\ \ \
| * | | Remove "OPTIONAL:" from optional argument help text (v2)Eric Harney2015-04-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All arguments starting with '--' are optional and listed under the 'Optional arguments:' header by argparse. Remove the extra note shown for each argument. This mirrors the previous change which cleaned this up for v1: 811af8f Remove "OPTIONAL:" from optional argument help text Change-Id: Ie8e9544c1544ff5403f1c29e83d528d896957899
* | | | Change --force parameter into booleanyatin karel2015-05-041-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change --force parameter into boolean, now user can use it as boolean, without specifying True or False with it. It is still backward compatible with --force True|False. This can be deprecated in future. Closes-Bug: #1244453 Change-Id: Id245af1fa0db27912439a420c37aefca530894ba
* | | | V2:cinder create --image option doesn't workPranaliDeore2015-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In create volume help, --image optional parameter is allowed to be passed to create volume, but even after passing valid image ID or NAME, volume is created without image. Assigned image parameter to the image_ref to fix this issue. Closes-Bug: 1447589 Change-Id: I21b8a51451a2caf230ca04103b2d573d1aa966b4
* | | | Create Consistency Group from CG Snapshot CLIXing Yang2015-04-221-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch addressed the following: * Added a new CLI to support creating a CG from a CG snapshot. cinder consisgroup-create-from-src [--cgsnapshot <cgsnapshot>] [--name <name>] [--description <description>] API patch: https://review.openstack.org/#/c/145952/ Partial-Implements: blueprint consistency-groups-kilo-update Change-Id: I03cce04e1d43ea72fc53a8bf614ba4f969f6e32e
* | | | Kilo Consistency Group CLI updateXing Yang2015-04-221-0/+42
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch addresses the following: * Modify Consistency Group * Add CLI to update a consistency group, i.e., changing name and description, adding existing volumes to CG and removing volumes from CG. cinder consisgroup-update --name <name> --description <description> --add-volumes <uuid1,uuid2,...> --remove-volumes <uuid5,uuid6,...> Implements: blueprint consistency-groups-kilo-update Change-Id: I76317dc006c1f80e2e6c83218e9566f1d37d935e
* | | Merge "Add support to incremental backups in cinder"Jenkins2015-04-211-1/+6
|\ \ \
| * | | Add support to incremental backups in cinderXing Yang2015-04-211-1/+6
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Added a new option to "cinder backup-create" to support incremental backups. Specify --incremental to create an incremental backup. By default, it will be a full backup. Co-Authored-By: Xing Yang <xing.yang@emc.com> Implements: blueprint incremental-backup Change-Id: Id11ecd2982ea838181b4adaa5a742fc65f864acb
* | | cinder list now supports filter by tenantyatin karel2015-04-121-74/+82
|/ / | | | | | | | | | | | | | | | | Admin can now filter volumes on the basis of tenant. Also updated help argument, to be consistent over the v1 and v2 shell module. Closes-Bug: #1341411 Change-Id: I647f0c9331ee4cd27acbfada6cdb9a56f80701b4
* | Update to change name for volume type clientGloria Gu2015-03-161-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This continues to update the name for volume type: * Update a client method for volume type. update: to update an existing volume type's name * Update a command-line operations. type-update: (adminitrator only) to update a volume type name The corresponding cinder APIs change to update volume type name: https://review.openstack.org/#/c/140906/ Implements: blueprint volume-type-description Change-Id: I66adb7fd2a433e7443cb609046f64dbab3d9d4c7
* | Updated help on cinder reset-state cliyatin karel2015-03-061-12/+12
| | | | | | | | | | | | | | | | | | | | volumes also have 'in-use', 'attaching' and 'detaching' states. These were missing in cinder help for reset-state cli. I have added these in help. Partial-Bug: #1309086 Change-Id: I094a61dd4921bed83e97134a4bfbcdc7d0c9ad63
* | Merge "Adopt CLI sorting argument guidelines"Jenkins2015-03-021-7/+20
|\ \ | |/ |/|
| * Adopt CLI sorting argument guidelinesSteven Kaufer2015-02-251-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CLI sorting guidelines are defined in the cross project specs repository: [1] This patch deprecates --sort_key and --sort_dir and adds support for --sort in the 'cinder list' command with the following syntax: cinder list --sort <key>[:<direction>] The --sort parameter is comma-separated and is used to specify one or more sort keys and directions. Server-side work for sorting by multiple keys is handled in [2]. [1] https://github.com/openstack/openstack-specs/blob/master/specs/ cli-sorting-args.rst [2] https://review.openstack.org/#/c/141915/ Implements: blueprint cinder-pagination Change-Id: Ie8c2c62b8c129f647f85d66d5bcfe4c8f0f4eedb
* | Merge "Make cinderclient metadata CLI output consistent"Jenkins2015-03-021-1/+1
|\ \
| * | Make cinderclient metadata CLI output consistentThang Pham2015-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cinder metadata-update-all and metadata-show produces inconsistent output. The following patch makes the output of each command above consistent, where each metadata property will be printed on a separate table row. Change-Id: I42933bc6c0e4f925c19cfd4db6d1a205de06a73d Closes-Bug: #1366289
* | | Add missing all-tenants option to transfer-listliyingjun2015-02-241-1/+18
| |/ |/| | | | | | | | | | | | | | | | | | | cinder transfer-list is missing the --all-tenants option, which makes it inconsistent with 'cinder list'. Without this fix, when running as admin horizon will need to make multiple queries to cinder (one for each tenant present in the volume list) in order to display the transfers that exist for the volumes being shown. Change-Id: Ic4d72a54c450876ff24c64efd83678062c93a24e Closes-bug: 1351084
* | Merge "Fix up help message for reset-state call"Jenkins2015-02-051-3/+7
|\ \
| * | Fix up help message for reset-state callJohn Griffith2015-01-281-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's some confusion about what the reset-state call does. It's not clear to some that this call simply changes the state of the object in the data-base. This patch just updates the help message to indicate more clearly that reset-state ONLY changes state in the DB. Change-Id: Ia389cfd8b1a821a356706201c009cf3c8dca8419
* | | Merge "reset-state should warn that it is DB only"Jenkins2015-02-041-1/+8
|\ \ \
| * | | reset-state should warn that it is DB onlyscottda2015-02-041-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The python-cinderclient command 'reset-state' will only change the state in the Cinder database, without affecting any connection/export of a volume from the driver backend to a Nova compute host/instance. The Doc string should explicitly state that this is the case, and Warn that it might result in an unusable volume, i.e. a volume is set to 'available' in the Cinder DB, but is still attached and therefore cannot be attached to another instance, nor detached. Change-Id: Iee66570dbb93776490ae8fb663a7f835dc496bc2 Closes-Bug: 1417273
* | | | Merge "Add support for os-volume-type-access extension"Jenkins2015-02-031-3/+55
|\ \ \ \ | |/ / / |/| | |
| * | | Add support for os-volume-type-access extensionMathieu Gagné2014-12-191-3/+55
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the ability to manage volume type access: - Create non-public volume type - List volume type access - Add a project access - Remove a project access This change also adds the is_public flag to volume type list. Note: The volume type access extension is only implemented in the Cinder API v2. DocImpact: Add volume type access extension support Implements: blueprint private-volume-types Change-Id: Ife966120d9250be8d8149cdec9c1a53405d37027
* | | Merge "Allow CG quota to be showed and updated"Jenkins2015-01-161-1/+6
|\ \ \
| * | | Allow CG quota to be showed and updatedXing Yang2014-12-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch added the ability for CG quota to be showed and updated. - Added consistencygroups as a quota resource to be displayed. - Added an option for consistencygroups quota to be updated. Change-Id: I7e88eb426eb1733bce955b7a15b8bffdb1e8ee20 Closes-Bug: #1373766
* | | | Merge "v2 error message grammatical error"Jenkins2015-01-161-4/+4
|\ \ \ \