1666 Commits

Author SHA1 Message Date
Zuul
4bd9000edd Merge "Autonegotiate API version for shell" 2019-09-04 23:41:36 +00:00
Andreas Jaeger
6f761f6bf0 Change PDF file name
The previously choosen PDF file name conflicts in some repos with the
project logos (badge). Thus change https://review.opendev.org/679777
renames the desired PDF name to be doc-PROJECT.pdf to allow using the
badge in PDF files.

Follow this rename.

Change-Id: Ife8461f00ba2206d18ae45837bbc31d211e29841
2019-09-04 06:53:40 +02:00
Zuul
749e435941 Merge "Migrate the functional job to Zuul v3" 2019-09-03 15:37:09 +00:00
Zuul
25ae839e4c Merge "Fix: Quota update successfully executes with no params" 2019-09-01 00:43:29 +00:00
Zuul
67dcd42291 Merge "Add transfer-list --sort argument" 2019-08-30 18:15:41 +00:00
Zuul
e23d9780bf Merge "Add support for building pdf documentation" 2019-08-30 09:18:13 +00:00
Ivan Kolodyazhny
4a3a2c3c9a Add custom CA support for get_server_version
get_server_version fails when self-signed CA cert is used. This patch
adds:
* insecure option to ignore SSL certificate validation
* cacert to add ability to provide a custom SSL certificate

Change-Id: Ib1d34a5a6b595c53473ddd3acb182ab5a39cbba5
Related-Bug: 1744670
2019-08-28 17:28:38 +00:00
Eric Harney
d1b044b82a Autonegotiate API version for shell
If OS_VOLUME_API_VERSION is not set, use the highest
supported by both the client and the server.

If OS_VOLUME_API_VERSION exceeds that supported by the server,
use the highest supported by both the client and the server.
A warning message is printed for the user indicating that this
happened.

(This is similar to the behavior of the manila CLI, and is
mostly code from manilaclient tweaked to work in cinderclient.)

Change-Id: Ie1403eca2a191f62169e60c0cde1622575327387
2019-08-28 11:57:02 -04:00
Walter A. Boring IV
4c031b9294 Add support for building pdf documentation
This patch updates tox.ini to build the pdf version of
cinderclient documentation.

run tox -epdf-docs

Change-Id: If1f43e593db6ff6740b8a88b517c4505e39a3edd
2019-08-27 01:49:02 +00:00
Eric Harney
4e3588f390 Flag safe usage of sha1 w/ #nosec
This tells bandit that this usage of sha1 is not
interesting for security scans.

Change-Id: Ibc0f75d9eef04c919410cafb1a1713d6470f8142
2019-08-26 12:40:50 -04:00
Zuul
fd106c77bf Merge "Add 'is_public' support in '--filters' option" 2019-08-21 11:13:18 +00:00
Luigi Toscano
27e0a32677 Migrate the functional job to Zuul v3
- rename it so that it follows the documented pattern
  (<project>-<specifier>);
- remove the old job, including the hooks, hoping that no
  3rd-party CI uses them.

Change-Id: Ib690c4fa96354dc422576d76c1296b1d5ba3494d
2019-08-08 18:32:24 +02:00
Zuul
c4b50a10b3 Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-08-08 13:43:10 +00:00
Zuul
94e37039ec Merge "Enable warnings-as-error for doc builds" 2019-08-08 13:43:09 +00:00
pengyuesheng
2134e92b66 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I1d923d9922bdaaca381611cba299522c21546736
2019-07-30 16:54:58 +08:00
Andreas Jaeger
1b8d5c20fb Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: I9c13afc35e0c5f129865a9c88e078ad59f4a0c6e
2019-07-25 18:09:52 +02:00
Zuul
a5a0b03571 Merge "Remove the hard-coded version number." 2019-07-19 21:00:05 +00:00
Zuul
3081cdd008 Merge "Switch to the new canonical constraints URL on master" 2019-07-19 21:00:04 +00:00
Zuul
8c2c094115 Merge "Remove promote/reenable replication" 2019-07-10 16:29:36 +00:00
Zuul
5a9292d1a5 Merge "Bump openstackdocstheme to 1.20.0" 2019-07-09 13:22:15 +00:00
翟小君
95a469f986 Bump openstackdocstheme to 1.20.0
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Icbfa21da1e83f745a98822a2f33c4ebc8d11fd0c
2019-07-04 13:53:20 +08:00
cychiang
203e02e769 Remove the hard-coded version number.
Reference the python-novaclient cli doc. And removed the
"cinder version 2.2.0." in python-cinderclient cli doc to
avoid confusing users.

Closes-Bug: #1831636
Change-Id: I67ef7e532ba46932d9f5d2835a611162140b354c
2019-06-26 16:07:04 +08:00
Rajat Dhasmana
57301ecb74 Fix: Quota update successfully executes with no params
Since all params of quota update command are optional (except
project_id), when no quota field is supplied the command shouldn't
execute successfully.
This patch shows an error in this case.

Change-Id: I22e5ef7900631d1394e0ab5b57c4e4444f0d5a50
Closes-Bug: #1778975
2019-06-24 19:41:42 +05:30
Zuul
ba85b79dd6 Merge "Add missed 'Server ID' output in attachment-list" 2019-06-24 12:07:33 +00:00
Corey Bryant
67c9d2a119 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Iffde0ffc4a8f640e58ce3beb5706186ca038eede
Story: #2005924
Task: #34200
2019-06-22 05:59:03 -05:00
chenke
86b6ad5ca1 Switch to the new canonical constraints URL on master
Reference:
1. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ifdc1687f7d2cef58f3a6d1e48642e2dcefee43e6
2019-06-20 21:40:09 +08:00
Minmin Ren
5cd22bb18a Remove promote/reenable replication
The replication 1.0 API os-promote-replica and os-reenable-replica
were removed[1], then remove useless code from
cinderclient.

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

