Commit Graph

1283 Commits

Author SHA1 Message Date
Tony Breeds 5737a46900 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: Ia7c707c0fcfd231fad4a2eae3b3f88824d8257f8
2017-09-12 15:56:52 -06:00
Jenkins 8daff0334e Merge "Updated from global requirements" 2017-07-25 02:34:05 +00:00
Chaynika Saikia 0cb09cc560 Add cinder create --poll
Usage: It adds an optional argument --poll to the cinder
create command which waits while the creation of the volume
is completed and the volume goes to available state. In case
there is an error in volume creation, it throws an error message
and exits with a non zero status. The error message printed here
is the async error message in case it generates one.

Depends-On: Ic3ab32b95abd29e995bc071adc11b1e481b32516

Change-Id: I1a4d361d48a44a0daa830491f415be64f2e356e3
2017-07-24 09:06:28 -04:00
OpenStack Proposal Bot 72333867a3 Updated from global requirements
Change-Id: Ib14f036bbc10a36a8e79fe6749f6b98b660caf7b
2017-07-23 13:51:25 +00:00
Matt Riedemann 72671fffe5 Add release note for get_highest_client_server_version return type change
Change Ica4d718b3de31c31da047f07c5154b242e122596 changed the return
type on the cinderclient.client.get_highest_client_server_version
method from a float to a str. Since it's a public API we should
document the change with a release note.

Change-Id: I197c80ef657156261ecbf51cee6300268438b639
Related-Bug: #1705093
2017-07-20 16:50:59 -04:00
Gorka Eguileor 52cc5c6cb3 Fix highest version supported by client and server
Current code mistakenly thinks that 3.40 is older than 3.27, because
it's treating 3.40 as 3.4, thus returning the wrong maximum supported
version by both server and client.

It is also returning a 3.40 version as 3.4 because it's returning it as
a float.

This patch fixes both issues by not using float conversion but using the
APIVersion object to do the comparison and by changing returned type to
a string so it can be used to instantiate a client.

Change-Id: Ica4d718b3de31c31da047f07c5154b242e122596
Closes-Bug: #1705093
2017-07-19 14:45:13 +02:00
Gorka Eguileor 83230498eb Fix reset state v3 unit tests failures
Depending on the order of execution our unit tests could fail because we
are caching the reset methods in the RESET_STATE_RESOURCES dictionary in
cinderclient.v3.shell and mocking the methods before importing this file
will leave future tests with the mocked value.

This patch fixes this by mocking find_resource instead of individual
find methods, and in one of the tests with a method that will call
original method whenever it's not the call we actually wanted to mock.

Change-Id: Ic3ab32b95abd29e995bc071adc11b1e481b32516
Closes-Bug: #1705249
2017-07-19 14:25:44 +02:00
Jenkins 2d5e3a7aaf Merge "Updated from global requirements" 2017-07-18 18:38:38 +00:00
Jenkins 09d5704a15 Merge "Switch from oslosphinx to openstackdocstheme" 2017-07-18 18:09:56 +00:00
Jenkins 3de1410308 Merge "Cinder attachment-* does not support names" 2017-07-18 07:54:50 +00:00
OpenStack Proposal Bot 9a5fb8fc50 Updated from global requirements
Change-Id: Icfe847fd8583be08e5467d4f2cb31413c9ba36f1
2017-07-18 01:55:37 +00:00
wangxiyuan f3a1e6e708 Remove consistencygroup quota
Cinder doesn't support to update consistencygroup quota. And
since cg will be deprecated in Queue, there is no value to support it
at server or client side. So this patch removed it.

Change-Id: I5fbfb30611a60d575fedb676119bb0a1564700df
Closes-bug: #1693584
2017-07-17 02:35:09 +00:00
Van Hung Pham 16a75e8e35 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: Ie5930c73c748bb308940606fced8f84eecdecdc8
2017-07-14 13:24:45 +07:00
OpenStack Proposal Bot bb5c120460 Updated from global requirements
Change-Id: Ic8567364a423091a8ce7bcbba2db6290ca1d6791
2017-07-13 14:23:29 +00:00
nidhimittalhada f81518df07 Cinder attachment-* does not support names
Added capability to recognize volume name
too in command. It can work with both name
and id now.

Change-Id: If0fc63042d76beb354e6961e1f2d2936021c3d8e
Closes-Bug: #1661043
2017-07-13 19:49:03 +05:30
Jenkins 23c452ce1a Merge "Add pagination for snapshots, backups" 2017-07-12 17:59:19 +00:00
Gorka Eguileor 6a00d30e96 Dynamic log level support
This patch adds support for microversion 3.32 allowing setting and
querying Cinder services' log levels.

Two new commands are available:

cinder service-get-log [--binary {,*,cinder-api,cinder-volume,cinder-scheduler,
                                  cinder-backup}]
                       [--server SERVER] [--prefix PREFIX]

