Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a bucket with RGW multisite on a rook cluster having a non-master zone makes the credentials in the generated secret wrong #14030

Open
lgyurci opened this issue Apr 4, 2024 · 4 comments
Assignees
Labels

Comments

@lgyurci
Copy link

lgyurci commented Apr 4, 2024

Is this a bug report or feature request?

  • Bug Report

Deviation from expected behavior:
The credentials in the generated secret (which has the same name as the ObjectBucketClaim) are wrong
Expected behavior:
The credentials in the generated secret (which has the same name as the ObjectBucketClaim) are not wrong
How to reproduce it (minimal and precise):

  1. Create an RGW multisite setup
  2. Create a bucket on the secondary cluster
  3. Etiher try to use the credentials in the generated secret, or compare them with the ACCESS_KEY/SECRET_KEY stored in the RGWs brain (adosgw-admin user info --rgw-realm=$REALM --rgw-zonegroup=$ZONEGROUP --rgw-zone=$SECONDARY-ZONE --uid=$UID)

Environment:

  • Rook version (use rook version inside of a Rook Pod): v1.12.0-alpha.0.474.g5230fcd60
  • Storage backend version (e.g. for ceph do ceph -v): ceph version 18.2.0 (5dd24139a1eada541a3bc16b6941c5dde975e26d) reef (stable)
  • Kubernetes version (use kubectl version): v1.26.11+rke2r1
  • Kubernetes cluster type (e.g. Tectonic, GKE, OpenShift): RKE2
@lgyurci lgyurci added the bug label Apr 4, 2024
@lgyurci
Copy link
Author

lgyurci commented Apr 4, 2024

I believe the operation is sent to the primary RGW for processing (according to ceph docs, bucket operations are forwarded to the master zone), and this somehow disturbs rook

@thotz
Copy link
Contributor

thotz commented Apr 5, 2024

@alimaredia worked to fix the keys for users created in the secondary zone. I thought that change was merged

@lgyurci
Copy link
Author

lgyurci commented Apr 22, 2024

So... Was it merged?

@thotz
Copy link
Contributor

thotz commented Apr 24, 2024

This was the PR which should fix the issue ceph/ceph#48731 got backported till pacific as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants