Commit Graph

1664 Commits

Author SHA1 Message Date
Zuul 1625b38ca0 Merge "Remove six again" 2024-05-09 04:10:07 +00:00
Zuul fd8e080635 Merge "Update master for stable/2024.1" 2024-05-08 16:13:18 +00:00
Zuul c76b8e1c07 Merge "reno: Update master for unmaintained/victoria" 2024-05-08 16:13:17 +00:00
Zuul 15128d036b Merge "reno: Update master for unmaintained/wallaby" 2024-05-08 16:13:16 +00:00
Zuul 7a3b01a0ff Merge "reno: Update master for unmaintained/xena" 2024-05-08 16:13:15 +00:00
OpenStack Release Bot c8578a56e5 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I3e195414085b464569a11c32885cb7899d5de931
2024-03-26 16:45:24 +00:00
OpenStack Release Bot 946abf1f02 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: Ie3df3a7864ecac6d87f227e5651eed370a02160d
2024-03-26 16:44:23 +00:00
OpenStack Release Bot e8e9102cdc reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I30826ab7d75a34c98552308360ba7e5542146fb8
2024-03-26 16:43:16 +00:00
OpenStack Release Bot 1696c3ba08 Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: I3d6cb06aab6beb48617752e5af893003729be2fa
2024-03-08 14:12:59 +00:00
Takashi Kajinami a161c4af5e Remove six again
There are still a few usages of six left. This removes these to drop
implicit dependency on six completely.

Change-Id: Ie88321ed03f7fe14ed603a1523c626f196949f21
2024-02-19 00:59:50 +09:00
OpenStack Proposal Bot ebb842abf0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6f369136c0e338e8f8da9ef6a926b4317ee31e94
2024-02-08 03:40:53 +00:00
OpenStack Release Bot b81c50fea9 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I2ed11a848cce29e1d5142cac4359312d9fc03391
2024-02-06 15:50:41 +00:00
Zuul 5ba77c0be5 Merge "Update python classifier in setup.cfg" 2024-01-26 16:31:26 +00:00
Ghanshyam Mann c1e41862fd Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I7790eb33aabcc87dd3722508999b6ebc92f90913
2024-01-03 23:55:59 -08:00
Thomas Goirand b82269621d Python 3.12: do not use utcnow()
The datetime.datetime.utcnow() function is deprecated in Python 3.12,

Change-Id: I52e947e017ad1455c0310fe20fdc63354a254757
2023-12-19 00:45:48 +09:00
Zuul 9073ee4c34 Merge "Update master for stable/zed" 2023-11-21 12:09:26 +00:00
Zuul 4098a28c68 Merge "Update master for stable/2023.2" 2023-11-21 11:58:02 +00:00
OpenStack Release Bot f27c7be69a Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: Iae839fd30f40c83709b4f8c9fe3dc5bedb7bcb8a
2023-11-21 20:44:36 +09:00
Zuul 9ade074c9b Merge "External OAuth2.0 Authorization Server Support" 2023-11-07 16:46:40 +00:00
Zuul e49893e598 Merge "External OAuth2.0 Authorization Server Support" 2023-09-13 18:32:57 +00:00
Zuul ee96389dbf Merge "auth_token: fix issue when data in cache gets corrupted" 2023-09-13 16:54:46 +00:00
OpenStack Release Bot 6f55af4dab Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: If95bbdba6a4302c8cad1e67e02e12e9fc9693396
2023-09-08 14:54:26 +00:00
Yusuke Niimi 53b4cb21ad External OAuth2.0 Authorization Server Support
Added the ability to authenticate using a system-scoped token and the
ability to authenticate using a cached token to the
external_oauth2_token filter.

Implements: blueprint enhance-oauth2-interoperability
Change-Id: I1fb4921faaafd5288d5909762ff5553e5e2475dc
2023-09-07 09:43:14 +00:00
sunyonggen de15a610e1 External OAuth2.0 Authorization Server Support
The external_oauth2_token filter has been added for accepting or denying
incoming requests containing OAuth 2.0 access tokens that are obtained
from an External Authentication Server.

