Commit Graph

1415 Commits

Author SHA1 Message Date
OpenStack Release Bot 2517e01c7c Update master for stable/wallaby
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
2021-03-11 10:24:52 +00:00
Zuul f802c71083 Merge "Get tasks associated with image" 2021-03-05 20:15:22 +00:00
Zuul db512d3198 Merge "Add Python3 wallaby unit tests" 2021-03-03 09:37:37 +00:00
Abhishek Kekane e0a35a1150 Get tasks associated with image
Add support to get tasks associated with specific image.
bp: messages-api

Change-Id: Ia505cf6f47ca6c628e195be3ca5231d22d53040d
2021-03-02 10:02:14 -08:00
Erno Kuvaja e8f427e108 bump mccabe in lc to unblock the gate
Change-Id: Iba0929c3ab40290ffc99b65d985174bbf1a8cf65
2020-12-18 10:14:30 +00:00
OpenStack Release Bot 23d389f15a Add Python3 wallaby unit tests
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
2020-09-09 15:57:37 +00:00
OpenStack Release Bot 4a80c36f9c Update master for stable/victoria
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
2020-09-09 15:57:35 +00:00
Zuul 8a63928e2e Merge "drop mock from lower-constraints" 2020-09-02 15:53:07 +00:00
Zuul 4f74293df1 Merge "Remove F403, F812 and F821 from the ignorelist in tox.ini" 2020-09-02 15:53:06 +00:00
Zuul cb632229bc Merge "Fix hacking min version to 3.0.1" 2020-08-21 07:04:48 +00:00
Ghanshyam Mann ff70a0df13 [goal] Migrate testing to ubuntu focal
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
2020-08-07 22:37:40 +00:00
James Page 5aca99d653 Update test certificates to use strong signing
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
2020-08-07 21:31:07 +00:00
Erno Kuvaja 77eab17cf9 Fixes "stores" property added to the image
"stores" property gets added to the image when
`glance image-create-via-import` is called with --stores

Change-Id: I514e6e3ac2f3a1f56fb7883ed403a04b1e7f13b0
Closes-Bug: #1889666
2020-07-30 18:39:31 +01:00
Cyril Roelandt 00a6eb5f39 Remove F403, F812 and F821 from the ignorelist in tox.ini
They are not needed since no such errors are triggered when running
flake8.

Change-Id: If6ba0627ca680167378543b4c38135aa2bd6a730
2020-07-27 20:47:21 +02:00
Zuul a29c6be97d Merge "Do not use the six library." 2020-07-17 19:32:29 +00:00
Zuul dca62b4de1 Merge "Do not use the six library in the tests." 2020-07-16 21:25:14 +00:00
Zuul 3cd06f763f Merge "Pass Global Request ID on with session client" 2020-07-16 15:54:26 +00:00
Zuul 3a58ab0f41 Merge "Stop to use the __future__ module." 2020-07-13 22:08:25 +00:00
Erno Kuvaja bae1d89cc7 Pass Global Request ID on with session client
Closes-bug: #1886650
Change-Id: I3a08c1beb398ba9f2556b6779c925f679bdc2c49
2020-07-13 22:55:23 +01:00
Cyril Roelandt b513c8db4b Do not use the six library.
Change-Id: I3dbfcfa0f5f590a41ed549afd44537d8ed41433a
2020-06-23 21:51:07 +02:00
Cyril Roelandt 928935e5c0 Do not use the six library in the tests.
Change-Id: Ic8a2a736a733e0151ca82f19bfde428dc04cf255
2020-06-15 21:04:56 +02:00
Hervé Beraud 2e0d6a839a drop mock from lower-constraints
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
2020-06-09 11:54:50 +02:00
Hervé Beraud e8455f5c18 Stop to use the __future__ module.
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
2020-06-02 20:47:47 +02:00
Andreas Jaeger de178ac438 Switch to newer openstackdocstheme and reno versions
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
2020-05-22 17:23:12 +00:00
Ghanshyam Mann 04d2fa7058 Fix hacking min version to 3.0.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
2020-05-12 19:31:22 -05:00
Brian Rosmaita 56186d6d5a Fail gracefully when MD5 is unavailable
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
2020-05-04 08:56:58 -04:00
Zuul cf5434a1b8 Merge "Bump default tox env from py37 to py38" 2020-05-01 13:33:19 +00:00
Sean McGinnis 490f808c4f Bump default tox env from py37 to py38
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>
2020-04-24 10:25:54 -05:00
Sean McGinnis 2f86299b3d Add py38 package metadata
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>
2020-04-24 08:23:16 -05:00
Sean McGinnis 6a045884cb Use unittest.mock instead of third party mock
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>
2020-04-18 11:58:08 -05:00
Zuul 53254753c4 Merge "Fix SyntaxWarning with Python 3.8" 2020-04-14 12:03:26 +00:00
Sean McGinnis 1b5c309265 Add Python3 victoria unit tests
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>
2020-04-10 13:30:55 -05:00
Abhishek Kekane dff5c881bd Pass --all-stores, --allow-failure as bool to API
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
2020-04-08 17:11:55 +00:00
OpenStack Release Bot 00bc25eece Update master for stable/ussuri
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
2020-04-07 13:19:37 +00:00
Erno Kuvaja 3e91562b02 Rename releasenotes to reflect correct version
As python-glanceclient 3.0.0 was released earlier, this release
will be version 3.1.0

