547 Commits

Author SHA1 Message Date
Matt Fischer
8d317c47dc Remove deprecated command-line args
Some command-line args were deprecated in Diablo and slated for removal
in Folsom. They're being removed in Juno instead.

Change-Id: I02339ba08c997fecca5a6639382360962e668bfd
2014-06-26 18:49:28 +00:00
Jenkins
6550b0ab5c Merge "Remove "OPTIONAL:" from optional argument help text" 2014-06-25 19:38:01 +00:00
OpenStack Proposal Bot
cc90227b76 Updated from global requirements
Change-Id: I46186b2dc8d0e01bea982b4cab6347bcd86bf558
2014-06-24 07:25:51 +00:00
Jenkins
408994c855 Merge "Fix Volume.extend and Volume.update_readonly_flag methods" 2014-06-23 14:45:52 +00:00
haneef ali
e8e06ee289 Added support for keystone v3client
Change-Id: I7bbc74c9e73f36f942f5800a7af0da717da0bc64
2014-06-17 13:10:32 -07:00
Jenkins
a87ee75285 Merge "Pretty print of endpoints for ambiguous error" 2014-06-16 15:48:56 +00:00
Jenkins
0039f1d389 Merge "Use real timestamps in authentication tests" 2014-06-13 21:04:00 +00:00
OpenStack Proposal Bot
1f7a95fc15 Updated from global requirements
Change-Id: I65149149fd5b80e93961206f1c9e2037db764b84
2014-05-30 16:32:34 +00:00
Eric Harney
811af8f374 Remove "OPTIONAL:" from optional argument help text
All arguments starting with '--' are optional and listed
under the 'Optional arguments:' header by argparse.  Remove
the extra note shown for each argument.

Change-Id: Ic361a3bdbd1f1669458e16b99995f0f108400699
2014-05-22 15:43:31 -04:00
Alex Gaynor
339bf0c39a Mark cinderclient as being a universal wheel
Change-Id: Ifcf9abc5d9e0cdb46596f5a05103c46235eb379a
2014-05-17 14:05:27 -07:00
Jenkins
12347c1a47 Merge "Ambiguous option error should not appear if Arg is SUPPRESS" 2014-05-08 19:21:36 +00:00
Diane Fleming
0d2bf657ae Update help strings for cinder client
Make text consistent and clear.
Add periods to end of sentences.
Adjust test suite for change

Closes-Bug: #1275881

Change-Id: I1dfde51636e8dc4b42e4c4810c27c1c4ac513d82
2014-04-23 09:06:21 -05:00
John Griffith
4163fa23a4 Bump client doc index version to 1.0.9
Prep for push of new client for icehouse release.

Change-Id: I281aaa7b628738d423f2cbfe5b78733e4e41714d
2014-04-21 09:17:26 -06:00
Jenkins
04eaa48eb6 Merge "When there is no error body return the HTTP reason" 2014-04-18 19:30:36 +00:00
Jenkins
1eb83d0480 Merge "Fix usage of v1 and v2 availability zones" 2014-04-18 19:30:35 +00:00
Jenkins
71daa36023 Merge "Accept deleting multiple snapshots in one shot" 2014-04-17 19:21:42 +00:00
Jenkins
338755aa17 Merge "Add auth_plugin support to cinderclient" 2014-04-17 17:20:40 +00:00
Juan Manuel Olle
2b182c7e34 Ambiguous option error should not appear if Arg is SUPPRESS
Due to backward compatibility there are arguments hidden.
For example:

--tenant-id and --tenant_id

On those case the abbreviation mechanism if a user enter
--tenant throw that there is an ambiguity but the helps only
show --tenant-id as an optional argument.
This change remove this ambiguity if one of them is hidden.

Change-Id: I413f1ebafc68b3e02b5abadce1608e6d48207b01
Closes-Bug: #1252457
2014-04-16 15:10:55 -03:00
Peter Hamilton
51ffb26437 Fix malformed encryption-type body in test cases
This change addresses bug #1286261 and fixes two malformed
encryption-type bodies in two test_create test cases.

