1666 Commits

Author SHA1 Message Date
wanghao
83864a25e2 unable to create group from src in cinderclient
According the api schema of cinder, create_group_from_src
should only specify one of arguments from [group_snapshot_id, source_group_id].
Now cinderclient specified them both even if one of them is None.

This patch fix this issue to just pass one argument.

Change-Id: Idef51ab9a1452dd5eb3be4d4b6dca095a777d611
Closes-Bug: #1777555
2018-06-20 09:09:54 +08:00
junboli
9aa1c9a485 Use api version 3 for functional test
switch to use OS_VOLUME_API_VERSION = 3 to run
functional tests.

Closes-bug: #1775354
Co-Authored-By: liuyamin <liuyamin@fiberhome.com>
Change-Id: If6c4291aa7d8e85a4f8c1d5665a0e4a72aa1f1d1
2018-06-19 09:01:42 +08:00
Zuul
36275be1c1 Merge "Fix failing functional test cases" 2018-06-18 21:36:19 +00:00
Zuul
6329391131 Merge "Unreadable output of upload-to-image." 2018-06-15 17:36:09 +00:00
Pooja Jadhav
5bd8f71505 Fix failing functional test cases
After applying schema validation to volume actions
APIs[1], error messages are formatted as per the
standards. So the tests are failing because of error
messages.

This patch fixes failed functional tests by correcting
error messages.

[1]https://review.openstack.org/#/c/559042/

Change-Id: Id05bf637d77ab401fc0aec5be09eee423bf1a223
2018-06-13 15:58:46 +05:30
Chen
570bc0886e Remove PyPI downloads
According to official site,
https://packaging.python.org/guides/analyzing-pypi-package-downloads/
PyPI package download statistics is no longer maintained and thus
should be removed.

Change-Id: I2a2b3970abb9c66b5a1db70248726a0fc6fb37a4
2018-06-07 22:38:41 +08:00
Zuul
35b99baf6e Merge "update the value of OS_AUTH_URL and OS_VOLUME_API_VERSION" 2018-06-02 20:38:34 +00:00
deepak_mourya
a5d5ab5a21 Unreadable output of upload-to-image.
The output of upload-to-image is not readable due to
volume type is printed in output as a whole.
Printing volume type name only cleans up the output.

Change-Id: Ia588cf7ccc0873a8cf956c551afcccf4b6ddaa39
Closes-Bug: #1557486
2018-05-28 10:02:19 +05:30
Zuul
4856c7fc6e Merge "Add the parameter service-id for service cleanup command" 2018-05-28 03:38:58 +00:00
liuyamin
eafde59a3e Add the parameter service-id for service cleanup command
There isn't service_id param in cinderclient. We have this param
in cinder, so add this param in the cinderclient.

Change-Id: I579741595f91802bcf117029889567f234b5b14c
Closes-bug: #1771721
2018-05-25 03:26:58 +00:00
wanghao
7283dedb13 Remove useless args in create_group_from_src
Remove status, project_id
and user_id args from create_group_from_src.

Those args will cause error when using cinderclient since
schema validation in Cinder side.

Change-Id: Iba9a45625f9e6423e8e582425605ca184238cde9
Closes-Bug: #1772375
2018-05-22 09:44:26 +08:00
unknown
4a9e9208ad update the value of OS_AUTH_URL and OS_VOLUME_API_VERSION
In the file doc/source/cli/index.rst, doc/source/user/cinder.rst,
doc/source/user/shell.rst, update OS_AUTH_URL and OS_VOLUME_API_VERSION.

Change-Id: I543bb2fedf3a1326bf1a46804f0d026ad8e21680
2018-05-21 10:24:35 +08:00
Zuul
3f6aa2a648 Merge "Support availability-zone in volume type" 2018-05-20 06:05:13 +00:00
liuyamin
a45faf0f47 Follow the new PTI for document build
This review already follows the new PTI
https://review.openstack.org/#/c/528997/

but we also should remove [build_sphinx] section as described
in: http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: I6cf9f2fb59502acb4166faa5c3946dc24eeceee0
2018-05-11 11:09:32 +08:00
Zuul
7ff65d5678 Merge "Allow --help for specific commands" 2018-05-03 09:58:55 +00:00
TommyLike
5a1513244c Support availability-zone in volume type
Since 3.52, new option '--filters' has been
added to 'type-list' command, and it's only
valid for administrator.

