531 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
f9eefccdfb Updated from global requirements
Change-Id: Ib1c572eae4c4039c6a6f5e39b0243ed0c263feb4
2015-02-05 20:19:06 +00:00
Jenkins
9dcb38f5f2 Merge "Fix up help message for reset-state call" 2015-02-05 14:56:32 +00:00
Jenkins
6883bffca4 Merge "reset-state should warn that it is DB only" 2015-02-04 23:57:46 +00:00
scottda
ff3e5a4ed6 reset-state should warn that it is DB only
The python-cinderclient command 'reset-state' will only change the state in
the Cinder database, without affecting any connection/export of a volume from
the driver backend to a Nova compute host/instance.
The Doc string should explicitly state that this is the case, and Warn that it
might result in an unusable volume, i.e. a volume is set to 'available' in the
Cinder DB, but is still attached and therefore cannot be attached to another
instance, nor detached.

Change-Id: Iee66570dbb93776490ae8fb663a7f835dc496bc2
Closes-Bug: 1417273
2015-02-04 20:25:14 +00:00
Jenkins
eaedc41ddd Merge "Don't use sessions if third party plugin is used" 2015-02-03 15:25:09 +00:00
Jenkins
2f1939405a Merge "Add support for os-volume-type-access extension" 2015-02-03 03:55:13 +00:00
Jenkins
7648eb68f5 Merge "Expose cinder's scheduler pool API" 2015-01-30 23:48:23 +00:00
Gary W. Smith
e5779d352b Expose cinder's scheduler pool API
Make the scheduler pool API available to other clients.

DocImpact
Change-Id: I3f0e0c2ed806b5bfda3129ed2c5b210b9210daa5
Partially-Implements: blueprint get-volume-type-extra-specs
2015-01-30 16:50:21 +00:00
John Griffith
e9e8aab2ec Fix up help message for reset-state call
There's some confusion about what the reset-state
call does.  It's not clear to some that this call
simply changes the state of the object in the data-base.

This patch just updates the help message to indicate more
clearly that reset-state ONLY changes state in the DB.

Change-Id: Ia389cfd8b1a821a356706201c009cf3c8dca8419
2015-01-28 13:36:20 -06:00
Jenkins
301eef0203 Merge "Add tests for consistency groups and cgsnapshots" 2015-01-23 20:56:41 +00:00
Jenkins
f26de0f8fc Merge "cinder list fails with 'name' sort key" 2015-01-23 08:16:42 +00:00
Jenkins
c4a44868ed Merge "Leverage openstack.common.importutils import_class" 2015-01-22 20:42:54 +00:00
Michal Dulko
11e5e4f6aa Add tests for consistency groups and cgsnapshots
This patch adds missing unit tests for consistency groups and
consitency groups snapshots. Tests cover update operation and
various use cases of list operations.

Change-Id: I8998a5c8643559cee83c8c0c81b616b5564c0a30
2015-01-22 15:11:33 +00:00
Steven Kaufer
0560f78833 cinder list fails with 'name' sort key
The client restricts the sort keys that the user can supply. The
'name' key is allowed but is not the correct key for sorting by name,
it should be 'display_name'.

If 'name' is used then the client returns with the error 500
Internal Server Error.

This patch will add support for mapping client sort keys (eg, 'name')
to server sort keys (eg, 'display_name'), allowing the user to supply
the 'name' key to sort by name.

This patch also adds UT for the sort key and direction error cases
when an invalid value is supplied.

Change-Id: I0bdad6d61da83a3924a6b18678afe4722b5778d6
Closes-Bug: 1404020
2015-01-22 14:52:25 +00:00
Jenkins
e109e89481 Merge "Remove commented code in cinderclient/v1/volumes.py" 2015-01-20 12:38:10 +00:00
Jenkins
09bfc76c02 Merge "Allow CG quota to be showed and updated" 2015-01-16 18:34:50 +00:00
Jenkins
da16703e61 Merge "v2 error message grammatical error" 2015-01-16 18:33:06 +00:00
Zhiteng Huang
200aeae76c Remove commented code in cinderclient/v1/volumes.py
migrate_volume_completion() function in Volume class was commented
out when it was added.  It hasn't been changed since then.  This
change remove it.

Change-Id: Iad8c88e20268265f9063e2faa2a21514439150ad
2015-01-15 10:56:27 +08:00
Jenkins
fdf6fd1d67 Merge "Add command to show pool information for backends" 2015-01-13 08:38:06 +00:00
Aaron Rosen
0b38d75a44 Leverage openstack.common.importutils import_class
This patch drops the import_class method from utils and instead
leverages the one in openstack.common.importutils.

