summaryrefslogtreecommitdiff
path: root/openstackclient/volume
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Trivial: Rename ListTransferRequests to ListTransferRequestTang Chen2016-09-122-4/+4
| |/ |/| | | | | | | | | The class name should use plural. Change-Id: I2de2489ff9aa60c2d1bf12743cbd41f2091739ca
* | Implement "volume transfer request delete" commandHuanxuan Ao2016-09-112-0/+82
| | | | | | | | | | | | | | | | | | | | Add "volume transfer request delete" command in volume v1 and v2. Also add the unit tests, docs, release note and functional tests Change-Id: Ic3d375bc8df3312fac53c1800d75f48376b8c91c Implements: bp cinder-command-support Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* | Implement "volume transfer request create" commandHuanxuan Ao2016-09-112-1/+61
| | | | | | | | | | | | | | | | | | | | Add "volume transfer request create" command in volume v1 and v2. Also add the unit tests, docs, release note and functional tests Change-Id: If362df1acf214efdf6ba129cd917d33eb54e1030 Implements: bp cinder-command-support Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* | Merge "Error handling of multi REST API calls for "snapshot set" command"Jenkins2016-09-112-10/+45
|\ \
| * | Error handling of multi REST API calls for "snapshot set" commandHuanxuan Ao2016-09-112-11/+51
| |/ | | | | | | | | | | | | | | | | Support multi REST API calls error handling for "snapshot set" command follow the rule in doc/source/command-errors.rst. Also add a unit test for testing the error handling Change-Id: I0c6214271bc54a25b051c0a62438c3344c8b51d7
* | Merge "Add "--limit" and "--marker" options to "volume list" command"Jenkins2016-09-112-2/+28
|\ \
| * | Add "--limit" and "--marker" options to "volume list" commandHuanxuan Ao2016-09-112-2/+28
| |/ | | | | | | | | | | | | | | | | Add ``--limit`` option to ``volume list`` command in volume v1, add ``--limit`` and ``--marker`` options to ``volume list`` command in volume v2. Change-Id: I327a252aa83ed84166da99cf6aa80334e0e6dd44 Partial-Bug: #1612484
* | Support error handling for delete commands in volume v1Huanxuan Ao2016-09-114-18/+90
|/ | | | | | | | | Some delete commands in volume v1 support multi delete but do not support error handling, this patch fixes them, and this patch also refactor (or add new) unit tests for some delete commands in volume v1. Change-Id: Ia8177698f8733cfe75ea0ff00eee8fdc0820f62e
* Add "volume service set" commandHuanxuan Ao2016-08-172-0/+112
| | | | | | | | Add "volume service set" command in volume v1 and v2 (v1 is the same as v2) to disable or enable volume service. Change-Id: Ibb2db7e93b24cb2e0d2a7c28b6fd8bcc851b8d2f Closes-Bug: #1613597
* Rename backup commands in volume v1 and v2Huanxuan Ao2016-08-112-30/+201
| | | | | | | | | | | | | | | | | | | | | 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>
* Merge "Support multi REST API calls error handling for "volume set" command"Jenkins2016-08-061-14/+41
|\
| * 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
* | Merge "osc-lib: shell"Jenkins2016-08-061-2/+2
|\ \ | |/ |/|
| * osc-lib: shellDean Troyer2016-08-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Convert to using ClientManager and OpenStackShell from osc-lib. * Change all internal uses of ClientManager private attributes that are now public in osc-lib's ClientManager. Leave back-compat copies in place in OSC's clientManager so we don't break plugins. * Put some work-arounds in place for changes in osc-lib that we need until a new release makes it through the g-r and u-c change process. * Add a test for Unicode decoding of argv in shell.main() to parallel the one in osc-lib. Change-Id: I85289740d4ca081f2aca8c9b40ec422ad25d302c
* | 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
* | Merge "Standardize import format"Jenkins2016-07-261-0/+1
|\ \
| * | Standardize import formatshizhihui2016-07-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | According to the rule in http://docs.openstack.org/developer/hacking/#imports I modify some irregular import format. Change-Id: Ibf29ccaf3ddec4a956334cc3368ebee7a66e282c
* | | 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-143-4/+0
|\ \ | |/ |/|
| * Remove useless dest of option in volume v1&v2Huanxuan Ao2016-07-113-4/+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-282-2/+14
|\
| * Add "--force" option to "volume qos delete" commandHuanxuan Ao2016-06-282-2/+14
| | | | | | | | | | | | | | | | 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-272-4/+4
|/ | | | | | | | 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-202-12/+52
| | | | | | | | | 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
* Merge "Standardize logger usage in volume"Jenkins2016-06-153-22/+31
|\
| * Standardize logger usage in volumeTang Chen2016-06-143-22/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix foundation copyrightsDean Troyer2016-06-142-2/+2
|/ | | | | | | | The OpenStack LLC copyrights date from before OpenStack was transferred to the foundation. These appear to be getting copy-pasted to new files so at least should reflect the correct entity. Change-Id: I02953d752cb24ead6aa4ad8bfe257a48317c9f13
* osc-lib: commandDean Troyer2016-06-1314-14/+14
| | | | | | | Leave command.py and test_command.py as a sanity check during the deprecation period. Change-Id: I24e1b755cbfbcbcaeb5273ec0c9706b82384fc85
* osc-lib: parseractionsDean Troyer2016-06-138-8/+8
| | | | | | | Leave parseractions.py and test_parseractions.py as a sanity check during the deprecation period. Change-Id: I1a7469b6d872284e0276502a1a287bc0b87f8f83
* osc-lib: utilsDean Troyer2016-06-1315-15/+21
| | | | | | | | 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
|\