Commit Graph

1686 Commits (aa9c5d230f48c0ca4a4fb5dde6c92a07aab287e0)

Author SHA1 Message Date
Yi Feng aa9c5d230f OAuth2.0 Client Credentials Grant Flow Support
Added a new OAuth2ClientCredential plugin, accessible via the
'v3oauth2clientcredential' entry point, making possible to authenticate
using an application credentials as an OAuth2.0 client credentials.

Change-Id: I77d6faef4cbc75abb8e7d86f386fb6d16e40cabf
9 months ago
Grzegorz Grasza 2445a5df78 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.


Co-Authored-By: Ghanshyam Mann <>
Change-Id: Ic7671ad666ebc0614686e068b9d4c0824e384fb3
1 year ago
Zuul f194e6a820 Merge "Allow logging of Content-Type text/plain" 1 year ago
Zuul 12a84e1919 Merge "Fix version discovery check of url for integer project id" 1 year ago
Zuul cc58eca84f Merge "Improve help messages for a few options" 1 year ago
Zuul 97477c3261 Merge "User-friendly error message for DiscoveryFailure" 1 year ago
Zuul 2d40bf525d Merge "remove unicode from code" 1 year ago
Zuul 03a9dbb948 Merge "fix: miss attr _discovery_cache in ServiceTokenAuthWrapper" 1 year ago
Zuul c69cc01b7b Merge "Use TOX_CONSTRAINTS_FILE" 1 year ago
Zuul f9950b0ff3 Merge "bump py37 to py38 in tox.ini" 1 year ago
Ghanshyam Mann 7eeda4d9af Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.


Change-Id: I73718d9f52d11b9a17ab49468743d5237179ada5
1 year ago
melanie witt bc491817e1 Allow logging of Content-Type text/plain
Noticed this while doing some local testing, if a WSGI app replies with
a text/plain content type to communicate a server error, we aren't able
to see the error response message when passing --debug to the
openstackclient, example:

  RESP: [500] Date: Thu, 01 Oct 2020 23:54:15 GMT Server: Apache/2.4.18
  (Ubuntu) Content-Type: text/plain; charset=UTF-8 Connection: close
  Transfer-Encoding: chunked
  RESP BODY: Omitted, Content-Type is set to text/plain; charset=UTF-8.
  Only application/json responses have their bodies logged.

Change-Id: Ibfd46c7725bd0aa26f1f80b0e8fc6eda2ac2e090
1 year ago
zhangboye 1005c4be5b Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Ie3771b123acace8320db5b2e8dfadeef1c2a1b90
1 year ago
Simon Li 1a138049f7 fix: miss attr _discovery_cache in ServiceTokenAuthWrapper
Add the super method to the ServiceTokenAuthWrapper class
to get the _discovery_cache attribute of the parent class.

the error info is below while neutron is authenticated by
keystoneauth plug in task inspector enroll baremetal node:
ERROR oslo_messaging.rpc.server:
Exception during message handling: AttributeError:
'ServiceTokenAuthWrapper' object has no attribute '_discovery_cache'

Change-Id: Icc7c4e25a123b5565c94f43f932ee32f9f304a76
1 year ago
shanyunfan33 af78d4a22c remove unicode from code
remove unicode from code

Change-Id: I95f201f5678f093981014a553ffadb2a6b2a0453
1 year ago
Dylan McCulloch 8e27ff5d13 Fix version discovery check of url for integer project id
Check if the last url segment matches the project id.
Previously the check only confirmed whether the last url segment
endswith the project id which could cause problems with spurious
matches of some legacy integer project ids.

Closes-Bug: 1968793
Change-Id: I7c6c22e41bde2a73508635b7e964c58a02c12146
1 year ago
Zuul 2403661941 Merge "Update master for stable/yoga" 1 year ago
Zuul 030bc23893 Merge "Update master for stable/xena" 1 year ago
Zuul d2b729d0c0 Merge "Update master for stable/wallaby" 1 year ago
OpenStack Release Bot 08aa669b8f Update master for stable/yoga
Add file to the reno documentation build to show release notes for

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