Change-Id: I9f740b9941d477776597c4c4ab88a65a39fb4fb8
Closes-bug: 1365273
2015-01-12 22:58:00 +00:00
git-harry
3a97cb27d3 v2 error message grammatical error
This commit fixes an error that occurs in a number of places in the v2
shell; the word 'the' is missing from a number of the error message
strings.

Change-Id: I6d1026c965f84c9c39fcfd175b5d5cbbbad5ef5c
2015-01-08 12:21:33 +00:00
Jenkins
0d93c3b76d Merge "Client output is not sorted by --sort_key" 2015-01-07 23:15:39 +00:00
Jenkins
9c1ec1d19c Merge "Fix incorrect variable name" 2015-01-06 19:52:00 +00:00
Mitsuhiro Tanino
1d38426680 Add command to show pool information for backends
An admin-api extension to show pool info was supported at commit
https://review.openstack.org/#/c/119938/.

This change adds a command to show pool information for backends
using the admin-api. This change also closes the gap for end users.

Partial-Bug: 1403902
Change-Id: I20e0828c5403b73bc44d07eebf08e2aa2deb428a
2015-01-05 16:04:43 -05:00
Steven Kaufer
b0e4cc1b63 Client output is not sorted by --sort_key
The cinder client supports invoking the volumes REST API with the
sort_dir and sort_key parameters. However, the client output table
is always sorted by ID even though the REST API is returning in
sorted order based on the sort key/direction provided.

For example, the command below supplies the 'size' sort key but the
output table is still sorted by ID:

cinder list --sort_key size --sort_dir desc

This fix contains:
* Updates to the print_list utility to prevent any re-ordering so
  that the current object order is maintained
* Updates to the shell to disable re-ordering if the user supplies
  sort parameters

Change-Id: I4cc111a8bdd2b89158dfc4bb0d16fa6dbf36cc57
Closes-Bug: 1402846
2014-12-22 02:23:00 +00:00
Jenkins
59177814a4 Merge "Use immutable arg rather mutable arg" 2014-12-21 16:15:41 +00:00
Jenkins
9ede59339e Merge "Add CONTRIBUTING.rst" 2014-12-20 10:19:38 +00:00
Mathieu Gagné
6f8c235a92 Add support for os-volume-type-access extension
This change adds the ability to manage volume type access:
- Create non-public volume type
- List volume type access
- Add a project access
- Remove a project access

This change also adds the is_public flag to volume type list.

Note: The volume type access extension is only implemented
in the Cinder API v2.

DocImpact: Add volume type access extension support
Implements: blueprint private-volume-types
Change-Id: Ife966120d9250be8d8149cdec9c1a53405d37027
2014-12-19 13:26:21 -05:00
Gloria Gu
bc2b8bf1be Added type description for volume type client
This patch added client handling and unit tests for volume type description:

* Added 2 client methods for volume type.
  default: to get the default volume type
  update: to upate an existing volume type to update description

* Added 2 new command-line operations.
  type-update (adminitrator only)
  type-default

* type-list should display description.

* type-create should have an option for entering the description.

The corresponding cinder APIs change volume-type-description:
https://review.openstack.org/#/c/131871/

Implements: blueprint volume-type-description
Change-Id: I2735d7050d90589d19f45e21096577febdcca8bb
2014-12-17 07:27:38 -08:00
Jenkins
c3b1b1b0c0 Merge "Fix comment in tearDown()" 2014-12-12 21:54:32 +00:00
Jenkins
9690cc3742 Merge "Remove cinderclient/tests from coverage report" 2014-12-12 21:36:23 +00:00
Robert Myers
7783767f23 Don't use sessions if third party plugin is used
If an auth_plugin is used do not try to load the session
from the default keystone providers.

Change-Id: If2a87e23cabde006833de70e5c7aa066d95dbf50
Closes-Bug: #1380729
2014-12-09 11:41:27 -06:00
Jenkins
2f130e3e30 Merge "List all the request items when the list is over osapi_max_limit" 2014-12-07 06:56:17 +00:00
Jeremy Stanley
6f66494ecc Workflow documentation is now in infra-manual
Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: I58e362f5a94e2c47a103d6901464df38110d6383
2014-12-05 03:30:39 +00:00
Vincent Hou
592099475c List all the request items when the list is over osapi_max_limit
Convert the function _list into a loop function, which can retrieve
the items from the next link till the limit or the end of items has
been reached. This works for v2 only.