Change-Id: I308561c1d5a70812889a93922e13194597f670f1
Closes-Bug: #1286261
2014-04-16 15:31:15 +00:00
Jenkins
eb301ec6ad Merge "Include the Python 3/3.3 trove classifiers" 2014-04-15 20:47:14 +00:00
Jenkins
a58e14fc4f Merge "Wrong hint key in volume create function" 2014-04-09 11:38:31 +00:00
Andrey Kurilin
14e244f0e9 Reuse Resource from oslo
Class Resource from oslo is equal to code from cinderclient.
In the process of unification of the clients code we should
reuse common functionality from Oslo.

Related to blueprint common-client-library-2

Change-Id: If39e49ff739d659d145725966192acf81975c90c
2014-04-04 07:36:06 +00:00
Jenkins
6e07302078 Merge "Sync latest apiclient code from Oslo" 2014-04-04 07:16:59 +00:00
Jenkins
fc2c916ce4 Merge "CLI for disable service reason" 2014-04-04 07:16:50 +00:00
Jenkins
6dc3185ca1 Merge "replace assertTrue(isinstance) to assertIsInstance" 2014-04-04 07:16:49 +00:00
Jamie Lennox
58e2a2d7cd Use region_name in service catalog
Using attr and filter is no longer necessary. We provide a region_name
filter directly that works with both v2 and v3 service catalogs.

Change-Id: I67b50fcaa5e4df5c2bb7b2966b5ef2040e6286e7
2014-04-04 14:42:15 +10:00
Jamie Lennox
56eaaf8e1c Use real timestamps in authentication tests
Using a non time string means it won't be correctly parsed by anything
in keystoneclient trying to read those auth responses.

Change-Id: I6db79d3cf7596044a281cc85de014691f81c1fd1
Blueprint: use-session
2014-04-04 12:15:41 +10:00
Xavier Queralt
5a080b4d47 Accept deleting multiple snapshots in one shot
In bug 1241941 the delete and force-delete commands were updated to
accept multiple volumes for deleting in the same call. This patch adds
the same behaviour to the snapshot-delete command.

Closes-Bug: #1284540
Change-Id: I5e4bf8641d7fd261fa24b03832bad08007e43c12
2014-04-03 10:21:23 +02:00
HiroyukiEguchi
c364372477 Add set-bootable command
Bootable Status is set to "True" automatically when user
create a volume from a image. But user have to set bootable
status manually when creating a bootable volume manually.

blueprint add-bootable-option

this commit is related to https://review.openstack.org/#/c/84057/

Change-Id: Ib4a44334001b7b9e3b896c2e44607c414e75e952
2014-04-02 09:50:48 +09:00
Sergio Cazzolato
5278bdb0c5 Add quota-delete command to cinder client
Add the command quota-delete <tenant_id> to the client.

This change depends on the cinder change:
Ia040a20abb831c311eb13624ddecbbf0f12fdd9f

DocImpact

Implements blueprint quota-delete
Change-Id: I1e5c98154dc3c6de168747eb912b45265cd1b9db
2014-04-01 12:58:41 +00:00
OpenStack Jenkins
07fd0fa5e6 Updated from global requirements
Change-Id: Icc67410c32244a1b1dfb6484acf4581c53e47fb5
2014-03-27 16:39:51 +00:00
Alex Gaynor
ad75082270 Include the Python 3/3.3 trove classifiers
These are often used by automated tools to check for Python 3 support.

Change-Id: I29fae2c0b80d28a865cc0972272e470da720ca11
2014-03-23 21:10:50 -07:00
Jenkins
7240040986 Merge "Allow list_extensions to work in cinderclient v2" 2014-03-20 13:29:14 +00:00
yrunts
d3236f568e Fix Volume.extend and Volume.update_readonly_flag methods
Correct VolumeManager method signature called from Volume.extend and
Volume.update_readonly_flag methods for v1 and v2 api's.

Change-Id: I2ffb49112d39ad96b91a4173526502a5201666c6
Closes-Bug: #1293423
Closes-Bug: #1294178
2014-03-18 17:35:17 +02:00
Jay Lau
8a59f2ca57 CLI for disable service reason
Adds cli option to allow users to give reason
for service-disable. Also adds disabled reason
as a column in service list, so any disabled service
can be seen with reason.

A recent cinder change that allows disable-log-reason
allows users to provide reason for disabling service.
This just adds the cli option for the method.

