38 Commits

Author SHA1 Message Date
Mathieu Gagné
d702d5443f Implement ability to extend volume for v1.
Backport implementation from v2 to v1.

Change-Id: Ibb2334859e937a37481308580b072daef068f511
2013-07-08 19:20:27 -04:00
Jenkins
a3985eeb63 Merge "Enable ability to reset state on snapshots." 2013-07-05 16:45:06 +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
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
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
d3b8d705e2 Merge "Implements support migration for volume transfer" 2013-06-23 15:37:29 +00: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
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
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
Jenkins
a35ebc2c6e Merge "Fix upload-to-image volume_id help" 2013-02-16 21:34:29 +00:00
Josh Durgin
ecffd7090f Fix upload-to-image volume_id help
It's not for taking a snapshot.

Change-Id: I3af4ea0e3657a2359fda55c890a030fabaad129d
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-02-15 15:15:54 -08:00
john-griffith
662cbb95e1 Handle metadata args the same for all calls.
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
2013-02-13 21:51:48 -07:00
Nathan Reller
7053498f3d Correct parsing of volume metadata
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
2013-02-05 19:00:26 -05:00
john-griffith
07ff48f1de Add ability to call force_delete from cinderclient
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
2013-01-18 16:55:01 -07:00
Avishay Traeger
9a064c3d5c Add upload-to-image function to client.
Support uploading a volume to an image in the image service.

Change-Id: Ief996f92aaf6d7a4fee0bce5ca45b92bee3f6990
Fixes: bug #1099866
2013-01-16 15:58:31 +02:00
John Griffith
765cb3ddbe Add access to update volume metadata.
This implements the cinderclient side of
blueprint: update-vol-metadata

Change-Id: I97c120d69b6d30843009f6a297bb51299799f4ec
2013-01-07 09:15:49 -07:00
John Griffith
24733119fe Add clone volume support to cinderclient.
Adds the option to create a clone of a volume, using --source-volid xxx

relies on Change-Id: I72bf90baf22bec2d4806d00e2b827a594ed213f4

Change-Id: Iad2178deb66c328625fbff747e123044f9d86a88
2012-12-13 21:24:00 +00:00
Mike Perez
c01e7822f9 Adding bootable column to volume list view
displays whether a volume is bootable based on cinder's api response for
/volumes

Change-Id: I8f6cc6e02be8226914f65717dcb2e0367553e51f
2012-11-21 21:50:18 -08:00
John Griffith
a8be1b2a20 Remove extra-specs from types-list command output
type-list was including the extra-specs info in it's response,
however extra-specs are admin accessible only. As a result only admin
users could run type-list which is not what we want.

Add a seperate admin only call to provide volume-types with associated
extra-specs info (extra-specs-list).

Change-Id: I2a716cd7076fb17fd5f2ceb94363eef0009e9bce
2012-11-01 10:13:06 -06:00
John Griffith
942ab5c7fe Add volume_type extra_specs support to client
Adds ability to set/clear volume_type extra_specs
via python-cinderclient.

* Adds extra_specs info to the list-types output
* Adds missing tests for volume_types features
* Fixes unset loop so it actually iterates through all of the supplied keys

Change-Id: I3552de722f76389cfef6d4f12320720e022ebfac
2012-10-10 10:02:30 -06:00
Clay Gerrard
7cba8eb786 add rename and snapshot-rename commands
Change-Id: I06549f19b846d886fabd611d2167b894c4d02df8
2012-09-20 14:45:34 -05:00
Vishvananda Ishaya
2e6be694c1 Show volume and snapshot data on create
cinder create and cinder snapshot-create do not display the data
returned from the api. This makes it difficult to find the id of
of the newly created object.

Fixes bug 1053432

Change-Id: I1defafff3fd08f9b3510f70a455d49d470322d82
2012-09-20 14:31:27 +00:00
Jenkins
9e69ce1a75 Merge "Implement volume quota support in the cinderclient" 2012-09-12 23:43:35 +00:00
Clay Gerrard
9ba6ed5a90 Add filter options to list and snapshot-list
Change-Id: I9a8b538ad53960700ae7a57d1ceb09b05e3dc468
2012-09-10 12:50:24 -05:00
John Griffith
f270f22cb0 Implement volume quota support in the cinderclient
* fix for bug 1023311
  * Implements quota extensions in cinderclient
  * Implements absolute limits and rate limits

Change-Id: I7e3f8474476cbc03efb2fefcb8400f5fec85ddcb
2012-08-30 09:30:29 -06:00
Dean Troyer
d7b09bd097 Change '_' to '-' in options
This changes every command-line option with a '_' in its name
and changes them to '-'.  The old option names are maintained
for backward compatibility but are no longer in the help text.

BP command-options

Change-Id: If926bb3b8fa85d628aea197496cf976f71bcdd08
2012-08-23 14:40:09 -05:00
John Griffith
0bba3857d1 Add ability to provide metadata on volume creation
Add argument and parser for shell to be able to take
metadata input on volume create.

Change-Id: I64c72df78b8e091e37b8986aea5bd4980a0c7a75
2012-08-15 22:41:03 -06:00
Josh Durgin
75b6589ed0 Add image id arg to create
This works with patch set 7 at https://review.openstack.org/#/c/11028/

Change-Id: I113e0dc557500ea52e64d810409548ed1ffafe90
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-08-15 22:34:00 -06:00
Jenkins
937e80aa71 Merge "Add availability_zone support for volume creation." 2012-08-14 21:28:52 +00:00
Zhiteng Huang
332a72004f Add availability_zone support for volume creation.
Add '--availability_zone' flag to 'create' sub command in order to allow
user to speicify target availability zone for volume.

Also fix library description in setup.py

Change-Id: Ice3c9a550dcc486208208074730da13c64a6719b
2012-08-10 09:59:39 +08:00
jakedahn
f29d1c8349 Add all_tenants flag to snapshots and volumes.
Adds search_opts functionality for the following branches:
    * https://review.openstack.org/#/c/10750/
    * https://review.openstack.org/#/c/10855/

Change-Id: I8eb69574d3a0510bb6ac8b14b3e2a50a33542f11
2012-08-05 17:42:35 -07:00
John Griffith
93f9fa75fa Set pep8 version to 1.1 in test_requires
* Fixes bug 1007520
* Changes in pep8 cause new failures

Change-Id: Ie678f01a5008b0df6ef43a360b599890cab40776
2012-06-15 13:56:39 -06:00
Jenkins
471704df64 Initial split from python-novaclient. 2012-05-21 16:32:35 -04:00