Change-Id: Icf98f294c089942e11607786e932abc959f77b3b
2019-06-19 03:16:42 +00:00
pengyuesheng
938c00a972 Use openstack-python3-train-jobs for python3 test runtime
Depends-On:https://review.opendev.org/#/c/641878/

Change-Id: I96b33a83c10ad205c984a1734f263c42538f2ddc
2019-06-14 11:21:08 +08:00
Minmin Ren
03f228c11e Add missed 'Server ID' output in attachment-list
'server_id' is not Attachment attribute, should be
set by 'instance' attribute.

v3/attachments respond body:

{"attachments":
   [{"status": "attached",
     "instance": INSTANCE_UUID,
     "id": ATTACHMENT_UUID,
     "volume_id": VOLUME_UUID,
    },
    ...
    ]
}

Change-Id: Ica5d278cb7455befe1db4be0ab65114fd606ea0a
2019-06-04 10:11:02 +00:00
Zuul
a9d9d34778 Merge "Add bash completion for groups" 2019-06-03 17:27:43 +00:00
Zuul
3a4221236f Merge "Drop use of git.openstack.org" 2019-05-30 16:27:49 +00:00
Zuul
0ebaddd145 Merge "Update sphinx dependency" 2019-05-30 15:56:10 +00:00
Zuul
ee74e8f2e8 Merge "Fix shell upload-to-image with no volume type" 2019-05-23 07:08:51 +00:00
pengyuesheng
94d8e77325 Update sphinx dependency
Change-Id: I798f826c1da97b20ccf9decd177754a7a0b055fa
2019-05-22 13:57:59 +08:00
Sean McGinnis
8b1ed34ec1 Add transfer-list --sort argument
Change Idb04f783b2287b2b45d626131648b0005a232fbe to the cinder service
introduced pagination and the ability to sort results for listing volume
transfers. This adds the sort ability to the cinder client.

The service side uses the sort_key and sort_dir that we've deprecated
long ago, but was unfortunately missed when merging this support. Since
we have been giving deprecation warnings for using those for other
operations, this adds support for --sort that internally will convert to
the API's expected sort_key and sort_dir.

Change-Id: I137436c76852cbb974eee87e49712c698cbf081b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-05-04 09:52:51 -05:00
Zuul
083391ba0d Merge "Correct discover_version response" 2019-05-04 02:11:07 +00:00
Zuul
9c6941accd Merge "Remove bash-completion calls from base.py" 2019-04-26 03:16:10 +00:00
Brian Rosmaita
9976975342 Correct discover_version response
The discover_version function was ignoring the max microversion
supported by the client.  This patch corrects its behavior to return
the most recent API version, if any, supported by both the client
and the server it is communicating with.

Closes-bug: #1826286
Change-Id: If22b72452065080b24cb1b899c5a5a88b809e986
2019-04-25 08:13:18 -04:00
Zuul
8d6a89f502 Merge "Handle auth redirects" 2019-04-22 19:09:56 +00:00
Zuul
415dc770f4 Merge "Remove some old info from README" 2019-04-22 18:56:46 +00:00
Zuul
f07c2526a7 Merge "Raise API max version for Stein updates" 2019-04-22 18:56:45 +00:00
Zuul
8dc5360a0c Merge "Add support for backup user ID" 2019-04-22 18:56:45 +00:00
Zuul
5f3c173605 Merge "Raise API max version for Rocky updates" 2019-04-22 18:40:35 +00:00
Eric Harney
c78cbb0df3 Remove some old info from README
We don't really need this here.

Change-Id: I358550eef1c3ac32451c22b72e44e906cf2bc5dc
2019-04-22 11:28:16 -04:00
OpenDev Sysadmins
2f11c3d94e OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:40:08 +00:00
Sean McGinnis
f8cc121df0
Drop 'endpoints' and 'credentials' commands
We are past the deprecation period for these commands and they should
now be removed.

Change-Id: I37f0dc539da5d43f629ea726bb603fa995c1fe6f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-18 14:33:55 -05:00
Sean McGinnis
2189e5702b Drop support for Cinder v1 API
This drops compatibility with Cinder services with the V1 API.

Change-Id: Ic7c6bd05a3991c3afce3dec80b29501932c5aac9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-18 10:33:06 -05:00
Sean McGinnis
cd64f0b327 Add release note for major version bump
This adds a prelude section for a release note to list the major version
changes included in 5.0 and to act as a gate to make sure all changes
requiring the major bump are approved before merging some of them.

Change-Id: I60cc5b62bdad162f8008b60b60e06f793f6b4bb1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-18 10:32:15 -05:00
Sean McGinnis
ffccfc0eca Handle auth redirects
Our checking for keystone v2 and v3 was causing v2 tests to go down the
v1 code path. Fixing this surfaced a couple of long standing issues with
our v2/v3 handling of redirects and getting auth info.

This fixes our version identification, fixes extracting redirect
location for response headers, and returning the auth_url to calling
code.

Change-Id: I939ff027bf43e513e338bff1e99ca41fa52637b6
Closes-bug: #1825372
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-18 10:31:58 -05:00
Sean McGinnis
34ff180981
Enable warnings-as-error for doc builds
Change-Id: I9488156cbf606731d8ce3f16857da7aeca2e85e6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-17 10:44:19 -05:00