cinder service-set-log [--binary {,*,cinder-api,cinder-volume,cinder-scheduler,
                                  cinder-backup}]
                       [--server SERVER] [--prefix PREFIX]
                       <log-level>

Implements: blueprint dynamic-log-levels
Depends-On: Ia5ef81135044733f1dd3970a116f97457b0371de
Change-Id: I50b5ea93464b15751e45afa0a05475651eeb53a8
2017-07-10 15:11:55 +02:00
Jenkins eaee84097a Merge "UnboundLocalError on message-list" 2017-07-07 19:42:05 +00:00
Gerhard Muntingh d11b1059a4 Add pagination for snapshots, backups
Allow cinderclient to retrieve more than osapi_max_limit
(default 1000) snapshots, backups, etc.

Cinder pagination support has been added to the API quite some
time ago.  Client support was only implemented for volumes.

This commit allows other resources to be paginated as well.

Change-Id: I9a6f446b680dadedccd14ba49efdef7f5ef0a58a
Closes-Bug: #1691229
Co-Authored-By: Gorka Eguileor <geguileo@redhat.com>
2017-06-22 19:06:48 +02:00
Eric Harney b910f5bea3 Unicode value support for "--filters"
These need to support Unicode values, like our API does.
Otherwise the shell client does not work for non-ascii names, etc.

Closes-Bug: #1695927

Change-Id: Ib661bb6f8df62084bdf80e7666de5708d13674b7
2017-06-22 10:30:43 +08:00
Jenkins 9ea2e61cc1 Merge "Enabled like filter support in client" 2017-06-21 21:37:14 +00:00
Chaynika Saikia f38c8c5df8 UnboundLocalError on message-list
This bug for 'cinder message-list' has been fixed such that now
if the user gives wrong filters, then the command properly
prints WARNING message saying it is ignoring that filter. Previously,
for wrong filters which were not passed in the correct usage format,
the 'cinder message-list --filters' command was giving UnboundLocalError
exception.

The extract_filters() method was previously assuming that all the
message filters passed were in the format "<filter_name>=<value>",
because of which if the user passed something like:
	'cinder message-list --filters event_id:VOLUME_000002'
an UnboundLocalError was thrown.

The changes are made to the method such that if the user passes a
filter in invalid format, the cinder CLI ignores that filter while
providing the output.

Closes-Bug: #1696556

Change-Id: I545b3f28e545b380842ea003dc38ad70cb413aee
2017-06-21 16:59:28 -04:00
TommyLike 4082478986 Enabled like filter support in client
Updated the help message to advertise we support
filter resource by inexact match since 3.34.

Depends-On: 93b1c1134931749f77c5b3c7bb0f92936b3124e4
Change-Id: I8ea0eb3f0c693c6a2adce33e4d74b2327f124d40
2017-06-21 13:40:52 +00:00
Jenkins 71dfec6743 Merge "Fix cmd options for updating a quota class" 2017-06-21 11:28:49 +00:00
Jenkins 3e1c4cc736 Merge "Remove explicit global_request_id from keystoneauth subclass" 2017-06-20 19:14:42 +00:00
jeremy.zhang 020bb811d1 Fix cmd options for updating a quota class
Actions on updating volume quota class:
[1] Add cmd option 'backups, backup-gigabytes, per-volume-gigabytes'
[2] Add test cases for cmd quota-class-show and quota-class-update
[3] Fix according test cases

Now, cmd option '--consistencygroups' is not yet supported for updating
quota class.

Change-Id: I482ae501f15a103b9e07f4f17d182c853035dca9
2017-06-20 07:56:54 +00:00
Jenkins 794758c37d Merge "Fix simple parameter comment error" 2017-06-16 22:43:41 +00:00
Jenkins 905f6f4a0f Merge "Fix PY2/PY3 specific error in testcases" 2017-06-15 16:39:50 +00:00
TommyLike 1a5910cbd8 Fix PY2/PY3 specific error in testcases
The behaviour of PY3's standard lib 'argparse'
differs from PY2's.

```
cinder extend 2
usage: cinder extend <volume> <new_size>
error: too few arguments
Try 'cinder help extend' for more information.

cinder extend 3
usage: cinder extend <volume> <new_size>
error: the following arguments are required: <new_size>
Try 'cinder help extend' for more information.

```
This could lead to the partly failure of functional testcase,
fix it.

Change-Id: I59e9ae149af0b4294b09a94a52a4bc86a1d90f2b
Closes-Bug: #1697428
2017-06-15 08:51:11 +08:00
Jenkins 728e13442d Merge "Add description for function do_list_extensions in cinderclient" 2017-06-14 23:19:09 +00:00
OpenStack Proposal Bot 597fceb9e5 Updated from global requirements
Change-Id: I218c0b84944ab57092b118cc37eb4e04a72dbc93
2017-06-14 19:57:26 +00:00
Jenkins 22c386fcec Merge "Support list-volume for group show" 2017-06-14 18:45:36 +00:00
Jenkins 5961dbc398 Merge "Fix error in unit testcase" 2017-06-14 17:57:35 +00:00
Sean Dague 57c50f0bd1 Remove explicit global_request_id from keystoneauth subclass
We've embedded global_request_id into keystoneauth1 now, so the
special handling for the subclass is not needed.