Depends-On: https://review.opendev.org/c/openstack/keystoneauth/+/860614
Implements: blueprint enhance-oauth2-interoperability
Change-Id: I529c5b0c89933395b126e86651ef09368dd7e6b4
2023-08-30 13:30:32 +00:00
Zuul d36c86ce4c Merge "Switch to 2023.1 Python3 unit tests and generic template name" 2023-08-15 20:36:47 +00:00
Sahid Orentino Ferdjaoui 70337682d9 auth_token: fix issue when data in cache gets corrupted
Previously token cache was not correctly handling the case when data
in memcached is un-decryptable.
The cache process was returning a null value that was not considered
resulting a python exception raised

The commit fixes the issue by adding a condition to validate the value
returned.

Closes-bug: #2023015
Change-Id: Ic48d20569980781febc194083651736bed446953
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
2023-08-14 14:42:50 +00:00
OpenStack Proposal Bot fe644edbc5 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8016ba267c9c72132c49a07aa15f28d068ebebd1
2023-07-01 03:55:34 +00:00
Stephen Finucane 22408f8da0 Remove six
Change-Id: Ib3edfdd087ed1d954f1ecf72a191138f8f1c46a1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-06-27 18:03:31 +01:00
Stephen Finucane 0f48ff3e8d Bump hacking to 6.0.x
A note about dependency ordering is removed from the requirements file:
this is no longer true with the dependency resolver introduced with pip
20.3.

Change-Id: I615be3453db37588edf98a46ce484efc5e051f11
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-06-27 18:03:30 +01:00
Stephen Finucane 3f12bc6e33 tox: Trivial formatting changes
Change-Id: I8870cf849aec9d4bd1e59d911704ec2e4cabe09e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-06-27 18:03:29 +01:00
Stephen Finucane 626df3a5e9 Make tox.ini tox 4.0.0 compatible/fix gate
* Removed skipsdist=True to make sure placement available in the virtual
  env. Without this, our entrypoints are not available.

* Removed basepython = python3 as we assume all developer switched to
  python3 in their env already

* Removed ignore_basepython_conflict = True as without the basepython
  definition generative targets now work without conflict

See [1] for a similar change made to placement.

It is also necessary to fix issues with the gate. For reasons that I
have yet to grok, a mock of 'requests.request' used in some test is no
longer functioning as expected. My guess is that something is now
importing requests before us and interfering with the mock but never
mind - we can easily bypass the issue by mocking 'requests.post'
instead.

[1] https://review.opendev.org/c/openstack/placement/+/868418/

Change-Id: I3b8263afbf0ccee88ceaac2040d5ad274f22d74a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-06-27 18:03:28 +01:00
OpenStack Release Bot cbf5969494 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I8227da5a3f63845cb0151c329237d280fd3d5521
2023-06-02 14:23:21 +00:00
Zuul 2ad28a3a14 Merge "Update master for stable/2023.1" 2023-05-26 15:01:29 +00:00
Hiromu Asahina 92cdf8a0a5 Add timeout for requests
Bandit emits errors for request methods without the timeout parameter.
It's better to follow the instruction to avoid hanging.

Added timeout parameters and config options to set timeout.

[1] https://bandit.readthedocs.io/en/1.7.5/plugins/b113_request_without_timeout.html

Change-Id: I0c022c3cc57f30530ebdef6e434753ece2bdf912
2023-03-18 01:11:53 +09:00
sunyonggen a59020fdab OAuth 2.0 Mutual-TLS Support
The oauth2_mtls_token filter has been added for accepting or denying
incoming requests containing OAuth 2.0 certificate-bound access
tokens that are obtained from keystone identity server by users
through their OAuth 2.0 credentials and Mutual-TLS certificates.

