summaryrefslogtreecommitdiff
path: root/openstackclient/volume
Commit message (Collapse)AuthorAgeFilesLines
* Adds support for container selection for backupDag Stenstad2015-04-211-1/+1
| | | | | | | | | | | | Changed argument from parsed_args.volume to parsed_args.container as per what is expected in python-cinderclient. If not defined, defaults to "backup_swift_container" in cinder.conf. Stops there being a container for every volume you take backups off. Change-Id: I4a34894222f71b0f207d007c32427040589406aa Closes-Bug: 1446751
* Defer client importsDean Troyer2015-04-151-9/+11
| | | | | | | | | | | | So we really weren't deferring the loading of client libs dadgummit, do that for real where possible. This shaves a couple of tenths off the static import times. Also defer as much import-time procesing as possible. This is a little ugly in api.auth but this also eliminates import of the auth plugins until they are needed. Change-Id: Ia11d4b9cf98231d37449103fc29101dc17afb009
* Change volume create --snapshot-id to --snapshotlin-hua-cheng2015-02-061-3/+12
| | | | | | | Keeping the option --snapshot-id hidden for backward compatibility. Change-Id: Iefa0aed9be255a5626a9bbb7db77911ef5ca8595 Closes-Bug: #1418742
* Check volume status before extending sizelin-hua-cheng2015-02-061-0/+5
| | | | | | | Added test for Volume Set as well. Change-Id: I8e6794f67b160ca328fcafa8f1d67138b4f3becd Closes-Bug: #1415182
* Add the ability to extend volumes in `osc volume set`Steve Martinelli2015-01-271-1/+14
| | | | | | | | Create a --size option for volume set, so the user may extend a volume's size. Change-Id: Ic8d3396d788a14ea1e10bf1da73edfd7f5d85070 Closes-Bug: #1413954
* Add region name for identity and volume clientsSteve Martinelli2015-01-211-0/+1
| | | | | | | | | We do not take into account region names for identity and volume clients. Change-Id: I4263e9013226b0adc6b9ad7540d6ad3efb42e809 Co-Authored-By: Eric Helgeson <erichelgeson@gmail.com> Related-Bug: #1405416
* Merge "Command doc: snapshot"Jenkins2015-01-091-11/+11
|\
| * Command doc: snapshotSteve Martinelli2015-01-091-11/+11
| | | | | | | | Change-Id: Ibe5cd0a8422788762e0c52b702b7bd54e6a46813
* | Merge "Fix up snapshot command"Jenkins2015-01-091-14/+115
|\ \ | |/
| * Fix up snapshot commandSteve Martinelli2015-01-091-14/+115
| | | | | | | | | | | | | | | | | | | | | | Several issues with the current snapshot command were resolved: * --long for list was added to include volume id/name, and properties * changed output from metadata to properties * added new option to set properties with 'snapshot set' * added new command to unset properties with 'snapshot unset' Change-Id: I5902cfe876cefada701d4d658a50a4282ff300d6
* | Merge "Command doc: backup"Jenkins2015-01-081-11/+11
|\ \ | |/
| * Command doc: backupSteve Martinelli2015-01-081-11/+11
| | | | | | | | Change-Id: Iecd4dbddea637bd6540d94b37253a9ba434c9db3
* | Merge "Fixup backup list output"Jenkins2015-01-081-9/+45
|\ \ | |/
| * Fixup backup list outputSteve Martinelli2015-01-081-9/+45
| | | | | | | | | | | | | | | | Name and Description were not appearing at all, and we didn't have a --long alternative, which had a bunch of useful information. Closes-Bug: #1408585 Change-Id: I7ca42a8d23ad60f6b9cc862799cb08a3e491b6e8
* | Command docs: volumeSteve Martinelli2015-01-071-22/+23
| | | | | | | | Change-Id: Id1e500d5fb19ffdeb0d1bde9e22c3143c0873d0c
* | Command doc: volume typeSteve Martinelli2015-01-051-7/+7
|/ | | | Change-Id: I7e36daa027639d6a782043d4181c1b328335975a
* Merge "Properly format 'attached to' column list when listing volumes"Jenkins2014-12-301-6/+35
|\
| * Properly format 'attached to' column list when listing volumesSteve Martinelli2014-12-221-6/+35
| | | | | | | | | | | | | | | | | | Previously, no data was being returned for the 'attached to' field when listing volumes. Dig into the the returned array to format the column. Change-Id: Iebd79e5ddcb4a335703d9b2675aa7128995de918 Closes-Bug: #1404931
* | add multi-delete support for compute/image/net/volumewanghong2014-12-233-22/+28
|/ | | | | | | | | | | | | | This is part1, add support for these objects: compute.server imagev1.image imagev2.image network.network volume.volume volume.backup volume.snapshot Closes-Bug: #1400597 Change-Id: Ice21fee85203a8a55417e0ead8b509b8fd6705c1
* Fix volume create --imageDean Troyer2014-11-181-3/+15
| | | | | | | 'volume create --image' should allow an image name to be used. Closes-Bug: #1383333 Change-Id: I996d46db321eef2d75c3d19b480319f8a78c09b3
* Remove now-unnecessary client creation hacksDean Troyer2014-10-181-18/+2
| | | | | | | | | | | | | | | | | | | | Clients that can use ksc Session don't need the old junk to fake auth anymore: * compute * volume Clients that still need to be fed credentials can pick directly from the auth object in clientmanager. The _token attribute is removed, the token can be retrieved from the auth object: openstackclient/tests/common/test_clientmanager.py This change will break any plugin that relies on getting a token from instance._token. They should be updated to use the above, or preferable, to use keystoneclient.session.Session to create its HTTP interface object. Change-Id: I877a29de97a42f85f12a14c274fc003e6fba5135
* Fix operation on clouds with availability-zonesMonty Taylor2014-10-111-1/+1
| | | | | | | | | In a cloud with AZs, you can get multiple entries back from the service catalog - one for each AZ and then one that is AZ agnostic that's tied to the region. If the region_name is plumbed all the way through, this works as intended. Change-Id: I3b365ea306e8111fc80830672ae8080a5d1dc8e0
* Merge "Normalize more help strings"Jenkins2014-07-241-11/+11
|\
| * Normalize more help stringsDean Troyer2014-07-241-11/+11
| | | | | | | | Change-Id: I2b21bc904e35c1cc50da369d148e607fe3e8cf90
* | Merge "Add support to list volume extensions"Jenkins2014-07-091-1/+6
|\ \
| * | Add support to list volume extensionsSteve Martinelli2014-07-041-1/+6
| |/ | | | | | | | | | | | | | | Since cinderclient has support to list extensions, we should add some of the logic to our list extensions command. Change-Id: I7dc7ca325ea9b82194bba6d875e7b8dc1884d77e Closes-Bug: #1337687
* | Clean up make_client() loggingDean Troyer2014-07-081-2/+1
|/ | | | Change-Id: I0b6760a6401b50e3dfb891af75424ae89df42ebc
* Fix find_resource for keystone and cinderTerry Howe2014-06-171-0/+5
| | | | | | | | | | | | | | | | | | | The find_resource method had two hacks in in to support cinder and keystone and I have removed those in favor of a monkey patch for cinder. The find_resource method used to attempt to UUID parse the id, but it would do a manager.get anyway. I changed it to skip the UUID parsing. This will make things run minorly faster and it supports LDAP for keystone. The find_resource used to attempt to use display_name=name_or_id when finding. This was a hack for cinder support, but it breaks keystone because keystone totally messes up with the bogus filter and keystone refuses to fix it. Change-Id: I66e45a6341f704900f1d5321a0e70eac3d051665 Closes-Bug: #1306699
* replace string format arguments with function parametersChristian Berendt2014-05-204-21/+21
| | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* Change volume create --volume-type to --typeDean Troyer2014-05-151-4/+10
| | | | | | | This makes it consistent with the other --type options in OSC. Also add a few more volume_create tests. Change-Id: I50ef927932cabf157ecdfd6c4faa1914b4fdf413
* Merge "volume type create should display properties"Jenkins2014-05-061-9/+4
|\
| * volume type create should display propertiesTerry Howe2014-05-051-9/+4
| | | | | | | | | | | | | | | | | | | | The volume type create command should properly output the properties. The code was doing a create on the volume type and then setting the properties, but it was printing out the volume object from the create. Change-Id: I23c8a0182e77bb71903ad87c1b01ba2b62405f3b Closes-Bug: #1303978
* | Skip auth in cinderclientYejia Xu2014-05-051-0/+11
|/ | | | | | | | | cinderclient can't work well with keystone v3 auth info. We should do it in openstackclient just like compute extension. Closes-Bug: #1315963 Change-Id: I46f794c5315f6a9fe1d9a0e5dc7b84f067d7f792
* Merge "Fix volume commands with multiple regions"0.3.1Jenkins2014-02-261-0/+1
|\
| * Fix volume commands with multiple regionsTerry Howe2014-02-211-0/+1
| | | | | | | | | | | | | | | | The region_name was not passed into the the client causing volume commands to fail if there were multiple regions. Change-Id: I066dbbc4852f412e017daeeb16a3f186d3f91d2f Closes-Bug: #1241177
* | Fix some help stringsAndreas Jaeger2014-02-213-3/+3
|/ | | | | | | | | | This fixes some errors and inconsistencies I found reviewing the help strings: * Capitalize help strings * Add missing space between words (in multi-line strings) * Improve wording Change-Id: I2fb31ab4191c330146e31c1a9651115a6657769a
* Remove copyright from empty filesAlexander Ignatov2014-01-202-28/+0
| | | | | | | | | According to policy change in HACKING: http://docs.openstack.org/developer/hacking/#openstack-licensing empty files should no longer contain copyright notices. Change-Id: Iba09a00f24dfbd1cd03c1c9f70ea216788e64d93 Closes-Bug: #1262424
* Displaying curl commands for nova and cinder callsFlorent Flament2014-01-021-0/+5
| | | | | | | | | | | | When using the -v option, displays curl equivalent commands and http messages exchanged with the nova and cinder API servers. Displays the same messages as those displayed with the --debug option of python-novaclient and python-cinderclient. Implements: blueprint curl-commands-in-debugging-messages for nova and cinder related calls Change-Id: Ibc8ef79d874334585b81d652b9c7df9e874fffa9
* Expand support for command extensionsDean Troyer2013-11-211-0/+16
| | | | | | | | | | | | Allows client libraries to have complete access to the rest of the OSC ClientManager. In addition, extension libraries can define global options (for API version options/env vars) and define versioned API entry points similar to the in-repo commands. The changes to ClientManager exposed some issues in the existing object api tests that needed to be cleaned up. Change-Id: Ic9662edf34c5dd130a2f1a69d2454adefc1f8a95
* Do lookups for user, project in volume createDean Troyer2013-10-251-8/+19
| | | | | | | | | This required https://review.openstack.org/26323 in keystoneclient, merged long ago... Also adds some tests for 'volume create' Change-Id: I55bededbc20b5dcf2833c59eb2b6b069703d8a9a
* Add options to support TLS certificate verificationDean Troyer2013-10-071-0/+2
| | | | | | | | | | Add --os-cacert and --verify|--insecure options using the same sematics as the other project CLIs. --verify is included for completeness. Bug: 1236608 Change-Id: I8a116d790db5aa4cb17a2207efedce7cb229eba3
* Remove tenant round 3 - other commandsDean Troyer2013-07-311-4/+8
| | | | | | | Mostly options and help strings: * image, server, project usage, volume Change-Id: I788b0660f8c2daacde53c20a72dd1afc60cf5159
* Remove tenant round 1 - global optionsDean Troyer2013-07-311-1/+1
| | | | | | | | | Change the global auth options to use 'project', leave the original tenant options in place but silent for compatability with the existing project CLI auth options. This is the only compatibility for tenant usage in this changeover. Change-Id: I3cce6e552f18822cc9f445ec5f301b0f5d9003f8
* Begin Python 3 compatabilityDean Troyer2013-07-294-8/+12
| | | | | | | | | | | * use six.iteritems() * replace basestring with six.string_types * convert print statements to functions (they're all debugging and should be removed eventually anyway) * clean up OpenStack copyright: LLC -> Foundation Change-Id: Icb14212bcb408e63816bfec3922a697bc1a6c946
* Merge "Change volume manager to volume type, unset property for type"Jenkins2013-07-231-4/+1
|\
| * Change volume manager to volume type, unset property for typeSteve Martinelli2013-07-211-4/+1
| | | | | | | | | | | | | | | | In the unset method in volume_type, it was calling the volume manager, instead of the volume_type. Bug: 1203561 Change-Id: Iea1a9214db90f15815a456955040c0c5a795ff3d
* | Merge "Clean up properties (metadata) formatting"Jenkins2013-07-232-52/+76
|\ \ | |/ |/|
| * Clean up properties (metadata) formattingDean Troyer2013-07-212-52/+76
| | | | | | | | | | | | | | | | | | | | * Reformat default dict output to key='value' using utils.format_dict() * Changes utils.get_item_properties() to pass the specific field to the formatter function rather than the entire resource object, this allows the formatter to handle multiple attributes. * Updates server, volume, volume type commands Change-Id: I90eebf6b84ae200532f09cd925f371598ea54a64
* | Add quota commandsDean Troyer2013-07-171-114/+0
|/ | | | | | | | | | | | | * Add quota set and quota show commands; these work on both the compute and volume APIs * Add the --class variation on the above commands Note: this replaces the existing volume-only quota commands and eliminates quota list Blueprint: cinder-client Bug: 1172064 Change-Id: I766d40e410e48f05e36e17e567a4f01a9411b40e
* Remove api = apiName calls from each methodSteve Martinelli2013-07-124-21/+0
| | | | | | | | | | | As discussed in https://review.openstack.org/#/c/36352/ for each command, we were setting api = identity or volume... etc, this was for an old way of calling commands that are is no longer used. Also removed openstackclient/common/command.py Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19