summaryrefslogtreecommitdiff
path: root/cinderclient
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add snapshot_id param note for backup-create"queens-em3.5.0Zuul2018-01-232-0/+9
|\
| * Add snapshot_id param note for backup-createzhengyin2018-01-112-0/+9
| | | | | | | | Change-Id: Id7c565629aeed6d915b21b8de514afcee42470cf
* | Merge "Bump API microversion to 3.50"Zuul2018-01-231-1/+1
|\ \
| * | Bump API microversion to 3.50Jay S. Bryant2018-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is to bump MAX_VERSION to 3.50 in api_version. This bump is necessary to keep cinderclient in sync with cinder which moved to 3.50 with change: f1bfd9790d2a7cac9a3e66417b11dc8e3edd8109 With MV 3.50 we are able to request multiple attachments for a single volume. Change-Id: Ic51b890b816112cecaedd68df8d13ec175623c66
* | | Removes unicode 'u' response for "cinder get-capabilities"Abijitha Nadagouda2018-01-232-4/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output of "cinder get-capabilities" command returns unicoded response. But it would appear from the utils class that setting formatters will go through the capabilities dict and make sure all values are properly string formatted. Therefore added formatters to return string formatted response. Added formatters=sorted(prop.keys()) line instead of static values as suggested by the reviewer, to avoid tying server knowledge to the client and also any update on the server side would easily reflect here. Closes-bug: #1680444 Change-Id: Ie38236db364d59ddab42cb925d0435777b0ffe86
* | Merge "Support for reporting backend state in service list"Zuul2018-01-184-1/+24
|\ \
| * | Support for reporting backend state in service listwanghao2018-01-094-1/+24
| |/ | | | | | | | | | | | | | | | | | | This patch will support the feature: report backend state in service list in client side. Depends-On: I561dca3ef7c1901401621bc112389dbd178a907e Change-Id: If15e1fa50b5feecd74c7394c918f4fc9d87bcf3e Implements: blueprint report-backend-state-in-service-list
* | Merge "Add api_version wraps for generic volume groups"Zuul2018-01-181-0/+10
|\ \
| * | Add api_version wraps for generic volume groupsjeremy.zhang2018-01-111-0/+10
| | | | | | | | | | | | | | | | | | This patch is mainly to add api_verion wraps for volume group APIs. Change-Id: I1f71ef67c482410b9a671226f68160afde98ae5d
* | | Merge "Migrate to keystoneauth identity cli opts."Zuul2018-01-172-133/+92
|\ \ \
| * | | Migrate to keystoneauth identity cli opts.Zhao Chao2018-01-162-133/+92
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use keystoneauth1 to parse keystone authentication arguments. Previously these arguments are parsed in the different service clients seperately. Use keystoneauth1 instead will make this consistent across projects and less error-prone. This change is inspired by NovaClient. Co-Authored-By: Morgan Fainberg <morgan.fainberg@gmail.com> Co-Authored-By: David Hu <david.hu@hp.com> Co-Authored-By: Monty Taylor <mordred@inaugust.com> Closes-Bug: #1734945 Change-Id: I3c5141eeddd3747ff542e95b04e4848470ad9508 Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* | | Merge "Fix v2 volume unit tests"Zuul2018-01-161-17/+15
|\ \ \
| * | | Fix v2 volume unit testsjeremy.zhang2018-01-081-17/+15
| |/ / | | | | | | | | | | | | | | | | | | This patch is mainly to fix the wrongly used fake client in v2 volume unit tests. Change-Id: If0d0aa7a95b7d58886cc77e8a377ac2f17985f18
* | | Merge "Add service cleanup command"Zuul2018-01-165-0/+123
|\ \ \
| * | | Add service cleanup commandGorka Eguileor2017-10-035-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cinder volume services will perform cleanup on start, but when we have multiple volume services grouped in a cluster, we may want to trigger cleanup of services that are down. This patch adds command `work-cleanup` to trigger server cleanups and prints service nodes that will be cleaned and those that didn't have an alternative service in the cluster to do the cleanup. This command will only work on servers supporting API version 3.24 or higher. New command: cinder work-cleanup [--cluster <cluster-name>] [--host <hostname>] [--binary <binary>] [--is-up <True|true|False|false>] [--disabled <True|true|False|false>] [--resource-id <resource-id>] [--resource-type <Volume|Snapshot>] Specs: https://specs.openstack.org/openstack/cinder-specs/specs/newton/ha-aa-cleanup.html Change-Id: I1c33ffbffcb14f34ee2bda9042e706937b1147d7 Depends-On: If336b6569b171846954ed6eb73f5a4314c6c7e2e Implements: blueprint cinder-volume-active-active-support
* | | | Merge "Add cluster support in manage listings"Zuul2018-01-164-18/+79
|\ \ \ \ | |/ / / | | | / | |_|/ |/| |
| * | Add cluster support in manage listingsGorka Eguileor2017-10-034-18/+79
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for API microversion 3.17, which allows us to pass --cluster optional argument to volume and snapshot manage listings. Implements: blueprint cinder-volume-active-active-support Change-Id: I97b5f2e9960d5a1f140fc638804dbc631d63ff9d
* | | Fix 'cluster' paramter using for v3 volume managejeremy.zhang2018-01-053-2/+12
| |/ |/| | | | | | | | | | | The 'cluster' paramter is wrongly provided for v3 volume manage, as it should be included in the 'volume' object. Change-Id: I12440aa6ada9c0e058138e8da7f7bc12359847bb
* | Deprecate multiattach flag on volume createSean McGinnis2017-12-212-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This form of multiattach was never fully supported and is now being replaced by the new mutliattach workflow with Nova. As part of this, volume type extra specs will be used to indicate multiattach ability and will allow retyping between volume types to change the flag after creation. That work is still in progress and has some potential to change. But we know we are not going to support this old style, so we should get that deprecated now so we can remove it and not cause any confusion. Change-Id: Icbb9c0ca89b25620cedff6cac7a4723e7126eca6
* | Merge "Fix the way to get backup metadata"Zuul2017-12-202-5/+16
|\ \
| * | Fix the way to get backup metadatalihaijing2017-12-132-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In v3/shell.py do_backup_update(), the metadata through 'args.metadata' is a list, like this: 'metadata': [u'k1=v1']. But we need a metadata dict like this: 'metadata': {"k1": "v1"}. So call the right method shell_utils.extract_metadata() to get metadata from args. Change-Id: I82cb96b1f89b4009d4b3f4a0e64db076a7a04977
* | | Merge "Backup create is not available from 3.0 to 3.42"Zuul2017-12-153-16/+69
|\ \ \
| * | | Backup create is not available from 3.0 to 3.42TommyLike2017-12-143-16/+69
| |/ / | | | | | | | | | | | | | | | | | | | | | Backup create command is shielded by patch [1]. [1]: 2255fc99da9752737dcaa96ae4507b646074afb2 Change-Id: I100b8734ee2df4d81e16e2bfdafd81227c20d25e
* | | Removed unnecessary parameters from group and group_snapshots create APIspooja jadhav2017-12-145-23/+5
|/ / | | | | | | | | | | | | | | | | | | | | As per code, the 'status', 'user_id' and 'project_id' parameter is not required to be passed in the request body in case of group and group_snapshot create APIs. Even if you pass these parameter, it is silently ignored in the code. This patch removes those parameters passed in the request body. Change-Id: I29e7d4c8a3eee52f4ea7278d2edf2c7deec40628
* | Merge "Remove 'end_version' parameter in backup update"Zuul2017-12-112-5/+2
|\ \
| * | Remove 'end_version' parameter in backup updateTommyLike2017-12-042-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary 'end_version' which was added in patch [1]. [1]: 2255fc99da9752737dcaa96ae4507b646074afb2 Change-Id: If014ba9c12bf662ef23ebf17decfa59273c63944
* | | Bump Max API version to 3.483.3.0John Griffith2017-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order for Nova to be able to make use of the code for shared_targets that has gone into Cinder we need to bump to API Version to 3.48. This bumps to 3.48 to match the latest add to the Cinder side: https://review.openstack.org/#/c/524697/1 Change-Id: Icaa17654bd2810098d02f8074fedb35c5221cd55
* | | Support create volume from backup in clientTommyLike2017-12-076-7/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds create volume from backup support in cinderclient. Change-Id: I01dbcf6b113d88732c174b848be2127ee7242b3c Implements: blueprint support-create-volume-from-backup Depends-On: 58d0fb327f9fc980e0c8b84dcd9f64c093285d13
* | | Bump Max version to 3.46TommyLike2017-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump max version in client directly as the client changes are not needed. 1. 3.46: support create bootable volume from nova 0 size image. Change-Id: Ib0cf2d88e55006c10b873327ccc85dca2dd09769
* | | Support list with 'with_count' in clientTommyLike2017-12-055-17/+114
|/ / | | | | | | | | | | | | | | Add 'with_count' parameter in list volume, snapshot and backup APIs. Change-Id: I2b7b41b3579c24703a7a67ab5dc6f960a3ccbdc2 Partial-Implements: bp add-amount-info-in-list-api
* | Merge "Add cluster support in migration and manage"Zuul2017-12-018-48/+447
|\ \ | |/
| * Add cluster support in migration and manageGorka Eguileor2017-10-038-48/+447
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for API microversion 3.16, which allows us to pass --cluster optional argument to migration and manage operations. For this, a new type of CLI argument is added, the mutually exclusive arguments that can be used similarly to the utils.arg decorator, but with utils.exclusive_arg decorator. Implements: blueprint cinder-volume-active-active-support Change-Id: If004715b9887d2a0f9fc630b44d6e11a4a8b778d
* | Merge "Revert "Bump MAX version of client to 3.45""Zuul2017-11-281-1/+1
|\ \
| * | Revert "Bump MAX version of client to 3.45"Sean McGinnis2017-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 3.45 has landed, but it's not the expected change. This reverts commit 664299b235be69ae35670d96fb70e62836b9b5b0. Change-Id: I39e93c6078871f8652889cf8a46c1af6962288e4
* | | Merge "Remove unused attribute when updating quota_class"Zuul2017-11-023-8/+6
|\ \ \
| * | | Remove unused attribute when updating quota_classTommyLike2017-08-183-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When updating quota class, attribute 'class_name' is neither used in the request nor the response [1]. [1]: https://github.com/openstack/cinder/blob/master/cinder/api/contrib/quota_classes.py#L56 Change-Id: Ic1a743ce36a087f369703f10313d51b79b5cab9c
* | | | Merge "Bump MAX version of client to 3.45"Zuul2017-10-291-1/+1
|\ \ \ \ | | |/ / | |/| |
| * | | Bump MAX version of client to 3.45j-griffith2017-09-261-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding a shared_targets field to Volumes in Cinder. This doesn't require any changes in the client, however we do need to bump the MAX MV support value. Show volumes now returns two new fields that will be displayed in the show command: shared_targets: <True|False> backend_name: <backend-name-of-storage-device> Change-Id: Ie1291f90756c3752de562f022126af2f6b3e0637
* | | Merge "Fix OS_AUTH_TYPE env var usage"Zuul2017-10-192-2/+24
|\ \ \
| * | | Fix OS_AUTH_TYPE env var usageGorka Eguileor2017-08-042-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now only deprecated OS_AUTH_SYSTEM environmental variable works to set the authentication to noauth, the reason is that we have multiple arguments writing on the same destination. This patch fixes this by making both arguments have the same default value, which is to use environmental variable OS_AUTH_TYPE if it has a value or deprecated OS_AUTH_SYSTEM if not. Closes-Bug: #1708687 Change-Id: I478fb0e628d4bebd4a1dc78c2559202916aa051f
* | | | Use generic user for both zuul v2 and v3Nam Nguyen Hoai2017-10-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'. Using $USER solves it for both cases. Change-Id: I7bd4c3d5a0acc2c73557a65dcc274a97f16bfd07
* | | | Merge "Correct sphinx source code syntax"Jenkins2017-10-101-0/+1
|\ \ \ \
| * | | | Correct sphinx source code syntaxliuyamin2017-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ia6763a019dbb89f0944d702ce78be963a7ef8271
* | | | | Merge "Add api_version_wraps to attachment-complete"Jenkins2017-10-084-6/+95
|\ \ \ \ \
| * | | | | Add api_version_wraps to attachment-completej-griffith2017-09-094-6/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The attachment-complete method didn't include the version checking. This patch adds that and adds a couple of tests. Change-Id: I63dba6ee6d56bb63a79f3ad2ef3412ebd9c1ce07 Closes-Bug: #1715732
* | | | | | Let keystoneauth set the microversion headerEric Fried2017-09-281-4/+5
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Constructing the Adapter with the default_microversion kwarg causes the Adapter to handle setting the appropriate Openstack-API-Version header. With this change set, SessionClient now uses the api_version kwarg to set default_microversion instead of setting the header explicitly. Change-Id: I5de721fa373f5d3adb42ddb4b5598f19aabfff3b
* | | | | Implement UserID in snapshot list responsej-griffith2017-09-212-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have a gap in the microversions implemented in the cinderclient and the MAX version being reported by the client. One of those is the addition of "user_id" in the snapshot list response. This patch adds that with the appropriate version checking. Note that the Max version has already been updated, but there are a few implementations missing. Change-Id: Ia8bdb46b46091a89996e404825466430b8906d18 Partial-Bug: #1715759
* | | | | Implement metadata for backup create/updatej-griffith2017-09-093-2/+115
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have a gap in the micro versions implemented in the cinderclient and the MAX version being reported by the client. This patch addresses the missing changes for micro version 3.43 which adds support for metadata for backup create and update. Change-Id: I14c7205784c53ec3ab0985a4460a88f59de171fb Partial-Bug: #1715759
* | | | Merge "Unsupported 'message' Exception attribute in PY3"3.2.0Jenkins2017-08-291-3/+3
|\ \ \ \
| * | | | Unsupported 'message' Exception attribute in PY3liuyamin2017-08-281-3/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'message' attribute has been deprecated and removed from Python3. Use six.text_type(e) instead of e.message. For more details, please check [1]: [1] https://www.python.org/dev/peps/pep-0352/ Change-Id: Ibd4e7f5fefa6b1dfb6258c5eacfa53cd3485d22c