Co-Authored-By: Hiromu Asahina <hiromu.asahina.az@hco.ntt.co.jp>
Depends-On: https://review.opendev.org/c/openstack/keystoneauth/+/860614
Change-Id: I49127d845954ad6eab39e6e6305948ef0e4ed7b5
Implements: blueprint support-oauth2-mtls
2023-03-03 11:28:01 +09:00
OpenStack Release Bot 06bbdc8121 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: I8f97f3d30dde94ad512f75e0e2ff0718021dfde6
2023-02-24 15:10:44 +00:00
Hiromu Asahina 1c820f0c1c Add missing doc requirements
This updates the test-requirements to fix No module error in oslo_config.sphinxconfiggen when executing tox with doc env.

Change-Id: I4bfe30b3517f4a6c5c536afa150c66ef8522a2d0
2023-02-10 18:53:03 +00:00
Jorge Merlino e05466c5f4 Remove cache invalidation when using expired token
This can create a race condition for long running services that reuse
their token (eg. Kubernetes Cinder CSI plugin) in this case for
example:

1 [user] Asks nova to attach a volume to a server
2 ...the user's token expires
3 [user] Asks cinder if the volume has been attached
4 [nova] Asks cinder to attach the volume

In step 3 the token is marked as invalid in the cache and step 4 fails
even if allow_expired is true

Closes-Bug: #1987355
Change-Id: Ice8e34440a5fe1baa370646ed70b5e085c4af70e
2022-12-12 20:16:14 +00:00
Dave Wilde dc0b796495 Fix pep8 gate
This updates the test-requirements to more recent flake8-docstrings
and pep8 versions.  I also added some more ignores that would take
significant work to update and fixed some minor linting issues.

Change-Id: Ia416658b8a4bfb8f43f8df170053abb3ae958d44
2022-12-09 10:28:06 -06:00
Zuul aeeb64d349 Merge "Bump tox minversion to 3.18.0" 2022-09-16 17:28:20 +00:00
OpenStack Proposal Bot d2a3b53276 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I402897d72b841518308321832e5e00312598d74f
2022-09-06 04:09:33 +00:00
Yi Feng f7ac6a1b24 OAuth2.0 Client Credentials Grant Flow Support
The oauth2_token filter has been added for accepting or denying
incoming requests containing OAuth2.0 client credentials access tokens
that are obtained from keystone identity server by users through their
application credentials.

Change-Id: I15e438681749ed2c2666804a9efd8d4712a7b01c
2022-08-23 09:39:18 +00:00
Ayumu Ueha 9c49da6887 Fix logging notifier unit test
For unknown reasons, the `create_notifier()` in
`test_api_request_no_messaging()` used `oslo_messaging.Notifier`
instead of the `_LogNotifier` that should be originally used,
causing unit test to fail.

This patch fixes this issue by changing `use_oslo_messaging` config to
False for this test.

Change-Id: I32f9dc596525e912e37984764f68564e26ecfd3b
2022-08-09 14:33:32 +00:00
Takashi Kajinami 0ed46ac125 Bump tox minversion to 3.18.0
Since tox 3.18.0, the whitelist_externals option has been deprecated in
favor of the new allow_list_externals option[1].

This change bumps the minversion of tox so that we can replace
the deprecated option.

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Ib19bf79da06d656831cdb117e390d4583262f862
2022-07-25 18:51:04 +00:00
OpenStack Proposal Bot 2bda844bb2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I071933cb8a392b14a36940133880d5e777301d1f
2022-06-21 03:11:44 +00:00
Zuul dd31878b29 Merge "setup.cfg: Replace dashes by underscores" 2022-06-07 15:25:50 +00:00
Zuul f442cb3ad4 Merge "Update python testing as per zed cycle teting runtime" 2022-06-07 15:25:25 +00:00
Zuul f550deec96 Merge "Remove translation sections from setup.cfg" 2022-06-03 19:02:24 +00:00
Takashi Kajinami bad107ef79 setup.cfg: Replace dashes by underscores
Since setuptools v54.1.0[1], the parmeters with dash have been
deprecated in favor of the new parameters with underscore.

This change updates the parameters accordingly to avoid the warnings
like the example below.

  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: Id43f253899b5af1f40a41d7fff1f78c316b31367
2022-06-01 20:18:18 +09:00
Zuul fef9959705 Merge "Remove references to 'sys.version_info'" 2022-05-30 06:20:23 +00:00