NOTE:
* openstack/common/* should be synced from oslo, so i leave them
untouched.
* add (c) symbol for related lines, leave others untouched.
Change-Id: I46a87c7f248d3468b1fdf5661411962faf2fb875
Fixes-Bug: #1214176
This changes behavior from:
$ cinder rename volume1
$
to
$ cinder rename volume1
ERROR: Must supply either display-name or display-description.
for both 'rename' and 'snapshot-rename'.
Change-Id: I675a3b1428a7fe10653394c80e4a5a473e14c740
This patch adds volume name arguments to the following subcommands:
* snapshot-create
* backup-create
* backup-restore
* transfer-create
Fixes bug #1220590
Change-Id: Ib0ff6e62d45abb14fa8c7313511ef6f72befe0d5
Implements ability to call migrate_volume and migrate_volume_completion
APIs. The former includes shell code while the latter is called by Nova
and should not be invoked via shell.
Change-Id: I6e81d7a6321f367a356f0a0dee385221363a4227
Users can specify the name of an instance as the argument, which are
passed through find_resource(), instead of the id.
This patch changes some help messages for explaining this behavior.
Related-Bug: #1220590
Change-Id: I9af1259af4319b82b94d7b28536def3107ec5dd5
This modification adds support for volume type encryption to
python-cinderclient, supporting two Cinder API extensions.
The first support set provides accessors to python-cinderclient for
retrieving volume encryption metadata from Cinder. These changes
provide other services (e.g., Nova) access to encryption
metadata (e.g., encryption key UUIDs). See the volume encryption
key API extension in Cinder for more information.
The second support set creates a new python-cinderclient resource
manager, along with matching shell commands, that provides creation
and accessor operations for encryption type information. These
operations allow users and services to define encryption information
(e.g., cipher, key size, encryption provider) for a pre-existing
volume type. See the volume type encryption API extension in Cinder
for more information.
blueprint encrypt-cinder-volumes
Change-Id: Id4b2425d699678eb1997863362ddb9bf5ba6f033
Before v1 and v2 were set to the same service_type, so you could only
have one set at a time. This assumes the catalog is setup for v1
service_type 'volume' and v2 service_type 'volumev2'.
For backwards compatibility, we will allow v2 to be setup with
service_type 'volume' for existing installations.
Change-Id: Ife6d2cdb12d894b84ea3b276767fb93d487355d5
This reverts commit 854740c4c793444c955180e7c0c96977e3e06c56
What we should've caught here is that the args actually passes in a Bool, which then fails the .lower().
Also, if we want to do things like check for strings representing bools we should use the utils.bool_from_str() method rather than write it inline like this.
Raise BadRequest Exception if value of --force parameter in
snapshot-create is invalid
Fixes: bug #1014689
Change-Id: If4858dc17cedf027112defb935016137727681cc
This is client-side support for the os-availability-zone extension added in
https://review.openstack.org/34813. As /os-availability-zone/detail is not
yet implemented, adjustments were made to accomodate the lack of hosts
in the returned zone list.
Added for both v1 and v2, basically a copy of the equivalent novaclient command.
Change-Id: Iae806a2b5ea3a2d3c984a138d9c27e169160766e
Implement client bindings for Cinder os-services API extension, so
client would be able to list services, enable or disable particular
services.
Usage:
cinder service-list [--host <hostname>] [--binary <binary>]
cinder service-enable <hostname> <binary>
cinder service-disable <hostname> <binary>
This change is depended on following change at Cinder side
I7f3fa889294ca6caebdf46b8689345bcac1cdf54
Implements blueprint os-services-extension
Change-Id: I4a53fd545ed3b446441302d00a429168a996a34a
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
These exceptions can be used in novaclient, keystoneclient,
glanceclient, and other client projects.
Partially implements: blueprint common-client-library
Change-Id: I43918316622b1c1d722872fe30199db6a3a7bb76
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
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>
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>