1632 Commits

Author SHA1 Message Date
Zuul
d240091c32 Merge "Update hacking version" 2019-12-12 00:59:06 +00:00
jacky06
e2436b310f Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I1ae708f0753249226ceb47610a1a4d0b558c1d0e
2019-10-30 11:00:12 -04:00
Eric Harney
7f282a5ea4 Hide cinder CLI errors on bash-completion
On my environment, the cinderclient CLI reports:
/usr/lib/python2.7/site-packages/requests/__init__.py:91:
RequestsDependencyWarning: urllib3 (1.25.6) or
chardet (2.2.1) doesn't match a supported version!

When running any command.

This is fairly irritating to have pop up in the
context of cinder bash-completion calls, i.e.,
when you hit tab after "cinder" at the shell.

Just hide errors there rather than pollute the
screen with them.

Change-Id: I40019dcc845015de8cfe8165656829cdaa446666
2019-10-18 12:08:00 -04:00
0462563263 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: Ibe8494e386365c15cb8473c6dbf992b1f72888a8
Sem-Ver: feature
2019-09-12 15:13:51 +00:00
Zuul
a63d4d651a Merge "Drop support for --sort_key and --sort_dir" 2019-09-11 20:29:58 +00:00
Zuul
d83998f6f0 Merge "Drop support for --allow-multiattach" 2019-09-11 15:59:44 +00:00
Zuul
bafd84b9fa Merge "Optional filters parameters should be passed only once" 2019-09-11 14:16:09 +00:00
Sean McGinnis
246040a732 Drop support for --sort_key and --sort_dir
These arguments were deprecated in the kilo release in favor of a
combined --sort argument. This drops support for the deprecated
arguments.

Change-Id: If8f8ac44cc81f553009a15ca67257e86cb925b6f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-09-11 09:38:34 -04:00
Sean McGinnis
3c1b417959 Drop support for --allow-multiattach
The ability to enable multiattach on the command line was deprecated in
Queens with the full implementation of multiattach enabling it through
volume type extra specs. This removes the command line arg and handling
for specifying it with volume creation.

Change-Id: Ifc0c874657f959266050cd1a7a40e6ecccc8c114
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-09-11 08:06:43 -04:00
Sean McGinnis
61fec71adb Update docs to refer to PROJECT instead of TENANT
Updates several references for things like OS_TENANT_NAME and
--os-tenant-name.

Change-Id: If71710740b4d4573a1b3f515a5762a4f82bc727d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-09-10 15:56:27 -05:00
Sean McGinnis
dce8a8ed10 Drop support for OS_TENANT_NAME and OS_TENANT_ID
These have been deprecated for a very long time now. Switch to only
support the current OS_PROJECT_NAME and OS_PROJECT_ID.

Change-Id: I2fb78768b4308a3aaf12764edadb58d4a307adaa
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-09-10 15:56:27 -05:00
Zuul
e98585c03d Merge "Drop 'endpoints' and 'credentials' commands" 2019-09-08 05:28:44 +00:00
Zuul
5b811d96d0 Merge "Drop support for Cinder v1 API" 2019-09-08 05:27:59 +00:00
Zuul
e172de897c Merge "Add release note for major version bump" 2019-09-08 03:53:28 +00:00
Zuul
72c35cb13c Merge "Add custom CA support for get_server_version" 2019-09-05 14:14:23 +00:00
whoami-rajat
624b444226 Optional filters parameters should be passed only once
This patch does the following :

1) Errors out if similar type of filters args are passed
Eg :
cinder list --name abc --name xyz
cinder list --name abc --filters name=xyz

2) Allows multiple filter parameters of different type
cinder list --filters name=abc --filters size=1

Change-Id: I2f8662555f830b0821147324849d04e7a29d0580
2019-09-05 18:27:52 +05:30
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