Correctly configure S3 Token Middleware for Swift

According the documentation [1] there need to configure auth_uri in the
[filter:s3token] section instead of www_authenticate_uri which cause an
error 'swift.common.wsgi.ConfigFileError: Invalid auth_uri; must
include scheme and host' during start the swift-proxy-server container.

1. https://docs.openstack.org/swift/ussuri/middleware.html#s3-token-middleware

Change-Id: I6b8f5807ebb746428a501dca13eae30763dede8d
Closes-Bug: 1862765
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
Maksim Malchuk 2021-02-10 12:57:14 +03:00
parent 02371e0c82
commit 835920782f
2 changed files with 6 additions and 1 deletions

View File

@ -99,5 +99,5 @@ use = egg:swift#s3api
[filter:s3token]
use = egg:swift#s3token
www_authenticate_uri = {{ keystone_internal_url }}/v3
auth_uri = {{ keystone_internal_url }}/v3
{% endif %}

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix the issue when Swift deployed with S3 Token Middleware enabled.
Fixes `LP#1862765 <https://bugs.launchpad.net/kolla-ansible/+bug/1862765>`__