summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Check if stdin has isatty attributestable/xenaBenedikt Loeffler2022-07-082-3/+3
| | | | | | | | | When the stdin is closed, it has no isatty atrribute which leads to a KeyError. Closes-Bug: #1980890 Change-Id: If9a3bf68b8dfd953b346697241166578d18bb563 (cherry picked from commit 8df9328a60045edae36dc64cee1f2cf3cd4a09fa) (cherry picked from commit 2ad5f0a6b07c25cc8bc371a92baea3d1c52161ad)
* Correct releasenote path for member-get commandRajat Dhasmana2021-09-241-0/+1
| | | | | | | | | This patch moves the releasenote of member-get command to correct path. Closes-Bug: #1944798 Change-Id: Ifa76fc993b0ff47131401ba233e77001cd74107c (cherry picked from commit 5d714bed0b653b42b49b2c571b798a5e9b738539)
* Update TOX_CONSTRAINTS_FILE for stable/xenaOpenStack Release Bot2021-09-101-2/+2
| | | | | | | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/xena branch, tests will continue to use the upper-constraints list on master. Change-Id: I6c9f8c4da11e320b06c74c95885b2e1c4f691898
* Update .gitreview for stable/xenaOpenStack Release Bot2021-09-101-0/+1
| | | | Change-Id: I4d881429fbc362242cef1ad5a5d5073d8f68c68c
* Merge "setup.cfg: Replace dashes with underscores"xena-em3.5.0Zuul2021-08-251-4/+4
|\
| * setup.cfg: Replace dashes with underscoresXinxinShen2021-05-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setuptools v54.1.0 introduces a warning that the use of dash-separated options in 'setup.cfg' will not be supported in a future version [1]. Get ahead of the issue by replacing the dashes with underscores. Without this, we see 'UserWarning' messages like the following on new enough versions of setuptools: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Change-Id: I5f8ed2d6b1ca8c26d7fafd280b135554ed597e99
* | Fix undesirable raw Python errorMridula Joshi2021-08-033-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Using the glanceclient without a subcommand while passing an optional argument triggers the raw Python error `ERROR: 'Namespace' object has no attribute 'func'`. This bug can be reproduced by issuing the command `glance --os-image-api-version 2`. Added a default value to `func` as placeholder so that a help message is shown instead of the Python error. Closes-Bug: #1903727 Change-Id: Ie4288262e408192310cbbc240bd1779b265a64fd
* | Add member-get commandMridula Joshi2021-08-025-1/+46
| | | | | | | | | | | | | | | | | | It is observed that python-glanceclient was missing support for GET /v2/image/{image_id}/member/{member_id} API. This patch adds new command `member-get` to support this missing operation. Closes-Bug: #1938154 Change-Id: I3709f6a39535aa45bee70f468f015ac60a1375a8
* | Clean up extra spacesjayonlau2021-07-071-1/+1
| | | | | | | | | | | | Clean up extra spaces, although these errors are not important, they affect the code specification. Change-Id: I5cf3c668e89a11c7906e0b0aeeb85ebcef3c1352
* | Uncap PrettyTable3.4.0Wander Way2021-05-171-1/+1
|/ | | | | | | | This is now maintained as a Jazzband project [1]. [1] https://github.com/jazzband/prettytable Change-Id: Ib85f2fa95b95e95ac5711b1dcd626a9a84ac8b0b
* Add Python3 xena unit testsOpenStack Release Bot2021-03-111-1/+1
| | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for xena. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Ia7ed638cda0d3f1e0e96fec9bb73eb4315ed810b
* Update master for stable/wallabyOpenStack Release Bot2021-03-112-0/+7
| | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/wallaby. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/wallaby. Sem-Ver: feature Change-Id: I7562fd0e795c2dab0f999729b467b05b0ad0875d
* Merge "Get tasks associated with image"wallaby-em3.3.0Zuul2021-03-057-0/+159
|\
| * Get tasks associated with imageAbhishek Kekane2021-03-027-0/+159
| | | | | | | | | | | | | | Add support to get tasks associated with specific image. bp: messages-api Change-Id: Ia505cf6f47ca6c628e195be3ca5231d22d53040d
* | Merge "Add Python3 wallaby unit tests"Zuul2021-03-031-1/+1
|\ \ | |/ |/|
| * Add Python3 wallaby unit testsOpenStack Release Bot2020-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for wallaby. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I11d4eb88594608fdf21e1219b4aafcef606bf6f1
* | bump mccabe in lc to unblock the gateErno Kuvaja2020-12-181-1/+1
|/ | | | Change-Id: Iba0929c3ab40290ffc99b65d985174bbf1a8cf65
* Update master for stable/victoriaOpenStack Release Bot2020-09-092-0/+7
| | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/victoria. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/victoria. Change-Id: Icbc3629218546143246c133ccaffaef7bfe0c243 Sem-Ver: feature
* Merge "drop mock from lower-constraints"victoria-em3.2.2Zuul2020-09-021-1/+0
|\
| * drop mock from lower-constraintsHervé Beraud2020-06-091-1/+0
| | | | | | | | | | | | | | | | | | | | The mock third party library was needed for mock support in py2 runtimes. Since we now only support py36 and later, we don't need it in lower-constraints. These changes will help us to drop `mock` from openstack/requirements Change-Id: I668a2f65431e8870268e067e1c0acd4d94a65c95
* | Merge "Remove F403, F812 and F821 from the ignorelist in tox.ini"Zuul2020-09-021-1/+1
|\ \
| * | Remove F403, F812 and F821 from the ignorelist in tox.iniCyril Roelandt2020-07-271-1/+1
| | | | | | | | | | | | | | | | | | | | | They are not needed since no such errors are triggered when running flake8. Change-Id: If6ba0627ca680167378543b4c38135aa2bd6a730
* | | Merge "Fix hacking min version to 3.0.1"Zuul2020-08-211-1/+1
|\ \ \
| * | | Fix hacking min version to 3.0.1Ghanshyam Mann2020-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | flake8 new release 3.8.0 added new checks and gate pep8 job start failing. hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new version with new checks. Though it is fixed in latest hacking but 2.0 and 3.0 has cap for flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also break the pep8 job if new check are added. To avoid similar gate break in future, we need to bump the hacking min version. - http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html Change-Id: I88e1652fa2f99d475efd7489dcb3c3c1bb06f015
* | | | [goal] Migrate testing to ubuntu focalGhanshyam Mann2020-08-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per victoria cycle testing runtime and community goal[1] we need to migrate upstream CI/CD to Ubuntu Focal(20.04). Fixing: - bug#1886298 Bump the lower constraints for required deps which added python3.8 support in their later version. Story: #2007865 Task: #40200 Closes-Bug: #1886298 [1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.h> Change-Id: I6f0dc11d4eb7a75d29da3eb5071b156bbe46ad01
* | | | Update test certificates to use strong signingJames Page2020-08-073-145/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modern OpenSSL (and specifically on Ubuntu) will reject certificates signed using the sha1 algorithm. Refresh test CA and associated certificates using sha256. Change-Id: Ie22a4630eb0f5993a909efed27088321c1865ca8
* | | | Fixes "stores" property added to the image3.2.1Erno Kuvaja2020-07-303-0/+59
| |/ / |/| | | | | | | | | | | | | | | | | | | | "stores" property gets added to the image when `glance image-create-via-import` is called with --stores Change-Id: I514e6e3ac2f3a1f56fb7883ed403a04b1e7f13b0 Closes-Bug: #1889666
* | | Merge "Do not use the six library."Zuul2020-07-1717-147/+57
|\ \ \
| * | | Do not use the six library.Cyril Roelandt2020-06-2317-147/+57
| | | | | | | | | | | | | | | | Change-Id: I3dbfcfa0f5f590a41ed549afd44537d8ed41433a
* | | | Merge "Do not use the six library in the tests."Zuul2020-07-169-105/+76
|\ \ \ \ | |/ / /
| * | | Do not use the six library in the tests.Cyril Roelandt2020-06-159-105/+76
| | |/ | |/| | | | | | | Change-Id: Ic8a2a736a733e0151ca82f19bfde428dc04cf255
* | | Merge "Pass Global Request ID on with session client"Zuul2020-07-163-1/+20
|\ \ \
| * | | Pass Global Request ID on with session clientErno Kuvaja2020-07-133-1/+20
| |/ / | | | | | | | | | | | | Closes-bug: #1886650 Change-Id: I3a08c1beb398ba9f2556b6779c925f679bdc2c49
* | | Merge "Stop to use the __future__ module."Zuul2020-07-133-6/+0
|\ \ \ | |/ / |/| |
| * | Stop to use the __future__ module.Hervé Beraud2020-06-023-6/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The __future__ module [1] was used in this context to ensure compatibility between python 2 and python 3. We previously dropped the support of python 2.7 [2] and now we only support python 3 so we don't need to continue to use this module and the imports listed below. Imports commonly used and their related PEPs: - `division` is related to PEP 238 [3] - `print_function` is related to PEP 3105 [4] - `unicode_literals` is related to PEP 3112 [5] - `with_statement` is related to PEP 343 [6] - `absolute_import` is related to PEP 328 [7] [1] https://docs.python.org/3/library/__future__.html [2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html [3] https://www.python.org/dev/peps/pep-0238 [4] https://www.python.org/dev/peps/pep-3105 [5] https://www.python.org/dev/peps/pep-3112 [6] https://www.python.org/dev/peps/pep-0343 [7] https://www.python.org/dev/peps/pep-0328 Change-Id: I732a57361319687ca0a64693f0e60bc0d8f5b3d2
* | Switch to newer openstackdocstheme and reno versions3.2.0Andreas Jaeger2020-05-224-23/+14
|/ | | | | | | | | | | | | | | | | | | | | | | | | | Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using these versions will allow especially: * Linking from HTML to PDF document * Allow parallel building of documents * Fix some rendering problems Update Sphinx version as well. Remove docs requirements from lower-constraints, they are not needed during install or test but only for docs building. openstackdocstheme renames some variables, so follow the renames before the next release removes them. A couple of variables are also not needed anymore, remove them. Change pygments_style to 'native' since old theme version always used 'native' and the theme now respects the setting and using 'sphinx' can lead to some strange rendering. See also http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html Change-Id: Ie4aec288c74b9bd8d8d117f4bc2e0282cea4db90
* Fail gracefully when MD5 is unavailableBrian Rosmaita2020-05-046-3/+45
| | | | | | | | | The glanceclient currently assumes that MD5 will always be available. This is not the case, however, in a FIPS-compliant environment. This patch enables the glanceclient to fail gracefully in such a case. Closes-bug: #1871675 Change-Id: Ibd89989e06cc5be7da71f5f21561d73b5abc4104
* Merge "Bump default tox env from py37 to py38"Zuul2020-05-011-1/+1
|\
| * Bump default tox env from py37 to py38Sean McGinnis2020-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3.8 is now our highest level supported python runtime. This updates the default tox target environments to swap out py37 for py38 to make sure local development testing is covering this version. This does not impact zuul jobs in any way, nor prevent local tests against py37. It just changes the default if none is explicitly provided. Change-Id: Id27c5ad8a9d4a00f37d4a3ff7f8a71780df50fb0 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Add py38 package metadataSean McGinnis2020-04-241-0/+1
|/ | | | | | | | | Now that we are running the Victoria tests that include a voting py38, we can now add the Python 3.8 metadata to the package information to reflect that support. Change-Id: Ifbadd0cab7363e604c11b94df3eb466d5e9dfe95 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Use unittest.mock instead of third party mockSean McGinnis2020-04-189-9/+10
| | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I446ee142c7a17446372c910f7f2a36d55df18e04 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Merge "Fix SyntaxWarning with Python 3.8"Zuul2020-04-140-0/+0
|\
| * Fix SyntaxWarning with Python 3.8James Page2020-03-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Under Python 3.8, the following SyntaxWarning is logged on every glanceclient invocation: SyntaxWarning: "is not" with a literal. Did you mean "!="? if kwargs.get('cacert', None) is not '': Make use of '!=' rather than 'is not' to avoid this warning. Change-Id: I11ed568932ec5ea0ffee629d6fd434433f262b67
* | Add Python3 victoria unit testsSean McGinnis2020-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for victoria. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I644e0dcb7c82f7eb3d112f03c021aff8db904aa5 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Pass --all-stores, --allow-failure as bool to APIAbhishek Kekane2020-04-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | Newly added command line options --all-stores, --allow-failure are boolean but we are passing it as a string to glance API. This will cause problem if those parameters are not converted to boolean at API side. Passing these parameters as boolean instead of string to API. Change-Id: I8d4eab9241fc9bb24bc40b47bf18d63c86a97d77 Closes-Bug: #1871674
* | Update master for stable/ussuriOpenStack Release Bot2020-04-072-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/ussuri. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/ussuri. Change-Id: Ic9dab2380f698e30c5cb1327c5f22bdd7489df51 Sem-Ver: feature
* | Rename releasenotes to reflect correct version3.1.0Erno Kuvaja2020-04-071-0/+0
| | | | | | | | | | | | | | As python-glanceclient 3.0.0 was released earlier, this release will be version 3.1.0 Change-Id: I18f4d4e9d61b235ea7896ea97c1b480249d474e2
* | Merge "Add release note for glanceclient 3.0.0"Zuul2020-04-071-0/+25
|\ \
| * | Add release note for glanceclient 3.0.0Abhishek Kekane2020-04-061-0/+25
| | | | | | | | | | | | Change-Id: I4556df86ab501362bdfae2d1457ba14dade52f22
* | | Cleanup py27 supportAndreas Jaeger2020-04-043-11/+3
|/ / | | | | | | | | | | | | | | | | Make a few cleanups: - Remove python 2.7 stanza from setup.py - Update classifiers - Update requirements, no need for python_version anymore Change-Id: I6b6dfb0959973abf0c2e8325006025db2a5d85d0