24 Commits

Author SHA1 Message Date
Mathieu Gagné
1a15caff94 Fix wrong method call for extend subcommand
Ensure extend is called instead of extend_volume
as the latter doesn't exist.

Change-Id: I5a4ce5904dc73586a124f7bddebc8ffd30841980
2013-07-08 19:27:46 -04:00
Jenkins
a3985eeb63 Merge "Enable ability to reset state on snapshots." 2013-07-05 16:45:06 +00:00
Jenkins
a7a48b8fee Merge "Implement ability to extend volume." 2013-07-05 16:37:03 +00:00
John Griffith
ee9f0354ec Enable ability to reset state on snapshots.
Implement the ability to reset-state on snapshots,
exposes os-reset_status from snapshot actions.

Change-Id: I605f41e39fde46ccfe6a53222b798f32c14bc1f8
2013-07-04 09:32:36 -06:00
Jenkins
14108c1e78 Merge "Use exceptions from oslo" 2013-07-03 07:53:47 +00:00
John Griffith
10df5beb39 Implement ability to extend volume.
Implements ability to call extend volume in Version 2 API.

This change includes the needed support in cinderlcient to
utilize/access changes made in the volume-resize change.

Change-Id: Ifc7e2969b885a60e8105b5f3908ac452d0a61fa7
2013-07-02 08:04:37 -06:00
Alessio Ababilov
a7cce08eab Use exceptions from oslo
These exceptions can be used in novaclient, keystoneclient,
glanceclient, and other client projects.

Partially implements: blueprint common-client-library

Change-Id: I43918316622b1c1d722872fe30199db6a3a7bb76
2013-07-01 11:55:31 +03:00
Avishay Traeger
8e7cc89d05 Fix volume info display error on create with v2.
Error due to popping 'links' when it does not exist.

Change-Id: I3f25b97f16699373ef12d9ac47905900b4b631f8
Fixes: bug 1190853
2013-06-26 14:13:41 +03:00
Jenkins
273a829671 Merge "Implement reset-state (os-reset_status) action" 2013-06-25 20:36:00 +00:00
Brian Waldon
7571232c02 Implement reset-state (os-reset_status) action
This change implements a reset-state method in the
cinderclient which exposes the extension: os-reset_status
from the Cinder API.

Fix bug 1190731

Change-Id: I8f631f0f19ca16e0fdd1e3adcf923cc684292887
2013-06-25 13:51:42 -06:00
Jenkins
1b7540ca48 Merge "python3: Strutils is not needed" 2013-06-24 21:08:23 +00:00
Jenkins
d3b8d705e2 Merge "Implements support migration for volume transfer" 2013-06-23 15:37:29 +00:00
Chuck Short
1197fb3701 python3: Strutils is not needed
strutils is used to safely encode and decode unicode strings
for python2.7. Since unicode strings are the default in python3,
ignore the use of strutils when running with python3.

Change-Id: I9a8e296b4f2153b1ef4302a7dcd797fbb4561c35
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-22 12:50:23 -05:00
Chuck Short
3044671b36 python3: Fix traceback while running tests
The testsuite is full of the following:

TypeError: 'dict_keys' object does not support indexing

This is due to the fact in python3 dict methods dict.keys(),
dict.items() and dict.values() return “views” instead of lists.

Change-Id: Ifa5383e6485fdbabf363fd1442877b2452346c1c
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-19 20:52:22 -05:00
Jenkins
89fb1503e9 Merge "Implement scheduler hints for APIv2" 2013-06-19 07:48:25 +00:00
Cian O'Driscoll
1d5eea0921 Implements support migration for volume transfer
Implements support for the volume transfer api added to cinder in
https://review.openstack.org/#/c/29227

Change-Id: Idbcdfdd3ef76a8c516e08d1cf351d549254bc8c0
2013-06-17 16:59:20 +01:00
Chuck Short
4b1cdab2fe python3: Basic python3 compatibility.
Basic python3 compatibilty.

Change-Id: I4388f5956cf397f8e33d20085aae6c6a728dbbda
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-12 07:59:44 -05:00
Dirk Mueller
7359c976d1 Start Gating on Pyflakes and Hacking
Instead of globally ignoring Pyflakes and Hacking
warnings, only blacklist those that occur frequently
and fix the others. Start gating on those checks.

Change-Id: Ice032c16d445ef08ef018bcdc5c221ab3c323755
2013-06-09 13:29:23 +02:00
Nikolaj Starodubtsev
a2c58b9e6e Implement scheduler hints for APIv2
We've done this implementation because we need to use scheduler hint in
cinder with some specific filters. So, most part of code have been
imported from nova.

bp scheduler-hints
docimpact

Change-Id: Ib7e858e98110a30c5f8d5ff05d03ce2d61f04f92
2013-05-20 13:04:01 +04:00
Alexey Ovchinnikov
a122a76b3d Fixed do_create() in v2 shell.
Previously when creating a volume v2 shell was able to create
it but then failed to display volume properties. Instead of that
it displayed a non-informative error message. This patch fixes
the problem.

Change-Id: I1d3f9127ddd793a905527660b64ffe8c28f20f1d
2013-05-15 11:29:03 +04:00
Stephen Mulcahy
cc8dd55264 Add support for volume backups
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
2013-04-26 14:05:58 +00:00
Eric Harney
fd3351ffa8 Minor typo/message fixes
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
2013-04-08 17:11:16 -04:00
john-griffith
4d76d3c481 Add support for snapshot quotas.
Now we have [volumes, gigabyes, snapshots] as valid
tenant quotas.

Change-Id: Iae8a86b31e63b9e56d6ef0bee7e03f4089aa8138
2013-03-21 17:02:19 -06:00
Mike Perez
636ec5eccd adding v2 support to cinderclient
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
2013-02-13 00:58:17 -08:00