Cinder list command was intended to show summary of
volumes, but currently the command shows many entries
than we expected.
This patch adds these two fixes to show volume list
more simply.
- Remove 'migration status' and 'multiattach' from
default list view.
- Add '--field' optional argument to 'list' subcommand.
This argument allows users to show only specified
entries. Unavailable fields will be ignored from
the list result.
DocImpact
Change-Id: Iad4bf76e87f84b6e57ec59d134b9413fcad16ce8
Closes-Bug: #1502639
as of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.
Change-Id: Icf1b13b044de03705688df929ed74429879c6dd8
Closes-Bug: 1519510
Because python creates pyc files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.
Change-Id: Ib5cbd375b208dbea1f18ada00b44ba76dcdda9c5
Closes-Bug: #1368661
v2 replication has been merged in cinder, but there is no way to call
the api methods. This patch allows the following methods to be called
in order to fully support v2 replication:
- os-enable_replication
- os-disable_replication
- os-list_replication_targets
- os-failover_replication
Change-Id: Ic3cf082916bdf089de05eebce456dff8cdc11f7c
Implements: blueprint replication-v2
As part of commit 0d2bf657ae5271a01e9ec84d379d17910b263b7e,
qos-key command's v2 support got broken again reintroducing
bug #1284321.
Change-Id: I30d60b060bd1b161bc96c4a529f4732b9ceef90d
Closes-Bug: 1284321
This patch adds functional tests for cinder volume
backup creation and deletion for python-cinderclient.
Change-Id: I5aaa84c014d1147e9415392d52241ca4819589f6
With oslo-incubator being deprecated, move
our use of strutils to oslo_utils.
This leaves in place the use of oslo-incubator's
strutils by other oslo-incubator modules for now.
Change-Id: Ic4e50060b42aeca9d1e54424a8a3a123140fbf2a
This adds CLI support for backup snapshots.
Server side change is here:
https://review.openstack.org/#/c/243406/
Depends-on: Ib4ab9ca9dc72b30151154f3f96037f9ce3c9c540
Change-Id: I5b58d872c9b4842fae5f2e7a4ddfc6662a6c8d7a
Implements: blueprint backup-snapshots
Almost all of the openstack project use CONTRIBUTING.rst,
We should consistent with the most of the project.
Change-Id: Ieefbf50ed9ed1ab83f0f6158ce8e7ccb9825bc62
As per the doc bug https://bugs.launchpad.net/openstack-manuals/+bug/1363830
documentation for the cinder CLI should be updated to reflect that the host
needs to be given in the form host@backend#pool, and the docs for the
cli-reference are auto-generated from the client.
Change-Id: I66d41e05436782c3acd24f9633c4b67ca5c56b15
Both Horizon and the cinder client documents the size paramater in
gigabyes(GBs) but the API docs(both v1 and v2) list the size units as
gibibytes(GiBs). The correct unit should be gibibytes(GiBs). This
should help in clearing up any confusion on what units are used in
Cinder.
Closes-bug: 1511167
Change-Id: I42e15c18d1f084d435a2be9b343fb2f6c3cf377f
The OS_CACERT environment variable should be passed to the test
environments to specify a CA bundle file to use in verifying a
TLS (https) server certificate.
Change-Id: Iee50946b34b7e285ebb7924cd5ac6cd83b355e48
Closes-Bug: #1511023
There is a way to get the version of the API being used. We need such
feature to work correct with different versions of the Cinder API
from third-party tools.
Change-Id: Ifde689df08644f9452138a9cd22052bc57fcb5d5
This patch adds the ability to reset the state of
a backup with the command backup-reset-state.
DocImpact
Change-Id: I5851bb21c62252f61ad6a09f01859582e774a9db
Closes-Bug: #1279764
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then, run
py27. This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.
"Closes-Bug: #1533919"
Change-Id: Ib247b4000d9c1d906ef55fa2b5cc990cf1120850
This patch adds the type-show command to the
cinder CLI for viewing information on volume
types.
Change-Id: I7b283b120727f2fbd186e6f07a6450795bdf03c3
Closes-Bug: #1505806
We've had a couple releases of the client but missed updating
the docs with any release note information. Added summary of
changes for each release.
Change-Id: I47edb5199182ca0c952cf60e6b923e6d2edd80ff
Closes-Bug: #1503705
This patch allows to use a standard approach to volumes, snapshots
and backups to avoid duplicating code.
Change-Id: I0059fcb3bb8823105a7f960a30e70036bcbded8b
Version discovery was found to break deployments using proxies, so it was
reverted. This was introduced in python-cinderclient 1.2.0, persisted in
1.2.1 and 1.2.2, and reverted in 1.3.0 . The 1.2.? versions make note of this
in the release notes, and docs generated from release notes will now warn the
user of this.
Change-Id: Ia866dbf5f5d1c8afd7ff62b31758229f7b09bc99
Closes-Bug: #1503691
Snapshot and backups pagination was recently implemented in the Cinder
backend. This patch is implementing a pagination for the snapshots and
backups on the client side in the same way that volume pagination works
using limit, marker and sort parameters.
Partial-Implements: blueprint extend-limit-implementations
Change-Id: Ie3660854407a947f7470b4dc0911704c0a31c1b4
- cinder image-metadata-show volume_id
This command can be used to show the image metadata associated
with the specific volume.
Partially implements: bp support-modify-volume-image-metadata
Change-Id: I960af66038b47c1206619b99a2bb5ae561a59c4f
Fix Change-Id: I98a8507f2369deff6a6f7f8f08271b169fe651ad for bug #1454436
doesnt allow OS_ENDPOINT_TYPE environment variable to be used as a default
for --os-endpoint-type as argparse takes the first definition of the
default expression for dest=os_endpoint_type
Closes-bug: 1500489
Change-Id: I76cc963b10bc7a549fe5a0cd2c73dfc6a30bb759
There are three resources: VolumeBackup, Snapshot, VolumeTransfer.
None of them can be deleted by using their names on V2.
For example, Snapshot client side filtering fails in the function
findall. The reason is that snapshot object
<class 'cinderclient.v2.volume_snapshots.Snapshot'> does not have
a attribute 'display_name'.
The response of /v2/{tenant_id}/backups/detail does not have
a parameter 'display_name', but have a parameter 'name'.
So class Snapshot does not need to define NAME_ATTR = 'display_name'.
The superclass of Snapshot 'Resource' has defined NAME_ATTR = 'name'.
Closes-Bug: #1497873
Closes-Bug: #1495428
Change-Id: I3c89fd9a82918e8a02385cfccb32dc9c3f4c4095
Dictionary creation could be rewritten as a dictionary literal.
for example:
body = {}
body['provider'] = args.provider
could be rewritten as
body = {'provider': args.provider}
TrivialFix
Change-Id: Ieae7b33332eca31754cbfe91288ef3001c573eb3