939 Commits

Author SHA1 Message Date
Eric Harney
04ca787f5b Use six.moves.urllib.parse urlencode
Rather than having to do try/except for imports,
just use six.moves for loading this module.

Change-Id: If750253d7e02608fd183675bd97e3956fbfb0853
2016-04-20 10:55:54 -04:00
OpenStack Proposal Bot
9e6abcf5b3 Updated from global requirements
Change-Id: Ic543aab4ffef00c706481d62f0df4488547bad82
2016-04-20 05:19:12 +00:00
scottda
3f75b48f06 Support api-microversions
Changes to cinderclient to use microversions.

Implements: blueprint api-microversion-support-for-cinderclient
api-microversion-support-for-cinderclient

Change-Id: I840a1162b88e8ff36fa3fc4e1d6b9317104df3e0
2016-04-19 11:19:45 -06:00
Jenkins
7d570540a4 Merge "Add /v3 endpoint support for cinderclient" 2016-04-19 15:20:11 +00:00
Jenkins
dd22e6cd6e Merge "Change extension module naming to a shorter one" 2016-04-19 14:20:20 +00:00
scottda
27e6f6f7f8 Add /v3 endpoint support for cinderclient
Add support for Cinder API /v3 endpoint.
A couple of unit tests for /v3 endpoint were added to v3/test_shell.py
to ensure that the v3 shell works, and to also test that modules work
with:
from cinderclient.v2.availability_zones import *
syntax.

Change-Id: I6ae0ada221bebb4ab1850d9c99b10fcbb585201f
Implements: https://blueprints.launchpad.net/python-cinderclient/+spec/add-v3-endpoint-support
2016-04-18 10:49:51 -06:00
Jenkins
6e0b5f451c Merge "Add pylint tox env" 2016-04-12 22:25:42 +00:00
Jenkins
471972a975 Merge "Graduate to oslo.i18n and cleanup incubator usage" 2016-04-12 16:04:55 +00:00
Eric Harney
aab94fb905 Add pylint tox env
Run pylint with
 $ tox -e pylint

(Copied from Cinder with minor changes.)

Change-Id: I9d7f03c44c6da7515b433d6c87f3a1645184d491
2016-04-07 12:57:10 -04:00
Jenkins
456bf5fce9 Merge "Add tests for delete type by name" 2016-04-07 13:42:00 +00:00
Jenkins
d2daa7ba94 Merge "Fix api v2 so that you can delete more than one volume_type at a time." 2016-03-31 01:25:45 +00:00
Gorka Eguileor
dd9a05002a Add tests for delete type by name
On the patch that added multiple volume type deletions and deleting
volume types by name we didn't have a test for the volume type deletion
by name.

This patch adds this test.

Change-Id: Id3bd86eb5af95007ed5c0d6e0a936af3babcc5fb
2016-03-29 13:11:25 +02:00
Jenkins
147a4312fe Merge "Fix wrong request url when retrieving multiple request" 2016-03-29 10:31:08 +00:00
zwei
edd269aff7 Fix api v2 so that you can delete more than one volume_type at a time.
This path is also allowing us to delete them by name or ID
instead of only by ID.
eg:  cinder --os-volume-api-version 2 type-delete test01 test02

Closes-bug: #1554794
Change-Id: I54faad2c5b60ab69f4b406310eb8059cf1e8cf76
2016-03-29 16:49:18 +08:00
zwei
8bc5a446f0 Fix wrong request url when retrieving multiple request
When the length of resource list is larger than osapi_max_limit.
Cinder will return a "maker url" which marks index of resources
already returned to client.
_cs_request() function fo HTTPClient will link the endpoint url of cinder
and this "marker url" together then use this wrong linked url to request
the server side, which cause a NotFound exception.

Closes-bug: #1560862
Change-Id: I416b63758373dc8ad29818d6952d1e9dd58d05f2
2016-03-25 23:52:31 +08:00
Jenkins
7556a74ae6 Merge "Removed Extra code" 2016-03-24 18:38:53 +00:00
Ronald Bradford
74252d1abd Graduate to oslo.i18n and cleanup incubator usage
Graduate from Oslo Incubator to oslo.i18n library.
Cleanup of unused Oslo Incubator utils.
Added optional enable_lazy() usage.

