summaryrefslogtreecommitdiff
path: root/openstackclient/volume
Commit message (Collapse)AuthorAgeFilesLines
* i18n support for help and error messages in cinderSheel Rana2016-05-2313-223/+257
| | | | 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-282-0/+140
|\ \
| * | Support for volume service listSheel Rana2016-04-252-0/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Trivial: Fix incorrect comment textTang Chen2016-04-143-3/+3
| | | | | | | | | | | | | | | | Change-Id: Ia6ec15f11a535a8de5769569d75e81094caed171
* | | | Merge "Doc: Unify repeatable option comments"Jenkins2016-04-132-2/+2
|\ \ \ \
| * | | | Doc: Unify repeatable option commentsTang Chen2016-04-122-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are lots of "this option can be repeated" comments in the doc, which are not consistent to other similar docs. This patch changes them to the following format: "repeat option to do something" Change-Id: I54e01053091c428bf87bb36bb95f73a0b80ab6e7
* | | | Merge "Add support for setting volume-type-access"Jenkins2016-04-121-6/+48
|\ \ \ \ | |/ / / |/| | |
| * | | Add support for setting volume-type-accessSheel Rana2016-04-111-6/+48
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSC does not support to set volume type access to project. This patch will provide support for adding volume type access to existing project. Closes-Bug:#1554889 Implements: bp cinder-command-support Change-Id: Ie36e202bdde7de36eb263a476eb66699d82f7565
* | | Merge "Make snapshot and backup name optional"Jenkins2016-04-074-4/+0
|\ \ \ | |/ / |/| |
| * | Make snapshot and backup name optionalIvan Kolodyazhny2016-04-064-4/+0
| |/ | | | | | | | | | | | | Cinder does not require snapshot and backup name. These arguments are optional. Change-Id: I05d59efc9642205a25684bf0b77758328296d959
* | Merge "Docs cleanup: volume type"Jenkins2016-03-292-30/+30
|\ \
| * | Docs cleanup: volume typeDean Troyer2016-03-282-30/+30
| | | | | | | | | | | | | | | | | | | | | Clean up volume type command help, add volume type show to doc, sort command classes in v1/volume_type.py. Change-Id: I1f8e5c047d9c08f5704fc23cfb694f23d32e3caf
* | | Docs cleanup: volume command helpDean Troyer2016-03-282-56/+56
|/ / | | | | | | | | | | | | | | | | This formats the volume command help text consistent with the rest of OSC, adds some reference targets and some explanation text to some commands. No functional changes have been made, only cosmetic/help output. Change-Id: Ib86ec3ca58bdea5f33078ced3ec3583b2be0e89a
* | Add support for deleting Image-propertyroot2016-03-161-4/+16
| | | | | | | | | | | | | | | | | | | | OSC does not support to delete volume's image property. This patch will provide support for deleting image property to existing volume. Closes-Bug:#1554879 Change-Id: I9256913948fae9e9a03fed173b826dfa918f78e9 Implements: bp cinder-command-support
* | Add support for setting Image-propertyroot2016-03-161-1/+12
|/ | | | | | | | | | | | OSC does not support to set volume's image property. This patch will provide support for adding image property to existing volume. Closes-Bug:#1554877 Implements: bp cinder-command-support Change-Id: I4ff5532c228f010789b81c7587dd4a2838a90f20
* Fixed a bunch of spacingBrandon Palm2016-02-231-1/+1
| | | | | | | Nothing too complicated here. I fixed a bunch of spacing issues that I saw in OSC. Change-Id: I935ab48e7c5bac5f88ecdb3a05f73fb44fc9f41d
* Add functional tests for "volume" commands v2Tang Chen2016-02-211-0/+10
| | | | | | | | | | The tests for v2 "volume" commands are quite similar to v1. This patch also map 'metadata' to 'properties', 'volume_type' to 'type' to align to the v1 output. Change-Id: Icf2c5463b186fc78c890ccd96453090c4a2c2eb6 Partial-bug: #1519503
* log take_action parameters in a single placeAkihiro Motoki2016-02-0210-265/+41
| | | | | | | | | | | | Previously each command logs take_action parameters explicitly by using @utils.log_method decorator or log.debug(). Some commands have no logging. This commit calls a logger in the base class and drops all logging definition from individual commands. Closes-Bug: #1532294 Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
* Trivial: Remove useless return from files in image and volumeTang Chen2015-12-1810-42/+0
| | | Change-Id: I3526ecd202d0908d91305a066ad72d03cee794b5
* Merge "Fix exception when doing volume set operation"Jenkins2015-12-031-1/+1
|\
| * Fix exception when doing volume set operationXi Yang2015-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | The v2 SetVolume extends from show.ShowOne and returns None after setting volume operation. It will raise an exception. This patch is going to fix the issue by changing the parent class of SetVolume to command.Command. Change-Id: Iefa453fe4adad06f2a0601a052c01e74004be5b7 Closes-bug: 1521896
* | Consistency of the --all argument for snapshotsJean-Philippe Evrard2015-11-302-2/+24
| | | | | | | | | | | | | | | | | | This change is inspired by the volume.py. It allow the user to use openstack snapshot list --all. Closes-Bug: #1517386 Change-Id: I72a53fcd0c5c5af539cd88b37e71b4331fa67473
* | Merge "Use is_public to set access of volume type"Jenkins2015-11-301-2/+2
|\ \ | |/ |/|
| * Use is_public to set access of volume typeXi Yang2015-11-261-2/+2
| | | | | | | | | | | | | | | | Currently the 'public' and 'private' keys does not work when creating volume type, 'is_public' should be used. Change-Id: If34a66053ea6c192882a1b9d8bbb1d3666be3f83 Closes-bug: 1520115
* | Fix a bug of "openstack volume delete"xiexs2015-11-271-4/+4
|/ | | | | | | | | While multi volumes specified for the osc "openstack volume delete", only the last volume is deleted. This patch tries to fix it. Change-Id: I171b2869f85b29c88fda16eaf5bf163c55795df0 Closes-Bug: #1520541
* Trivial: Fix wrong param name in comment.Tang Chen2015-11-131-1/+1
| | | | | | "volume" should be "attachments". Change-Id: Id1e9a733e18db595d8981b5b3a7735313a346787
* Trivial: Fix wrong param name in comment.Tang Chen2015-11-121-1/+1
| | | | | | "volume" should be "attachments". Change-Id: I41c797f0c7cccb2727e9e6cd6424ea2f740624b7
* Change method to get the user_idxiexs2015-11-081-3/+3
| | | | | | | | Instead of "find_project", using "find_user" to get the user_id while the option --user is specified for "openstack volume list" Change-Id: Iea8472b7b8e709a8792a56575e00003a9cbdaa39 Closes-Bug: #1514145
* Follow-on for volume list - add tests, clean helpDean Troyer2015-10-162-13/+12
| | | | | | | | | | * Add volume list tests for v1 (a copy of the v2 tests) * Converts volume v2 tests to use Identity v3 so domains can be tested * Add volume list (v2) tests for new options * Re-orders volume list options (both v1 and v2) to match * MArks the new volume list (v2) options as v2-only in doc Change-Id: I2181b2c48cfde2147d7d0ef135322df8a81e7ce8
* Add filtering by project/user for 'openstack volume list'kafka2015-10-151-5/+34
| | | | | | | | | | added project, user and domain options for filtering results, also cleaned up the order to match the docs. Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Closed-bug: #1483976 Change-Id: I9d955094d31d4a28e215d24f7521a11c62bee8db
* Add one parenthesisAtsushi SAKAI2015-10-021-1/+1
| | | | | | | | | | | | | | | | | | | In the following help message, last parenthesis is missing. $ openstack --os-volume-api-version 2 help volume delete usage: openstack volume delete [-h] [--force] <volume> [<volume> ...] Delete volume(s) positional arguments: <volume> Volume(s) to delete (name or ID) optional arguments: -h, --help show this help message and exit --force Attempt forced removal of volume(s), regardless of state (defaults to False Change-Id: I45c4030abf076cba14450019c379d333eb6530d6
* Merge "Use a common decorator to log 'take_action' activation"Jenkins2015-09-119-48/+48
|\
| * Use a common decorator to log 'take_action' activationJoshua Harlow2015-09-019-48/+48
| | | | | | | | | | | | | | | | | | Instead of duplicating the same log statement throughout the code, the same logic can be provided by a shared decorator that abstracts away the logging capability and unifies it behind a common function instead. Change-Id: Icc63bced7347c8bbf0299a4c5821425a10892a79
* | Volume v2 list does not show server nameTerryHowe2015-08-281-1/+1
|/ | | | | | | | The volume v2 list was using the volume id rather than the server id. Change-Id: Ibe03d34b5b503af2d00202dabd640f796449cf9a Closes-Bug: #1489954
* default OS_VOLUME_API_VERSION to v2Steve Martinelli2015-08-241-1/+1
| | | | | | | | | Cinder is trying to deprecate/remove support for v1, so we should, as a client library default to v2 and keep support for v1. Related-Bug: 1467589 Change-Id: I732448a57fc3fd06a8d82ec0f0d2ace671036ca2
* Merge "Add set feature to volume type v2"Jenkins2015-08-071-0/+94
|\
| * Add set feature to volume type v2heha2015-08-061-0/+94
| | | | | | | | | | | | | | | | | | | | "volume type set" and "volume type unset" is not in the v2. Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com> implements bp: volume-v2 Change-Id: Ia804787d76d2029726c030b43c61eac3b411f66a
* | Add list feature to volume v2heha2015-08-061-0/+109
| | | | | | | | | | | | | | | | | | | | "volume list" is not in the v2. Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com> implements bp: volume-v2 Change-Id: I9f4585202f5f9ec5f4c091278fc6c4036efb1290
* | Merge "Add support for volume v2 commands"Jenkins2015-07-251-0/+235
|\ \
| * | Add support for volume v2 commandsAmey Bhide2015-07-241-0/+235
| |/ | | | | | | | | | | | | | | | | | | Adds the following commands: openstack volume create openstack volume set openstack volume unset Implements: blueprint volume-v2 Change-Id: Icb7404815763aa88550112fb42f5200ce05c2486
* | Merge "Do not set default versions in parsed args"Jenkins2015-07-241-5/+3
|\ \ | |/ |/|
| * Do not set default versions in parsed argsTerryHowe2015-07-181-5/+3
| | | | | | | | | | | | | | | | | | | | | | Setting default versions in parsed args makes it so OCC cannot tell if the argument was parsed, an environment variable was set or it is just defaulted. In order to set api versions from OCC, it will have to be defaulted after processing OCC. Closes-Bug: #1453229 Change-Id: I4d065919397b783f3bdd4022c986c0234a7a16e6
* | Merge "Add create and list for volume type v2"Jenkins2015-07-201-0/+97
|\ \
| * | Add create and list for volume type v2chengkunye2015-07-201-0/+97
| | | | | | | | | | | | | | | | | | | | | | | | Volume API v2 is missing create and list features. implements bp: volume-v2 Change-Id: I34a1ae440e9620b1c65546f4f43b369c8661250d
* | | Merge "Format volume type properties when showing"Jenkins2015-07-201-0/+2
|\ \ \ | |/ / |/| |