Implements bp record-reason-for-disabling-service

Change-Id: I90f4566764790eeb0c047c4a0fd0108050ab6ad9
2014-03-16 09:34:09 +08:00
Jenkins
e8e785f016 Merge "Remove vim header" 2014-03-14 16:31:59 +00:00
Jenkins
98dade06f0 Merge "Remove call to undefined install.post_process()" 2014-03-14 16:31:58 +00:00
ekudryashova
e18baa0c51 Fix usage of v1 and v2 availability zones
Change usage of availability zones in client. V2 client should
use appropriate version of manager of availability zones.

Also change tests of v2 availability zones to test version 2
instead of one more time test v1 availability zones.

Change-Id: Iec3863a105a20f876a303f789cc1edfafa58f4df
Closes-Bug: #1290956
2014-03-14 16:04:03 +02:00
Jenkins
141ccf77b5 Merge "Update service function name for service enable" 2014-03-14 04:50:42 +00:00
Jenkins
bd98d3264b Merge "Import access module from keystoneclient to handle V3 endpoints" 2014-03-13 23:05:32 +00:00
Jenkins
7df33d6e2f Merge "Update doc string for service disable" 2014-03-13 16:37:25 +00:00
OpenStack Jenkins
fa3b3b907f Updated from global requirements
Change-Id: Ib0922bbc1be3c8f738e547fe54a080036b072cdd
2014-03-13 01:54:12 +00:00
Jenkins
de4f9c42cd Merge "Client support for export and import backup service metadata" 2014-03-12 02:13:16 +00:00
ls1175
0ff5d1cdc6 replace assertTrue(isinstance) to assertIsInstance
some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by testtools

Change-Id: Ic3eb7b27dc96b0ec7d786c092fc3a6a513af64f7
Closes-bug: #1268480
2014-03-05 18:43:46 +08:00
Terry Howe
7f56f0a8c3 Pretty print of endpoints for ambiguous error
Pretty print the list of endpoints by region for ambigous endpoint error

Change-Id: Ia99b6d46b1944db631fc4bd446aeae77abb08262
Closes-Bug: #1241177
2014-03-04 08:31:41 -07:00
Ronen Kat
c48e41b8b7 Client support for export and import backup service metadata
Add client code to a new admin API for backup-export and
backup-import allowing an admin to copy the backup metadata
details.

client code for https://review.openstack.org/#/c/69351/

blueprint cinder-backup-recover-api
DocImpact new admin API calls backup-import and backup-export

Change-Id: Id306fc9cf562a87bb6a36eae692852eefc592b74
2014-03-04 17:18:40 +02:00
Russell Sim
52ce0b205e When there is no error body return the HTTP reason
Return the response reason when there is no message body to return.

DocImpact
Change-Id: Ia60da4f04b059a13fcbe0059bb42fd77f272d8aa
Closes-Bug: 1248773
2014-03-04 10:00:44 +11:00
Shao Kai Li
1b0ea8768c Import access module from keystoneclient to handle V3 endpoints
* service_catalog.py will be used only by nova(cinder.py), it will be removed if nova
uses access instead of service_catalog. Then service_catalog.py and
test_service_catalog.py will be removed from cinderclient if necessary.

* Some unit tests are modified.

* Because of JSON format's modification, functions that process cinder
credentials and cinder endpoints are changed.

* Add dependency for keystoneclient in requirements.txt.

Change-Id: Icf7badfdddcf5f55536d95db7242aff58aa34b6e
Closes-Bug: #1263876
bp: service-catalog
2014-03-03 01:16:26 -05:00
Mike Perez
8b88059a5b Allow list_extensions to work in cinderclient v2
Cinder client extensions also requires explicity setting the
service_type that they are available for. This makes the only extension
for the client available to v2 as well.

Change-Id: I9a73cac31c70b248ac6070540554f9293e9a6e43
Closes-Bug: #1284321
2014-03-02 18:22:57 -08:00
Jay Lau
30281d286c Update service function name for service enable
When testing the function of enabling a service, the function name
should be test_service_enable.

Change-Id: I951c94315392834250183e0219b32804e5d2de66
2014-03-03 08:47:03 +08:00