Change-Id: I140f6d61a2747d4fcaabfbccea864dcc7eb841d1
Depends-On: I4e6aa7af707bd063e7edf2b0bf28e3071ad5c67a
Partial-Implements: bp support-az-in-volumetype
2018-05-02 10:25:27 +08:00
Tovin Seven
843b04fcdd Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]

[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>

Change-Id: I7f467a12ec4cf5d3c9e3f74ac0ade09f67867c20
2018-04-20 17:17:48 +07:00
Eric Harney
3142e9f9b3 Allow --help for specific commands
This makes calls such as:
     $ cinder list --help

work as expected, equivalent to:
     $ cinder help list

rather than just printing the full help message.

Change-Id: I038eeeea554f0bb5dd170f503eaec570441520b3
2018-04-10 15:37:22 -04:00
Doug Hellmann
823cbb6e6e add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: Ib36375525dd11d62d9f5566c714e76876892d9d7
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-07 21:34:03 -04:00
Zuul
ca115b1d60 Merge "Update python usage docs" 2018-04-04 01:21:33 +00:00
Zuul
bd712fa0ca Merge "fix a typo in documentation" 2018-04-02 16:24:49 +00:00
Zuul
cba7305ac3 Merge "Correct errors in snapshot-manageable-list help text" 2018-03-27 08:24:42 +00:00
Zuul
cd87e5d4b4 Merge "Support cross AZ backups" 2018-03-27 08:10:24 +00:00
OpenStack Proposal Bot
b2dbf457c2 Updated from global requirements
Change-Id: I8f497677a5e705c7261b3e00f5c28648c74608b8
2018-03-23 01:44:23 +00:00
melissaml
953bd8cb89 fix a typo in documentation
Change-Id: Icb6c9808829c6088f6ae2408718bcb03ddc7b53a
2018-03-23 08:09:10 +08:00
j-griffith
d6c6011fc8 Update python usage docs
The keystoneauth1 get_plugin_loader method requires that a
OS_USER_DOMAIN be specified.  Our docs don't include that
detail.

This change adds the extra needed field.  There's also some
problems currently with loading the client directly as it's
currently documented, which appears to be a bug in the client
code itself.

Change-Id: Idacbb47f9aae1e461379eec4a5e224b0157a8dc4
Partial-Bug: #1758104
2018-03-22 10:50:51 -06:00
Sean McGinnis
3e78fc4260 Correct errors in snapshot-manageable-list help text
Fixes some copy paste issues with the help text for listing
snapshots. Also minor grammar fixes.

Closes-bug: #1756358
Change-Id: Idee5e8400d8e7d55e9f9232df55b0dfec3e36c3b
2018-03-20 09:33:25 -05:00
Zuul
6996474656 Merge "Add api_version wraps for group snapshot list in v3/shell.py" 2018-03-19 17:05:45 +00:00
OpenStack Proposal Bot
3b3dc95c1c Updated from global requirements
Change-Id: I24bc426d17cd29ba4c162de3fbdda6248214b7be
2018-03-15 07:55:02 +00:00
Sean McGinnis
df68d53fc5 Add bindep.txt for system packages
Test jobs will look for a bindep.txt file in the repo to determine
which system packages need to be installed. If it does not find a
local one in the repo it will fall back to an OpenStack-wide bindep
that has many packages not needed for most projects. This adds a
limited list needed for this repo.

For more details, see:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101590.html

Change-Id: Ic7e00b6a34c0e46c678e5c10ecf0e76faa9913c8
2018-03-12 09:29:39 -05:00
jeremy.zhang
0fb448cc6d Add api_version wraps for group snapshot list in v3/shell.py
The API 'do_group_snapshot_list' in v3/shell.py misses api_version wraps,
and the cmd 'cinder group-snapshot-list' can be used even not specifing
the param 'os-volume-api-version'. This patch just to fix it.

Change-Id: I6a46e587b1aab692fe6b81b46fa3d95ab66c0625
2018-03-12 01:26:25 +00:00
Yuanbin.Chen
c89272335a Update unit_test.rst doc unit test py34 to py35
CinderClient unit test use py27 or py35, Look:
https://github.com/openstack/python-cinderclient/blob/master/tox.ini#L3

Change-Id: Ibc3ada82337c6393ab86b3159fa1b4f032495879
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-03-05 13:45:57 +08:00
Zuul
6b40cae36d Merge "Remove unit tests about run_test" 2018-03-01 21:47:41 +00:00
Yuanbin.Chen
0ddf6c6b76 Remove unit tests about run_test
This patch remove unit tests about flags, beacuse the flags
about run_test.sh has delete.
About run_test.sh delete, look this patch.
https://review.openstack.org/#/c/502120/

Change-Id: Ib0e04ed6d48ec5c52cc62abf59174c313d843792
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-02-24 13:10:50 +08:00
Matt Riedemann
98822d1fb4 Remove unused cinderclient/apiclient/client.py module
This old module was a carry over from the oslo incubator days
and is no longer used.

Change-Id: I44982d2581e90b781c78f3d2421cd1dcd8e590fd
Related-Bug: #1685678
Related-Bug: #1640269
2018-02-20 10:16:16 -05:00
Zuul
f7c6a10923 Merge "Update help text for encryption provider" 2018-02-20 11:19:49 +00:00
OpenStack Proposal Bot
42c781c66b Updated from global requirements
Change-Id: I195d679e2da051ac0f88f71c4b7fa9e24c65ab2a
2018-02-17 10:10:48 +00:00
Brianna Poulos
5e5f6a2d8a Update help text for encryption provider
The volume encryption provider no longer uses class names.
Instead, 'luks' and 'plain' are used. This patch updates
the help text for the volume encryption provider to use
the new encryption provider format constants.

Change-Id: I6072e18f8c1945082f421a3bf725a874565d6f80
2018-02-16 16:06:19 -05:00
Zuul
eb2f4d3ae8 Merge "Zuul: Remove project name" 2018-02-13 18:05:46 +00:00
James E. Blair
9a95d15762 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: If9bef5ae884bfefadc06752b3ca140ac2e91399d
2018-02-13 07:10:00 -08:00
Zuul
c2f653965e Merge "Updated from global requirements" 2018-02-12 22:35:04 +00:00
Gorka Eguileor
2c774cc015 Support cross AZ backups
Add support for microversion 3.51 that allows us to specify the
Availability Zone of the backup service that should create the backup.

New optional parameter available for "backup-create" when using
microversion 3.51 is "--availability-zone".

Depends-On: I595932276088d25abd464025c99dce33a2cc502b
Change-Id: Ia4bab5fcb95f6a8d1adb99c5d7dc1b3f7546c6f6
2018-02-12 15:03:20 +01:00
Zuul
5d27303212 Merge "Zuul: Remove project name" 2018-02-02 05:40:12 +00:00
James E. Blair
ea3c9b392d Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I45531a8827d1fc8d624c1e7a73e1d7df0ca2a0a2
2018-02-01 01:56:26 -08:00
Zuul
c46785561b Merge "Add api_version wraps for some v3 volume APIs" 2018-01-31 07:00:25 +00:00
jeremy.zhang
e2618ebb24 Add api_version wraps for some v3 volume APIs
This patch is mainly to add api_version wraps for some v3 volume APIs.

Change-Id: Iea8b9b68930548156749da3f98629e3602ffca83
2018-01-25 21:56:28 +08:00
jeremy.zhang
18f7dff64d Fix for v3 volume unit tests
This patch is mainly to specify the APIversion for FakeClient used in
different volume resources' unit tests.

Change-Id: I18eb9b57434061e95c909907e6ba263b9091a446
2018-01-25 21:00:08 +08:00
d00b068170 Update reno for stable/queens
Change-Id: I746432574176ebb74ef2f864526f3e76cea8da83
2018-01-24 22:02:22 +00:00
OpenStack Proposal Bot
06df11e3ac Updated from global requirements
Change-Id: Ie7534a355e2b884707b9326243efa10c866bd97a
2018-01-24 01:27:56 +00:00
Zuul
1de605cdd3 Merge "Add snapshot_id param note for backup-create" 2018-01-23 22:58:59 +00:00