Sem-Ver: feature
Change-Id: Ifd5fc37cb58a363e9bc9f2b2752d455555ba82e9
1 year ago
OpenStack Release Bot 33776ab842 Update master for stable/xena
Add file to the reno documentation build to show release notes for

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

Sem-Ver: feature
Change-Id: I2621cf1da0b4721adfbb222bcf3f75e2f6a8d875
1 year ago
Zuul 27a3be4bc8 Merge "Clarify token_endpoint.Token usecases" 1 year ago
OpenStack Release Bot 011d6b2f06 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for

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

Sem-Ver: feature
Change-Id: I89924f9516f07caca3ae792aafc36587fd81badc
1 year ago
Zuul 8da0a63569 Merge "setup.cfg: Replace dashes by underscores" 1 year ago
Cyril Roelandt bb7c630504 Improve help messages for a few options
Closes-Bug: #1962037
Change-Id: If082a7f4cc09ffc42c68081dd43c2808b6c5f8a9
1 year ago
Grzegorz Grasza 49db50bfb3 Fix bindep for current rpm based distributions
python-devel is no longer available in current RPM based distributions.
This was tested with centos7, rhel7, rhel8, fedora35.

Change-Id: I4a2e6886af6d6862f25957e7bb206a5fc9664d90
1 year ago
Takashi Kajinami a1e209c9a1 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


Change-Id: I3980fbc53ce4b954aff5e98087897ea94e50e4fc
1 year ago
Dr. Jens Harbott 7bbce9761c Fix docs build
Avoid conflicts between apidoc generated documentation and the source
code by adding "noindex" to SPHINX_APIDOC_OPTIONS.

Signed-off-by: Dr. Jens Harbott <>
Change-Id: Ib1498a3712ec9cfd0abcb282b093f82ba0ee8128
1 year ago
Dmitry Tantsur a3b4718233 User-friendly error message for DiscoveryFailure
The passage about discovery document and allow_version_hack makes little
sense for people unfamiliar with keystoneauth internals. What it
actually means in most cases is that the remote service is not
available. Rephrase the error message and add some debug logging.

Change-Id: I156dbb45bd8c07ace1900894f6779ed9f38cf3c6
1 year ago
Goutham Pacha Ravi 112bcae1fb Specify manila microversion header
Manila API honors a "X-OpenStack-Manila-API-Version"
header to specify microversions.

It may support the OpenStack-API-Version header
in a future release, however, we'll need to maintain
backwards compatibility with the existing API.

Change-Id: Ia2e62d3a11a08adeb6d488b7c9b365f7ff2be3c8
2 years ago
Lance Bragstad b8ddb3b75f Clarify token_endpoint.Token usecases
This authentication plugin isn't grouped with the other authentication
plugins, but it can be really useful for people writing proxies or
implementing service-to-service calls.

This commit just highlights the usefulness of this plugin with some
example usecases and a code snippet. The current documentation phrases
it such that it's only useful for testing.

Change-Id: I1de4959ccde3fdf8141d8f4949c73542c2200483
2 years ago
Zuul 6a662719ce Merge "Update master for stable/victoria" 3 years ago
maaoyu 10d9dfd8e1 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.


Change-Id: I9cf801f2beda01b04e48488156fec0de11efe3a9
3 years ago
Dmitry Tantsur d21c52867f Provide the default get_auth_ref implementation
osc-lib tries to call it, failing for e.g. http_basic.

Change-Id: Iacfba0940beda4dce2a9be0c863cb506d4013e2f
3 years ago
OpenStack Release Bot d441f33cd5 Update master for stable/victoria
Add file to the reno documentation build to show release notes for

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