Implements: blueprint graduate-oslo-i18n [1]
https://blueprints.launchpad.net/oslo-incubator/+spec/graduate-oslo-i18n

Change-Id: I9c8db9487b554b637a41620c858a7e7abf802879
2016-03-24 11:40:38 -04:00
Jenkins
07143aa252 Merge "Add docstrings for chessecake methods" 2016-03-22 16:01:36 +00:00
Jenkins
54319fefec Merge "Revert "Cleanup for Replication v2: remove 'replication-promote'"" 2016-03-21 12:05:00 +00:00
Jenkins
635b14b058 Merge "Keep py3.X compatibility for urllib" 2016-03-17 17:30:43 +00:00
Sean McGinnis
a5907fa6d5 Revert "Cleanup for Replication v2: remove 'replication-promote'"
Forgot this was a replication v1 command. We need to keep
v1 support around in the client for users with a new client
and old service.

This reverts commit 9685009da2311d871bd90c7705d842dac7e7ed53.

Change-Id: Ifad5ddb021d98b0fc973bc9ea478baccc60f912f
2016-03-16 21:48:57 +00:00
Jenkins
fbc13e4d49 Merge "Revert "Cleanup for Replication v2: remove 'replication-reenable'."" 2016-03-16 21:44:56 +00:00
Sean McGinnis
d87ff43eb8 Revert "Cleanup for Replication v2: remove 'replication-reenable'."
Forgot this was a replication v1 command. We need to keep
v1 support around in the client for users with a new client
and old service.

This reverts commit eda73c3b27159de97df132b53264cd8a620b4b95.

Change-Id: Id46abbf668e6cce600ca3c6ab37133e267ba8346
2016-03-16 19:05:47 +00:00
Jenkins
795b6ff632 Merge "Cleanup for Replication v2: remove 'replication-reenable'." 2016-03-16 18:17:25 +00:00
Jenkins
cd4e28ac11 Merge "Cleanup for Replication v2: remove 'replication-promote'" 2016-03-16 18:15:23 +00:00
root
b83835d618 Removed Extra code
Some extra code is present like unused variables,
unreachable code after return statement etc.
Same is removed.

Change-Id: Ifca88a19625c56ed520321ecbdd91739a304be8e
2016-03-14 06:20:32 +00:00
Dongsheng Yang
eda73c3b27 Cleanup for Replication v2: remove 'replication-reenable'.
As Replication v2.1 (Cheesecake) was merged in cinder, let's
remove the some remaining replication related code in cinderclient.

Depends-on: If862bcd18515098639f94a8294a8e44e1358c52a
Change-Id: I91964cc77dbb97f84e1045da16b4ceabc14b0b6d
2016-03-12 11:24:29 -05:00
Dongsheng Yang
9685009da2 Cleanup for Replication v2: remove 'replication-promote'
As Replication v2.1 (Cheesecake) was merged in cinder, let's
remove the some remaining replication related code in cinderclient.

Depends-on: If862bcd18515098639f94a8294a8e44e1358c52a
Change-Id: I56dcc4a7f61e739110816a060bb0796476360db6
2016-03-12 11:24:23 -05:00
Jenkins
9261687395 Merge "fix formatting of return-request-id-to-caller release note" 2016-03-11 21:46:39 +00:00
Jenkins
455e8b469a Merge "Update reno for stable/mitaka" 2016-03-11 21:46:25 +00:00
Doug Hellmann
52f12f28a2 fix formatting of return-request-id-to-caller release note
The release note was not escaping the restructuredtext constructs
properly so the YAML parser was wrapping the lines together.

Change-Id: I8ae7e70c4e97d4a26de265f9fc48122be75224bb
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-11 14:41:27 -05:00
Doug Hellmann
407403d988 Update reno for stable/mitaka
Fix the organization of the release notes so they match other projects,
with a page for the current series and a page for each stable series.

