summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v2
Commit message (Collapse)AuthorAgeFilesLines
* Rename backup commands in volume v1 and v2Huanxuan Ao2016-08-111-15/+100
| | | | | | | | | | | | | | | | | | | | | Backup commands are used only in volume service now, but "backup" is too generic, users may not know the commands are used for volume from the commands name. By seeing the command name, users can only see the "backup" but do not know which object the backup commands work for. It may confuse users. I think rename "backup" to "volume backup" can depict resource relation and will be helpful for users to know the commands clearly. So add new commands ``volume backup create/delete/ list/show/restore`` to replace the old commands ``backup create/delete/list/show/restore``. And also deprecate old commands. Change-Id: I4f844d9bc48573eb4d17288ce6b8a90cea00d16a Implements: bp backup-snapshot-renamed-for-volume-resource Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* Support multi REST API calls error handling for "volume set" commandHuanxuan Ao2016-08-061-14/+41
| | | | | | | | Support the error handling follow the rule in doc/source/command-errors.rst Also add a unit test for testing the error handling Change-Id: I98064f4b8c1dc17eb3874f7b25c827a568463c0f
* Add support of setting volume's stateXi Yang2016-08-031-0/+12
| | | | | | | | | OSC does not support to set volume's state, this patch is going to add this functionality. Closes-Bug:#1535213 Change-Id: I5bc1c7e81b8ba61c37f4bfd209fc86c5857fb050 Co-Authored-By: Huanxuan Ao <huanxuan.ao@easystack.cn>
* Add support for deleting volumes with associated snapshotswuyuting2016-07-271-5/+12
| | | | | | | | | | OSC doesn't support deleting volumes with associated snapshots. This patch provides support for deleting volumes with associated snapshots by adding an optional argument. Change-Id: I7e74f251574993ff13a38e508fd2f9debeda8d0a Closes-Bug: #1589332 Co-Authored-By: Rui Chen <chenrui.momo@gmail.com>
* Merge "Add options to "volume type list" command"Jenkins2016-07-261-1/+19
|\
| * Add options to "volume type list" commandHuanxuan Ao2016-07-231-1/+19
| | | | | | | | | | | | | | | | | | Add "--public" and "--private" options to "volume type command" in volumev2 (v2 only) to list optional volume types Change-Id: I8605990d62116c10d89ce192c14e550657dabee5 Closes-Bug: #1597198
* | Add "--marker" and "--limit" options to "snapshot list"Huanxuan Ao2016-07-231-1/+16
| | | | | | | | | | | | | | | | Add "--marker" and "--limit" options to "snapshot list" command in volume v2 (v2 only). Change-Id: Ib60840b9b83dfe5e599e4037e8ec308844a9448b Closes-Bug: #1605475
* | Show project access for volume typeSheel Rana2016-07-201-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | OSC does not support to show project access details for private volume types. This patch will provide support for showing project access details for private volume types. Closes-Bug:#1554891 Implements: bp cinder-command-support Change-Id: I218fb07a6e69033e9f8570748eee1df8df9d6fdc
* | Merge "Support error handling for delete commands in volumev2"Jenkins2016-07-184-18/+91
|\ \
| * | Support error handling for delete commands in volumev2Huanxuan Ao2016-07-144-18/+91
| |/ | | | | | | | | | | | | | | Some delete conmmands in volumev2 did not support error handling, this patch add them and also add the unit tests for bulk deletion Change-Id: I56ade6f9c7396c78fb989547476c4d94ccd76eae
* | Merge "Add "--project" option to "volume type create" command"Jenkins2016-07-181-1/+26
|\ \ | |/ |/|
| * Add "--project" option to "volume type create" commandHuanxuan Ao2016-07-121-1/+26
| | | | | | | | | | | | | | | | | | | | Add "--project" and "--project-domain" options to "volume type create" command. We can use these options to add the type access to a given project when we create the volume type. Change-Id: I483a6b61dae137682c3d1f7527531b40e508ba92 Closes-Bug: #1602169
* | Merge "Remove useless dest of option in volume v1&v2"Jenkins2016-07-142-3/+0
|\ \ | |/ |/|
| * Remove useless dest of option in volume v1&v2Huanxuan Ao2016-07-112-3/+0
| | | | | | | | | | | | | | some "dest" argument is useless because they are the same as the option name. So remove them. Change-Id: Idd37e8816cf8b0833c94a5e741fdfe56602551f9
* | Add "--incremental" option to "backup create" command in volume v2Paul Bourke2016-07-111-0/+7
|/ | | | | | | | | | Cinder V2 API supports creating volume backup with "--incremental" option. However, OSC doesn't support this argument. So this patch adds the "--incremental" option to allow users to create incremental style backups. Change-Id: Iefac5f1a6c9ef006ad9c22d4250ae6df50504781 Closes-Bug: 1600196
* Merge "Add "--property" option to "snapshot create" command in volumev2"Jenkins2016-07-061-1/+9
|\
| * Add "--property" option to "snapshot create" command in volumev2Huanxuan Ao2016-07-061-1/+9
| | | | | | | | | | | | | | | | | | Add "--property" option to "snapshot create" command in volumev2 (v2 only) to support adding properties to a new snapshot. Change-Id: Ie0e90c9ccc2ac89b3b7b0ac89751fd864aada9a4 Closes-Bug: #1597192
* | Add '--force' option to 'backup delete' command in volumev2Huanxuan Ao2016-07-061-1/+7
|/ | | | | | | | | Add '--force' option to 'backup delete' command in volumev2 (v2 only) to allow delete in state other than error or available. Change-Id: I661ea0d465db227e374cbacdde0206fa1a6dd3d5 Closes-Bug: #1597188
* Remove useless dest of option in "snapshot create" commandHuanxuan Ao2016-07-041-1/+0
| | | | | | | | The option is '--force' and the default argument is 'force', so the 'dest=force' is useless and unnecessary. This patch remove it. Change-Id: If8fd5270e4e36b5361127f4a91bdf347f29341c2
* Add "--snapshot" option to "backup create" command in volumev2Huanxuan Ao2016-07-011-0/+10
| | | | | | | | Add "--snapshot" option to "backup create" command to support backing up a snapshot. Change-Id: Ibecbf1902599875f422d372d529835f73211d3ec Closes-Bug: #1597184
* Merge "Add "--force" option to "volume qos delete" command"Jenkins2016-06-281-1/+7
|\
| * Add "--force" option to "volume qos delete" commandHuanxuan Ao2016-06-281-1/+7
| | | | | | | | | | | | | | | | Add ``--force`` option to ``volume qos delete`` command in volume v1 and v2 to allow users to delete in-use QoS specification(s). Change-Id: I46036e5f55ced8b8a1be54c521f2a5c242b89160 Closes-Bug: #1596821
* | Merge "Make set/unset command in volume pass normally when nothing specified"Jenkins2016-06-281-3/+0
|\ \
| * | Make set/unset command in volume pass normally when nothing specifiedsunyajing2016-06-271-3/+0
| |/ | | | | | | Change-Id: Iac2d1b4ba9fa6358dc9317054af970eae8d49e84
* | Merge "Add "--force" option to "backup create" command in volumev2"Jenkins2016-06-281-1/+8
|\ \
| * | Add "--force" option to "backup create" command in volumev2Huanxuan Ao2016-06-271-1/+8
| |/ | | | | | | | | | | | | | | | | | | Cinder V2 API supports creating volume backup with "--force" option. However, OSC doesn't support this argument. So this patch add the "--force" option to allow users to back up a in-use volume. Change-Id: I326f8d6172b2830da4cf1317348af50142cc5490 Closes-Bug: #1596443
* | Change "ID only" to "name or ID" for backup commandsHuanxuan Ao2016-06-271-1/+1
|/ | | | | | | | Tested "find_resulce()" can find a backup by name or ID. But some help messages and doc were "ID only", this patch modify them. Change-Id: I22dcc3a0b40f2bafabb6d26498158e2468037312
* support multi-delete for volume-typeSteve Martinelli2016-06-201-6/+23
| | | | | | | | | Added the ability to delete multiple volume types at once. Note there are no unit tests exist for v1 volume-types, so instead a functional test was created. Partial-Bug: #1592906 Change-Id: I99f3f22901ab35252b91a3072b14de7d19cb17ca
* Standardize logger usage in volumeTang Chen2016-06-142-17/+23
| | | | | | | | | | | | | | | | | self.app.log is the logger in class OpenStackShell, which should be used to record logs that have nothing to do with any specific command. So, use the file logger instead. This patch also fixes some usage that doesn't follow rules in: http://docs.openstack.org/developer/oslo.i18n/guidelines.html 1. add variables to logger as an argument 2. do not wrap variables with str() Change-Id: I248861a38a4de0412a080046aa7a6f6473c3e082 Implements: blueprint log-usage
* osc-lib: commandDean Troyer2016-06-137-7/+7
| | | | | | | Leave command.py and test_command.py as a sanity check during the deprecation period. Change-Id: I24e1b755cbfbcbcaeb5273ec0c9706b82384fc85
* osc-lib: parseractionsDean Troyer2016-06-134-4/+4
| | | | | | | Leave parseractions.py and test_parseractions.py as a sanity check during the deprecation period. Change-Id: I1a7469b6d872284e0276502a1a287bc0b87f8f83
* osc-lib: utilsDean Troyer2016-06-137-7/+8
| | | | | | | | Use osc-lib directly for utils. Leave openstackclient.common.utils for deprecation period. Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
* osc-lib: exceptionsDean Troyer2016-06-131-1/+1
| | | | | | | | Use osc-lib directly for exceptions. Leave openstackclient.common.exceptions for deprecation period. Change-Id: Iea3e862302372e1b31ccd27f69db59b4953ca828
* Merge "Fix errors for "volume type unset" command"Jenkins2016-06-071-0/+1
|\
| * Fix errors for "volume type unset" commandHuanxuan Ao2016-06-061-0/+1
| | | | | | | | | | | | | | | | Normally, we can unset multi properties but the "volume type unset" command could not, because the action "append" was missed. So I add it and also fix the unit test and doc in this patch. Change-Id: I20470f2b7bb2a8d7f292cea498826669c3418c77
* | Merge "Make set/unset commands in volume return normally when nothing specified"Jenkins2016-06-064-27/+0
|\ \ | |/ |/|
| * Make set/unset commands in volume return normally when nothing specifiedTang Chen2016-06-044-27/+0
| | | | | | | | | | | | | | | | | | | | | | set/unset commands should ends up normally instead of logging an error when nothing is specified to modify. The main reason is: When nothing is specified, the command sets/unsets nothing, which is a normal behavior, and ends up normally. No API call fails. No error happens. Change-Id: Ib03a512650e5da90aa1ef38019772448383d0d33 Partial-bug: #1588588
* | Merge "Add support for volume transfer request list"Jenkins2016-06-041-0/+51
|\ \ | |/ |/|
| * Add support for volume transfer request listSheel Rana2016-06-041-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | OSC does not support to list volume transfer from one user to other user. This patch will provide support for listning volume transfer requests. Closes-Bug:#1554886 Implements: bp cinder-command-support Change-Id: Ie659bc39cb1d1e931cca7a40b2f126a067ee484c
* | Modify the style of translated messagesJackie Yuan2016-06-031-2/+2
| | | | | | | | | | | | | | | | | | Translated messages should not be combined with orther literal strings to create partially translated message. Although this change is very small, but this is the only one in the directory VOLUME. Change-Id: If798aacde9d5d5e8ac2edd49e75099ec255c858e
* | Fix i18n support in cinderHuanxuan Ao2016-05-303-7/+7
| | | | | | | | | | | | | | | | I checked all the cinder files and found some small issues of i18n support.So I fix them. Change-Id: I2df06cb9db4643bd734105664d83299726f7b4e9 Partial-bug: #1574965
* | i18n support for leftover exception messages in volumeSheel Rana2016-05-271-1/+1
| | | | | | | | Change-Id: I7be168fc587cb717075095cf6e12db19b0884dda
* | i18n support for help and error messages in cinderSheel Rana2016-05-236-123/+138
| | | | | | | | Change-Id: I98fbc959034fe0530966291643b381855801de20
* | Merge "Add support of setting snapshot state"Jenkins2016-05-181-1/+13
|\ \ | |/ |/|
| * Add support of setting snapshot stateXi Yang2016-03-091-1/+13
| | | | | | | | | | | | | | | | This patch is going to add the functionality of setting snapshot state which OSC currently lacks. Closes-Bug:#1535239 Change-Id: I2afd6567416e75ba0c70b73351cf1eb5394b3373
* | Merge "Support for volume service list"Jenkins2016-04-281-0/+70
|\ \
| * | Support for volume service listSheel Rana2016-04-251-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSC does not support to list volume services. This patch will provide support for adding volume service related support. Closes-bug:#1550999 Implements: bp cinder-command-support Change-Id: I50ac14aeb96c4b8ddbf7b33e519feea0d126f752
* | | Add support for removing volume-type-accessSheel Rana2016-04-161-3/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSC does not support to remove volume type access to project. This feature will provide support to remove volume type access from project. Closes-Bug:#1554890 Implements: bp cinder-command-support Change-Id: I029a4292da05f028e8937962cb845ec6e00b0279
* | | Merge "use correct manager for volume snapshots"Jenkins2016-04-141-1/+1
|\ \ \
| * | | use correct manager for volume snapshotsSteve Martinelli2016-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the snapshot manager is volume_snapshots, not snapshots. Closes-Bug: #1567895 Change-Id: I12c0238fc04507c97e92089fda3bec816171a973