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
Implements the list extension functionality from novaclient
written by harlowja (Change-Id: I5b72f5ea73c00f1c1a0f09f670d744c820e05837)
This provides a mechanism to view available extensions, and also
starts actually using the cinderclient contrib dir.
Original Author: harlowja
Change-Id: I4f9d04cb8a2aa05c978a2a5a926c9175ee3614bb
* Implement correct certificate verification
* Add --os-cacert
* Rework tests for requests
Pinned requests module to < 1.0 as 1.0.2 is now current in pipi
as of 17Dec2012.
Blueprint: tls-verify
Change-Id: I71066ff7297f3b70c08b7ae1c8ae8b6a1b82bbae
Ported from novaclient https://review.openstack.org/9241
Support CINDERCLIENT_DEBUG as synonym for --debug
Change-Id: Ic03b9e7d84c8db14f6e193ca2b478fd0d70d1299
Adds the option to create a clone of a volume, using --source-volid xxx
relies on Change-Id: I72bf90baf22bec2d4806d00e2b827a594ed213f4
Change-Id: Iad2178deb66c328625fbff747e123044f9d86a88
Apart of making pep8 version standard across all openstack
projects.
Change-Id: If5ef6be394e557b3554a80f1ad9b44d472c273b6
Signed-off-by: Chuck Short <chuck.short@canonical.com>
When calling cinder without arguments you'll receive the following
output:
error: too few arguments
Try 'cinder help ' for more information.
With this change the help is also shown when calling cinder
without arguments. I think that's the expected behavior.
Change-Id: I8f46f67b7fef472ac344bb74f80cf1b77c4c4745
HTTPClient now supports a retries argument. It will reissue requests
for any 5xx or socket (400 with n/a) errors. This retry loop was
"inspired" by swiftclient's loop. It reauths one extra time if
necessary. It uses backoff times of 1, 2, 4... seconds.
The default is 0 retries. It is also exposed to the shell as well with
a --retries arg.
Change-Id: I67bed02d65155f4a4d5d879bb233f56cc78849fa
Fixes Bug #1052161
"python setup.py build" fails on Windows due to a hardcoded shell path:
/bin/sh
setup.py updated using openstack-common/update.py
Change-Id: Iafae444a43c76560020a84e3a1c5c8cb4b6860da
HTTPClient now supports a retries argument. It will reissue requests
for any 5xx or socket (400 with n/a) errors. This retry loop was
"inspired" by swiftclient's loop. It reauths one time if necessary.
It uses backoff times of 1, 2, 4... seconds.
The default is 0 retries. It is also exposed to the shell as well with
a --retries arg.
Change-Id: I75d9a13d6c4ba16a5da13d4bf5cad78a777d67d7
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
Attach and Detach actions are done in the novaclient, however
during the creation of Cinder a number of these methods were copied into
the Cinder client. This is dead code and just adds confusion, so let's
rip it out.
Change-Id: Ib96fe0cac26f19e7d9f2aa01c71ba9762e4f8b8e
Fixes: bug #1071003
It is possible to create a Unicode volume from the command line,
but it cannot be manipulated by name for operations such as delete.
This is because the find_resource function tries to match the
Unicode string to a regular byte string, and a UnicodeWarning is
issued, failing the match. Fix by decoding the Unicode name when
trying to match.
Fixes bug 1065275.
Change-Id: I8e19a78bbc1ccb503ccd39dc3b904fc4f6f77858
Add trove classifier to have the client listed among the
other OpenStack-related projets on PyPI.
Change-Id: I904372caf0a8eaa44dd048729b4d87e5333f04cc
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
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
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
Related change is If5d00a7f7991d78243e76a6e22031c185caee80a
Add new action in tests.v1.fakes.FakeHTTPClient, so it allow to test
os-begin_detaching and os-roll_detaching.
Fix typo in tests/v1/test_volumes.py.
Change-Id: I5c4cd9cc56a7235036b6bab6641554b5919ffbb6
Add a new optional tenant_id keyword argument to the client classes
cinderclient.client.HTTPClient and cinderclient.v1.client.Client to
support authentication with tenant_id instead of projectid (which is
acctually used as "tenantName" in the auth request body).
Keystone can provide tokens without specifiying the tenant in any form,
but a tenantName _or_ tenantId is required to generate the catalog (the
keystone service code seems to prefer tenantName if both are specified).
When using cinderclient programatically, it may be more convienent,
depending on the context to authenticate with out specificying the
tenant, or by tenant_id instead of tenant_name. Either way it's
impractial to make the requirement in the client for projectid
(tenantName) if the auth system has no such limitation.
The new client signature is backwards compatible. There is no change in
behavior for the shell client.
Change-Id: I0c1bdbdabd9acc29133a48a798750323011f1f18
Fixes bug #1004382
If nova call nova.volume.cinder.API.begin_detaching and
nova.volume.cinder.API.roll_detaching, it need python_cinderclient
support the functions.
Change-Id: If5d00a7f7991d78243e76a6e22031c185caee80a