Change-Id: I3a60bf93f67f913347e5a04c679412ffab85b82d
2016-03-11 14:39:15 -05:00
Kyrylo Romanenko
148e680fb3 Fix docstring according to function
Change-Id: I8cbe98ac2adfc00a482917a5bb8615662986441a
2016-03-09 16:51:46 +02:00
John Griffith
99815a521f Add docstrings for chessecake methods
We missed docstrings on freeze, thaw and
failover replication v2.1 methods.

This adds them.

Change-Id: If68a674c66b4f18e80432d1cef269b02813fcc37
2016-03-08 11:43:54 -07:00
Jenkins
fb175864f9 Merge "Add backup list sorted by data_timestamp" 2016-03-05 00:07:47 +00:00
Jenkins
d683891910 Merge "Fix Resource.__eq__ mismatch semantics of object equal" 2016-03-03 00:13:29 +00:00
Jenkins
718b631d23 Merge "Use ostestr as a tests runner" 2016-03-02 19:39:33 +00:00
Jenkins
a330ff0bba Merge "Add --cascade to volume delete" 2016-03-02 17:12:20 +00:00
Alex O'Rourke
66f7a08385 Remove replication v2 calls
With replication v2.1 merged in cinder and the calls merged in the
client, there is no longer a need for the old calls. If these commands
are called with the newest cinder code, it fails miserably.

Basically reverts this patch: https://review.openstack.org/#/c/231708

Change-Id: I29c0565c1efe518e40c3483ceb4ca0d40cd7d0d7
2016-03-01 08:58:38 -08:00
Jenkins
c4f4ae200a Merge "Update minimum tox version to 1.8" 2016-03-01 16:09:43 +00:00
Rui Chen
eb1cddbc28 Fix Resource.__eq__ mismatch semantics of object equal
The __eq__ of apiclient.base.Resource will return True,
if the two objects have same id, even if they have different
other attributes value. The behavior is weird and don't
match the semantics of object equal. The objects that have
different value should be different objects.
Fix this issue and add some test cases in this patch.

Change-Id: I187032e5630ac47a4f54db5058dbf9b6e15eba6d
Closes-Bug: #1499369
2016-03-01 08:47:25 +00:00
Jenkins
d4569534b4 Merge "Add replication v2.1 (cheesecake) calls" 2016-02-29 23:13:48 +00:00
Jenkins
64cde9f7f7 Merge "snapshot-list now supports filtering by tenant" 2016-02-29 22:47:42 +00:00
Jenkins
e4692518b4 Merge "Avoid logging sensitive info in http requests." 2016-02-29 22:06:26 +00:00
Jenkins
f6816bdbcb Merge "Trival: Remove 'MANIFEST.in'" 2016-02-29 16:55:06 +00:00
Jenkins
40610efd4d Merge "Use instanceof instead of type" 2016-02-29 11:06:55 +00:00
Jenkins
d4fcc92a0d Merge "Word Misspelling" 2016-02-29 11:06:49 +00:00
Jenkins
e4d1ff1db7 Merge "Fix return type in consistencygroups docstring" 2016-02-29 11:06:25 +00:00
Sean McGinnis
5e134ad6af Update minimum tox version to 1.8
Other projects have updated to 1.8 or later for the minimum
tox version (nova, neutron), so we should probably do the
same.

Change-Id: I2a12208ee964278d10f34a8439cefa8269c11b9b
2016-02-28 16:09:31 -06:00
Deepti Ramakrishna
20c0421857 snapshot-list now supports filtering by tenant
Admin can now filter snapshots on the basis of tenant.
No changes are needed on server side since snapshot model contains
project_id as a column which means that it supports native filtering
by tenant (i.e, project) via SQL.

This closely follows similar functionality for volume listing added in
the change-id - fa8c7e3d84bd93cdfc3641554e10d422281ea018

DocImpact
After this patch is merged we need to regenerate the CLI reference
guide so that the added documentation for the new option
"--tenant <tenant_id>" for "cinder snapshot-list" command gets
included.

Change-Id: I0bbd8e0b4aaf25da738c67638fb497337ead312b
Co-Authored-By: wuyuting <wytdahu@gmail.com>
2016-02-27 22:14:47 -08:00