Changes to cinderclient to use microversions.
Implements: blueprint api-microversion-support-for-cinderclient
api-microversion-support-for-cinderclient
Change-Id: I840a1162b88e8ff36fa3fc4e1d6b9317104df3e0
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
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
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
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
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
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
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
Some extra code is present like unused variables,
unreachable code after return statement etc.
Same is removed.
Change-Id: Ifca88a19625c56ed520321ecbdd91739a304be8e
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
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
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>
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
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
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
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
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>