Project

General

Profile

Actions

Bug #17779

closed

rgw: s3 API does not honor rgw_keystone_implicit_tenants when keystone integration is configured

Added by Yiu Chung Lee over 7 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
High
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
kraken, jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When I tried to access rgw configured with keystone integration using S3 API with a new user , It appears that the new user is still access with legacy tenant (i.e. global). Swift API works as intended.

Here is the relevant command output:

root@ceph-radosgw:~# radosgw-admin metadata list user
[
"1b614dca7b8e4582aba67581d92e8aa8",
"9c40f84284fa4bddb7ca381fd32054c3$9c40f84284fa4bddb7ca381fd32054c3",
"1b614dca7b8e4582aba67581d92e8aa8$1b614dca7b8e4582aba67581d92e8aa8"
]

"1b614dca7b8e4582aba67581d92e8aa8$1b614dca7b8e4582aba67581d92e8aa8" is the user auto-created using Swift API
"1b614dca7b8e4582aba67581d92e8aa8" is the user auto-created using S3 API

Note that you need to access rgw using swift API before using S3 API, otherwise the user "1b614dca7b8e4582aba67581d92e8aa8$1b614dca7b8e4582aba67581d92e8aa8" will not be created.


root@ceph-radosgw:~# radosgw-admin bucket list
[
"s3-bucket",
"1b614dca7b8e4582aba67581d92e8aa8\/swift-bucket"
]

You can also see the "s3-bucket" (created using S3 API) is in global tenant, while swift-bucket is in user tenant. S3 API cannot access buckets created using Swift API and vice versa.


Files

s3.py (503 Bytes) s3.py Yiu Chung Lee, 11/02/2016 09:23 AM

Related issues 2 (0 open2 closed)

Copied to rgw - Backport #20482: kraken: rgw: s3 API does not honor rgw_keystone_implicit_tenants when keystone integration is configuredRejectedActions
Copied to rgw - Backport #20483: jewel: rgw: s3 API does not honor rgw_keystone_implicit_tenants when keystone integration is configuredRejectedActions
Actions

Also available in: Atom PDF