Change-Id: Iee8f7c760fb33a5bc54724e50104eb638adff527
Sem-Ver: feature
3 years ago
Zuul c2d2e7af29 Merge "Correct major version discovery for non-keystone plugins" 3 years ago
Dmitry Tantsur 981a19bba1 Correct major version discovery for non-keystone plugins
When a non-keystone plugin is used together with an unversioned endpoint,
we give up on discovery before figuring out both major version and
the correct endpoint. This is because get_endpoint_data is called with
discover_versions=False, so discovery assumes we have all information
already. It may be an issue in discovery itself, but I'm afraid to
touch that code. Instead, if get_endpoint_data returns no API version
with discover_versions=False, try with discover_versions=True, which
matches what the identity plugins do.

Also increase the unit test coverage.

Change-Id: Ie623931b150748d7759cf276e0023a2f06a8d4db
3 years ago
Zuul fda522ae10 Merge "Fix get_endpoint_data for non-keystone plugins" 3 years ago
Monty Taylor a4ac1ea193 Fix docs builds for modern stevedors
We have a custom doc build extension that scans module names, but
the api for that changed.

Change-Id: If8c08d22dde3e570cdc6fb7092bc131e2e3bcc18
3 years ago
Monty Taylor b95a89e3ff Fix get_endpoint_data for non-keystone plugins
We expect endpoint_override, but these plugins won't necessary
have it, they have endpoint instead.

Co-Authored-By: Dmitry Tantsur <>
Change-Id: Iead4b95c1f5b8d84cec705da32f41049e2eea641
3 years ago
Zuul dab8e1057a Merge "Drop python 3.5 support" 3 years ago
Zuul e0f1d314f4 Merge "Update lower-constraints versions" 3 years ago
Monty Taylor 4aaa2e52b0 Drop python 3.5 support
Now that we released ussuri, we have a stable release that supports
3.5. That means if needed we can backport changes needed for
zuul and nodepool, so it should be safe to go ahead and drop 3.5

Change-Id: Iaaba139009f2b49815c29717d71b9182a6bec2ab
3 years ago
Steve Baker ff68663217 Implement HTTP Basic client support in keystoneauth1
A new basic auth plugin is added which enables HTTP Basic
authentication for standalone services. Like the noauth plugin, the
endpoint needs to be specified explicitly, along with the
username and password.

An example of a standalone server implementing HTTP Basic can be seen
in Ironic change

Change-Id: Ib3f0a9c518d031a67f9605cf64a8a9cc81131ed3
Story: 2007656
Task: 39741
3 years ago
Sean McGinnis 8915fabc38
Update lower-constraints versions
This updates lower constraints to versions that will work with py38 so
that when we move to running on focal nodes, which has py38 as its
default py3 runtime, the lower-constraints job will continue to pass.

It also cleans out some secondary requirements that are no longer needed
due to our direct dependencies being updated.

Linters are removed that are kept in the global requirements blacklist
as those are not version tracked and are not relevant for our
lower-constraints unit test runs.

Change-Id: I228212d8347a33a6bc2735a8506acffe58bee2ec
Signed-off-by: Sean McGinnis <>
3 years ago
Sean McGinnis 646192d7fd
Remove mox3 from local upper-constraints
The py35-upper-constraints.txt file listed mox3, but mox3 is not
actually used by the project. This cleans up the list to make sure it
only lists packages that are actually needed.

Change-Id: I8f28e69cdcdd96e927c9cf5b9ed718448513118f
Signed-off-by: Sean McGinnis <>
3 years ago
Zuul 94314329e9 Merge "Replace assertItemsEqual with assertCountEqual" 3 years ago
Zuul e96c2102ad Merge "Use unittest.mock instead of third party mock" 3 years ago
Zuul 5445f779ed Merge "Add in-tree upper-constraints for py35 job" 3 years ago
Zuul 1f0412a042 Merge "Make header Case Insensitive" 3 years ago