Change-Id: I18f4d4e9d61b235ea7896ea97c1b480249d474e2
2020-04-07 11:26:40 +01:00
Zuul ed0e3a9406 Merge "Add release note for glanceclient 3.0.0" 2020-04-07 10:05:29 +00:00
Abhishek Kekane 7e1460a1d0 Add release note for glanceclient 3.0.0
Change-Id: I4556df86ab501362bdfae2d1457ba14dade52f22
2020-04-06 14:37:07 +00:00
Andreas Jaeger baa89534a3 Cleanup py27 support
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
2020-04-04 16:47:34 +02:00
Andreas Jaeger 82da2378ea Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I5ae47a7b11ff29a301e440c15daf30db7738485b
2020-04-02 15:48:09 +02:00
James Page 236a7beb34 Fix SyntaxWarning with Python 3.8
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
2020-03-31 16:21:52 +01:00
Zuul 6b5a163022 Merge "update doc url to new" 2020-03-26 16:32:58 +00:00
Zuul cab47f3e9b Merge "Replace git.openstack.org URLs with opendev.org URLs" 2020-03-26 15:44:06 +00:00
Zuul 62f76f2532 Merge "Move py35 jobs to latest python3" 2020-03-26 06:39:11 +00:00
Zuul 5ea10250a0 Merge "Delete image from specific store" 2020-03-20 16:14:48 +00:00
Erno Kuvaja d91bcae8a5 Delete image from specific store
Add support to delete image from specific store.

bp: delete-from-store
Change-Id: Ie57d7de5822264a5ea8a5f4587ab8cfb4afb79de
2020-03-20 07:21:59 +00:00
Cyril Roelandt b03b29d8b2 Remove .zuul.yaml from the list of irrelevant files
Change-Id: Ibf038748df6e037df876c0e65d49aa79031275af
2020-03-17 21:04:33 +01:00
Zuul 6d506c3a36 Merge "Remove v1 tests" 2020-03-05 15:55:02 +00:00
Zuul b1181cf789 Merge "setup.cfg: Use better Python 3 hinting" 2020-03-05 15:48:54 +00:00
Abhishek Kekane 2e0396c0c9 Add support for copy-image import method
This change adds support for copy-image import method which will
copy existing images into multiple stores.

Change-Id: I748a8fb3dbaf9c2e4d887a2ecd4325e27a8429c4
bp: copy-image-multiple-stores
2020-02-27 06:49:11 +00:00
Erno Kuvaja c23d86738f Add support for multi-store import
This change adds support for providing multiple target
stores where image can be imported.

Co-authored-by: Erno Kuvaja <jokke@usr.fi>
Co-authored-by: Abhishek Kekane <akekane@redhat.com>

bp: import-multi-stores
Change-Id: I8730364263f1afd5d11fd56939851bda73a892bb
2020-02-27 05:52:49 +00:00