summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update release info in index.rst.1.0.4John Griffith2013-05-011-2/+10
| | | | | | Add release notes and fix revision number mishap. Change-Id: Ia48be8462e17c900562b794fd69ba2234f6c6c03
* Update setup.py prior to next upload to pypi.John Griffith2013-05-011-3/+3
| | | | | | | Minor updates to the setup.py file including: author and email. Change-Id: I0194a5fdaa1ea441115e6e869182e4dcb5b531e0
* Add support for volume backupsStephen Mulcahy2013-04-2612-14/+693
| | | | | | | | | | | | | | | | | | | | | Implements support for the volume backup api added to cinder in https://review.openstack.org/19468. This is a resubmit of the expired change https://review.openstack.org/25299 with the following changes: * Added unit tests for backups (v1 and v2) * Changed references in backup code to display_name and display_description to name and description respectively * Removed links from backup-show output * Added object_count to _translate_backup_keys * Removed unneccesary items from _translate_backup_keys * Fixed backups docstrings including removing references to swift. Adds backup-create, backup-delete, backup-list, backup-restore and backup-show to both the v1 and v2 clients, since the volume backup extension is available via both APIs. Change-Id: I197384f1c2fd2af641d207a5f4dba0dfbc5c681a
* Merge "Don't print the empty table on list operations."Jenkins2013-04-251-1/+2
|\
| * Don't print the empty table on list operations.John Griffith2013-04-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Changes to strutils.safe_encode cause the empty table to be printed out when no objects are actually retrieved. This patch just adds a check of the object list length before calling strutils.safe_encode, if the length is NOT > 0 we just return like we used to. Change-Id: I57930b5210c975baa7c4510fcf82b17157e17788
* | Fixed unit test name in v1 and v2 testsStephen Mulcahy2013-04-162-2/+2
| | | | | | | | Change-Id: Ia6a88be09a07ed269b1e9b43a86c88731c80784c
* | Sync with oslo-incubator copy of setup.py and version.pyDavanum Srinivas2013-04-092-24/+64
|/ | | | | | Keep up with the changes to the master copy Change-Id: I24522c7de91c2dea0f7e4b8cac2a27ff162df7f1
* Merge "Minor typo/message fixes"Jenkins2013-04-096-43/+21
|\
| * Minor typo/message fixesEric Harney2013-04-086-43/+21
| | | | | | | | | | | | | | | | Correct it's -> its in force-delete message Print whole bash_completion message in "cinder help" Reformat some doc strings per PEP-0257 Change-Id: I013b849508beac5c9fe5c6f9d4cdfae54676c29c
* | Merge "Fix X-Auth_Token -> X-Auth-Token header name"Jenkins2013-04-071-1/+1
|\ \
| * | Fix X-Auth_Token -> X-Auth-Token header nameEric Harney2013-04-041-1/+1
| |/ | | | | | | | | | | Fixes bug 1163546 Change-Id: Idb2c5f23a1c57676984ffa33f64d27c461b0de15
* | Merge "Fix result -> resp typo in unset_keys"Jenkins2013-04-061-1/+1
|\ \
| * | Fix result -> resp typo in unset_keysEric Harney2013-04-041-1/+1
| | | | | | | | | | | | Change-Id: I07b0ea54993d5b00060e1dfcdfc10663d091254b
* | | Merge "Remove unused "import sys""Jenkins2013-04-061-1/+0
|\ \ \
| * | | Remove unused "import sys"Eric Harney2013-04-041-1/+0
| |/ / | | | | | | | | | | | | | | | Cleaning up with pyflakes. Change-Id: I24878f1bb1693af13b2a7f0f7d6fe455f8747e91
* | | Merge "Add OS_TENANT_ID as authentication option"Jenkins2013-04-051-10/+20
|\ \ \ | |/ / |/| |
| * | Add OS_TENANT_ID as authentication optionLiam Kelleher2013-03-271-10/+20
| | | | | | | | | | | | | | | | | | bug 1160898 Change-Id: I8849ab8f552801b8a317cd0394251c2db1ba8e9a
* | | Pin prettytable versionsJohn Griffith2013-04-031-2/+2
| |/ |/| | | | | | | | | | | | | | | | | pip-requires doesn't have any restrictions on prettytable. We should match up with the pinned version in other projects. In addition to avoid this problem in the future updated simplejson to match openstack/requirements as well. Change-Id: Iabf7ee8b0fd253447d1a65bc1b12906d26176286
* | Decodes input and encodes output1.0.3Flaper Fesp2013-03-294-12/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently cinderclient doesn't handle properly incoming and outgoing encode / decode process. As a solution for this, this patch implements a decoding process for all data incoming from the user side and encodes everything going out of the client, i.e: http requests, prints, etc. This patch introduces a new module (strutils.py) taken from oslo-incubator in order to use 2 of the functions present in it: About safe_(decode|encode): Both functions try to encode / decode the incoming text using the stdin encoding, fallback to python's default encoding if that returns None or to UTF-8 as the last option. In both functions only basestring objects are accepted and they both raise TypeError if an object of another type is passed. About the general cinderclient changes: In order to better support non-ASCII characters, it is a good practice to use unicode interanlly and encode everything that has to go out. This patch aims to do that and introduces this behaviour in the client. Testing: A good test (besides using tox) is to use cinder client with and without setting any locale (export LANG=). Fixes bug: 1130572 Change-Id: Idb7d06954c29e003f68a0c4aa0b80ecc7017cbc9
* | Merge "Add support for snapshot quotas."Jenkins2013-03-288-4/+42
|\ \
| * | Add support for snapshot quotas.john-griffith2013-03-218-4/+42
| | | | | | | | | | | | | | | | | | | | | Now we have [volumes, gigabyes, snapshots] as valid tenant quotas. Change-Id: Iae8a86b31e63b9e56d6ef0bee7e03f4089aa8138
* | | Remove unused tools/rfc.shMark McLoughlin2013-03-251-145/+0
| |/ |/| | | | | | | | | | | This has been deprecated in favour of git-review for quite a while now and was removed from Nova 10 months ago. Change-Id: Ic4bfa1aee3a4b6a7588be3678ac033a1b13e2b18
* | Merge "Catch KeyboardInterrupt"Jenkins2013-03-241-1/+3
|\ \
| * | Catch KeyboardInterruptEric Harney2013-03-201-1/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | When a user Ctrl-C's the client, this will cause a short message to be printed rather than an ugly backtrace. This will not catch all instances of this (can still Ctrl-C before reaching this code, etc.), but it should catch most of them, and those for long-running sessions. The specific message was chosen to match one recently added to the glance client. Change-Id: Ib748835ad1f94fb901b4941dc5e3797b719e197f
* | Add debug option processing to run_testsjohn-griffith2013-03-211-0/+16
|/ | | | | | | | This just adds -d|--debug option so you can debug using tools like pdb again and to get extra output from the tests. Change-Id: Icebc17a1575e17cfd9597581546dca4732b9a8ef
* Docs in cinderlcient were never actually updated.john-griffith2013-03-1911-496/+54
| | | | | | | | | | | | | | Not only were the docs and release info here not being maintainted properly, but the examples that were given were not correct. This change is an attempt to set us on the right path going forward and includes info on how to import the API and history info for the upcoming release/push to PyPi. Fixes bug: 1156994 Change-Id: I169b1c01380ef653a6a25eb8946b9a06d6419e62
* Debug output the http bodyCory Stone2013-03-151-2/+2
| | | | | | | Output the kwargs[data] instead of kwargs[body] which was deleted. Change-Id: I233e37cceb7079ec78b9bde093967dea9ad94441 Fixes: bug #1155655
* Fix typo breaking --debug option to cinder clientOllie Leahy2013-02-201-1/+1
| | | | | | Fixes LP bug #1130730 Change-Id: Ia105e8a561b8d45c60e9a3c6ed46a953cc6df96f
* Merge "adding v2 support to cinderclient"Jenkins2013-02-1925-3/+2721
|\
| * adding v2 support to cinderclientMike Perez2013-02-1325-3/+2721
| | | | | | | | | | | | | | | | | | This will allow the cinderclient to speak to the v2 rest api if it's enabled in the cinder config. Includes additional v2 tests as well. blueprint cinderclient-v2-support Change-Id: I004134d9f528a6eadefdaa89eb48087bcae2691f
* | Merge "Fix upload-to-image volume_id help"Jenkins2013-02-161-1/+1
|\ \
| * | Fix upload-to-image volume_id helpJosh Durgin2013-02-151-1/+1
| |/ | | | | | | | | | | | | It's not for taking a snapshot. Change-Id: I3af4ea0e3657a2359fda55c890a030fabaad129d Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
* | Handle metadata args the same for all calls.john-griffith2013-02-131-8/+9
|/ | | | | | | | | key-create stored it's metadata arg as an appended list, while create stored as strings. The metadata parsing is compatable with both, so let's just use the same method of parsing in both of these methods. Change-Id: I337068d45fa848d8621add29c91e4a43c9d7dc72
* Merge "Avoid UnicodeEncodeError exception on exception"Jenkins2013-02-131-1/+1
|\
| * Avoid UnicodeEncodeError exception on exceptionDirk Mueller2013-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | When an exception message contained a non-ascii character, the str() conversion raised an UnicodeEncodeError. Avoid this by simply passing the message itself. Python handles the encoding to locale already. Change-Id: I3c4440fc238d8c8136a9bd93a0040668f82bda6e
* | Allow requests 0.8 and greaterChuck Short2013-02-113-8/+3
| | | | | | | | | | | | | | | | | | Bump up version requirements for requests to standardize on version >= 0.8 so it doesnt create conflict with other openstack projects. Change-Id: I1ed9b3bd6bdbbbb451298a3c397e6e7a06c0cabd Signed-off-by: Chuck Short <chuck.short@canonical.com>
* | Re-add setuptools-git to setup.py.Dan Prince2013-02-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | In 81cbbcc4e01c81084c352f7fc1ecea149089a2b9 we removed: setup_requires=['setuptools-git>=0.4'], from setup.py. This broke tarball generation in that some files are now missing. Fixes LP Bug #1118511. Change-Id: I27a09e0d49befa3751031582d1b152677822041f
* | Merge "Update to latest oslo version code."Jenkins2013-02-075-256/+149
|\ \ | |/ |/|
| * Update to latest oslo version code.Monty Taylor2013-02-045-256/+149
| | | | | | | | | | | | | | Removes the need for the versioninfo file, as now everything can be done via pkg_resources. Change-Id: Ice2ea2f99f5aacbd476075d12077b7287d824585
* | Correct parsing of volume metadataNathan Reller2013-02-052-2/+21
| | | | | | | | | | | | | | | | | | | | Volume metadata supplied via the command line is incorrectly parsed, converting each character into a key with “None” as the corresponding value. This bug fix corrects the parsing and also includes regression tests when metadata is provided when creating a volume. Change-Id: I8c093df59ea4de2e2a1b7cf3ac7c4624c159fb66 Implements: blueprint encrypt-cinder-volumes
* | Merge "Fixed documentation of the cinder shell command."Jenkins2013-02-045-64/+49
|\ \ | |/ |/|
| * Fixed documentation of the cinder shell command.Frederic Lepied2013-01-315-64/+49
| | | | | | | | | | | | | | | | Updated README.rst and shell.rst to match changes in the cinder command and novaclient README.rst. Change-Id: Ifaa53d5c06e6d7d8e3d4d858672717954303bea7 Fixes: bug #1074125
* | Merge "Move from nose to testr."Jenkins2013-01-299-85/+73
|\ \ | |/ |/|
| * Move from nose to testr.Monty Taylor2013-01-179-85/+73
| | | | | | | | | | | | | | | | | | | | | | Granted - this takes the test suite from 3 seconds to 1 second... but there are a bunch of other ways (correctness) that testr is better than nose. Removed tests/v1/utils - it was not being used anywhere. Part of blueprint grizzly-testtools. Change-Id: I54d9a0b7dc22305ec60d779d6f19025a0b5dc785
* | Merge "Add ability to call force_delete from cinderclient"Jenkins2013-01-242-0/+19
|\ \
| * | Add ability to call force_delete from cinderclientjohn-griffith2013-01-182-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | We have an admin extension to do this however we never exposed it via the cinderclient. This change simply enables access to force-delete for admins. Change-Id: Ia066d7dd06ccdb9b3a9221cf33086437624e65d8
* | | Change Nova -> Cinder in credentials error messageEric Harney2013-01-211-1/+1
|/ / | | | | | | Change-Id: I410360ca23388e93bcbbf3dce053cae99c84a431
* | Merge "Fixed Version Functionality"Jenkins2013-01-181-0/+4
|\ \
| * | Fixed Version FunctionalityAnita Kuno2013-01-171-0/+4
| | | | | | | | | | | | | | | | | | In accordance with bug-1068521, cinder version functionality is available via the shell. Change-Id: If9608291f318057fc8fa61151328d6503a79d70d
* | | Add upload-to-image function to client.Avishay Traeger2013-01-163-3/+57
|/ / | | | | | | | | | | | | Support uploading a volume to an image in the image service. Change-Id: Ief996f92aaf6d7a4fee0bce5ca45b92bee3f6990 Fixes: bug #1099866