So far, only volume list in v2 support limit. The limit parameter
work for volume list in v2 only, but other list can extend it in
future work.

Change-Id: I011f0ed1a4ab639f67db6cae580d978c0b44c1bb
closes-bug: #1342192
2014-12-04 02:20:59 +00:00
Jenkins
9295913779 Merge "Add ability to create volume from image by image name" 2014-12-04 00:19:06 +00:00
Xing Yang
d9da860371 Allow CG quota to be showed and updated
This patch added the ability for CG quota to be showed and updated.
- Added consistencygroups as a quota resource to be displayed.
- Added an option for consistencygroups quota to be updated.

Change-Id: I7e88eb426eb1733bce955b7a15b8bffdb1e8ee20
Closes-Bug: #1373766
2014-12-03 16:39:23 -05:00
Jenkins
3398e424bf Merge "client HTTPClient __init__ fails if auth_url None" 2014-12-02 09:48:02 +00:00
Jenkins
b2b0489283 Merge "Use newer features from keystoneclient" 2014-12-02 01:16:14 +00:00
Jenkins
31eda8b8c6 Merge "Updated from global requirements" 2014-12-02 01:16:06 +00:00
Jenkins
4154f88fa1 Merge "Add the parameter bypass_url to the cinder client" 2014-12-01 19:10:17 +00:00
Vincent Hou
7a50182fbe Add the parameter bypass_url to the cinder client
If the bypass_url is specified in the http client, there is no need
to get it from Keystone.

Change-Id: I891849f77ad2ba98a83c993b401121216c8cfff6
closes-bug: #1350702
2014-12-01 02:43:52 +00:00
Jamie Lennox
a68ba9417b Use newer features from keystoneclient
There are a number of functions that were implemented in keystoneclient
in response to needs from cinder and other clients.

Now that these were released in 0.11 cinderclient should make use of
them rather than keep its own versions.

Change-Id: I6444fc5bfd2d0505f9a7eb2c6068ab945ae5bb9b
2014-12-01 02:16:44 +00:00
Duncan Thomas
4ccb70a90f Support Volume Backup Quota
Python-cinderclient support update volume backup quota.

Cinder server side commit for this feature was:
https://review.openstack.org/#/c/111460/

blueprint volume-backup-quota

Change-Id: I1fceeb9fc0eb92370e249c46749a61e4b11420b0
2014-11-30 19:37:10 +02:00
Jenkins
5b172959c6 Merge "Fix 'search_opts' error with backup delete command" 2014-11-30 06:39:01 +00:00
OpenStack Proposal Bot
713e3310f4 Updated from global requirements
Change-Id: I29667c947e5b1c54c125cd569f8d60bae45824f1
2014-11-27 21:48:14 +00:00
Sean McGinnis
616b982b7d Add ability to create volume from image by image name
Follow on change from cinder code to all specifying an
image by either its name or ID for creating a volume.

This patch adds the --image option that will take either
ID or name as input. The service then will attempt to
locate the image to use and make sure there are not
multiple images with the same name.

If both --image-id and --image are used it will favor
the more explicit ID.

DocImpact
Closes-Bug: 1377823

Change-Id: I77d58258144970fac47da6da6b7870f2931e1823
2014-11-25 12:39:17 -06:00
git-harry
ac9ef2bd12 Remove cinderclient/tests from coverage report
Currently coverage reports on coverage of the tests themselves. This
makes the percentage coverage higher than if they are excluded and
therefore distorts the reports values for the codes as a whole.

This commit updates the .coveragerc files to remove
cinderclient/tests/* from the coverage report.

Change-Id: If7f1765017f3f0d55975219b12ff7bf149146931
2014-11-25 15:14:09 +00:00
Jenkins
d6f4ab3c96 Merge "Fixed typos found by RETF rules" 2014-11-25 03:02:01 +00:00
seungjin
029a776455 Fix 'search_opts' error with backup delete command
The following error message is yield when we try to
backup volume which is not present.

ERROR: list() got an unexpected keyword argument 'search_opts'

This is from findall() method in the
cinderclient.base.ManagerWithFind class.

When cinderclient get a specific resource, it use the findall() method.

The error will yields which list() in
VolumeEncryptionTypeManager did not have.

Change-Id: Iffe568c6d2de41b8e24658f3a54f2861e2f7db31
Closes-Bug: #1282324
Related-Bug: #1248519
2014-11-25 01:28:54 +00:00