Change-Id: Id45afb9130197887518a8732e046f61396308d58
2017-06-14 11:05:34 +00:00
TommyLike c1b03efe0f Fix PY2/PY3 specific error in testcases
Use 'six.text_type' to wrap defined string value.

Change-Id: I229d58595494f59f03538be79de42f2e8007f442
Closes-Bug: #1697401
2017-06-12 20:04:31 +08:00
TommyLike 32ce22c744 Fix error in unit testcase
'ddt.data' decorator is wrongly used in 'test_volumes.py',
correct it.

Change-Id: Ib60c4cad33c071f52391fcfa227ed29482ad9445
2017-06-12 11:19:46 +08:00
Jenkins 44e650a4ed Merge "Updated from global requirements" 2017-06-06 17:33:58 +00:00
wangxiyuan 2a98c3b950 Update visibility help message
Glance now support community and shared for image
visibility as well.

Change-Id: I7ec1ac3d13610d32e7c4d126c8d5e2216b8a86b1
2017-06-05 16:44:57 +08:00
OpenStack Proposal Bot c5e64f1cb5 Updated from global requirements
Change-Id: I8a41e3b223af8c9d538c1b7c430597bdb778838b
2017-06-02 22:06:12 +00:00
Jenkins 0618b9b954 Merge "Do not require network for test_noauth_plugin()" 2017-06-02 11:09:36 +00:00
Jenkins e3743623c3 Merge "Fix attribute errors in os-auth-* settings" 2017-06-01 21:32:06 +00:00
Sean McGinnis 7a0694084f Fix attribute errors in os-auth-* settings
This fixes some wording and formatting issues with the help
text that is printed for CLI arguments.

The duplication of default values for os-auth-system appears
to lead to attribute errors requiring explicitly unsetting
OS_AUTH_TYPE.

Closes-bug: #1695054
Change-Id: I0263ef2fb15744f7e352c7365e7d9e61c1ebc974
2017-06-01 13:43:48 -05:00
Thomas Bechtold 5c5adc81e7 Do not require network for test_noauth_plugin()
While running the unittests, test_noauth_plugin() needs network access
and fails in build environments where no network is available:

keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish \
  connection to http://example.com/v2/admin/volumes/detail: HTTPConnectionPool \
  (host='example.com', port=80): Max retries exceeded with url: /v2/admin/ \
  volumes/detail (Caused by NewConnectionError('<requests.packages.urllib3. \
  connection.HTTPConnection object at 0x7f04c4394290>: Failed to establish a \
  new connection: [Errno -3] Temporary failure in name resolution',))

Prevent the need of network access to be able to run the unittest in such build
envs.

Closes-Bug: #1695009
Change-Id: I123919f29de7cb72a780b5f134a5bfaa404f5b53
2017-06-01 16:45:45 +02:00
Jenkins b9a968f96d Merge "Support generalized resource filter in client" 2017-05-31 14:05:10 +00:00
TommyLike a6affea921 Support generalized resource filter in client
Introduce new command 'list-filters' to retrieve
enabled resource filters.

```
command: cinder list-filters --resource=volume

output:
+----------------+-------------------------------+
| Resource       | Filters                       |
+----------------+-------------------------------+
| volume         | name, status, image_metadata  |
+----------------+-------------------------------+

```

Also Added new option '--filters' to these list commands:
1. list
2. snapshot-list
3. backup-list
4. attachment-list
5. message-list
6. group-list
7. group-snapshot-list
8. get-pools

Change-Id: I062e6227342ea0d940a8333e84014969c33b49df
Partial: blueprint generalized-filtering-for-cinder-list-resource
Depends-On: 04bd22c1eb371805a3ce9f6c8915325bc0da2d36
Depends-On: 7fdc4688fea373afb85d929e649d311568d1855a
2017-05-31 11:32:49 +00:00
Jenkins 4f13909239 Merge "Replace uuid.uuid4().hex with uuidutils.generate_uuid()" 2017-05-25 18:44:03 +00:00
Jenkins 48ac0b9d14 Merge "Add a missing left bracket in help message" 2017-05-25 18:43:57 +00:00
Jenkins 07565abf3e Merge "Cleared type restrictions for metadata option" 2017-05-25 18:43:51 +00:00
Jenkins db51b78a3d Merge "support global_request_id in constructor" 2017-05-25 17:12:29 +00:00
Jenkins 8cd147028f Merge "Eliminate function redefined pylint error" 2017-05-25 10:40:07 +00:00