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
Ceph multisite objecstore createSystemUser doesn't always run #10450
Comments
while listing have u used The system user for a realm will be created after creating the first object store of master zone/zonegroup. And rook always sets initially created zone and zonegroups as master. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation. |
I'm on rook 1.13.5 |
Hi, i'm on rook 1.13.5 as well. But faced a bit different situation (after switching from single-to-multi https://rook.io/docs/rook/v1.13/Storage-Configuration/Object-Storage-RGW/ceph-object-multisite/#configure-an-existing-object-store-for-multisite) , system-user is created, but not added to master zone "system_key", as a result master zone can't get sync status info. From secondary zone side - no issues. |
@degorenko |
yes, i have realm created as well as a secret |
I can confirm the system user isn't automatically being created on Rook 1.13.5 😞 Not sure if this plays a role, but this is our second multisite realm 💡 |
@thotz could look at this? |
Thats possible. If yes it might be bug in current code. Can u please check rook-operator logs for errors specifically related to system-user. |
As far as I saw there was no logs regarding a (system) user. |
I'm facing the same issue. Not only with the second multisite realm, but also with deleting and re-creating the same one. The system user creation simply does not happen, even after cleaning up the whole thing in ceph's brain (so manually deleting the zone, zonegroup, realm, user, etc). Moreover, deleting and re-creating the realm (without manually removing the created system user) regenerates the REALM_NAME-keys secret, but the system user is not updated with these credentials in any way. Also, could someone please enlighten me on how to create this system user manually? I'm really not familiar with the necessary ceph commands |
Command for creating the system user you mean? |
I am on Rook 1.14 experiencing the same problem.
On the second site that I'd like to join, error is thrown: |
I enabled debug logging and following the code from rook/pkg/operator/ceph/object/objectstore.go Line 555 in fb661a5
In my log I only see those lines:
There is no error and it also doesn't seem to come by functions "JoinMultisite" and "CreateSystemUser" as I don't see any log / debug statements from those functions. I also find it strange that CreateSystemUser is called from JoinMultisite, shouldn't the system user be created for the first master multi site? Well, didn't have time to dig too deep in the code and I am also no programmer, but I think the error is somewhere in that area. |
By the way, adding the system user manually to the first site as @bumarcell suggested fixes the problem and the multi site is established. |
Is this a bug report or feature request?
Deviation from expected behavior:
When creating a multisite objectstore in accordance with the docs, rgw user
<realm-name>-system-user
is not always created. Interestingly, the k8s secret<realm-name>-keys
seems to always be created regardless of whether the rgw user is created. I do see the access key and secret key set on the zone itself, but no corresponding user in the output ofradosgw-admin user list
The result of this is the secondary site cannot pull the realm even when the
<realm-name-keys>
secret is copied over properly to a second k8s cluster.This does not always happen, I suspect it's a problem with reconcile re-entrance. Unfortunately it's not trivial for me to enable debug logging and reproduce.
Expected behavior:
This user should always get created when using multisite settings.
How to reproduce it (minimal and precise):
Follow docs to create a multisite objecstore (create a realm, zg, zone, and objectstore which references zone).
Connect to toolbox, run
radosgw-admin user list
and inspect for proper user creation.File(s) to submit:
Code path in question:
rook/pkg/operator/ceph/object/objectstore.go
Line 484 in 3005a6f
Environment:
uname -a
): Linux server0 4.18.0-193.75.1.el8_2.x86_64rook version
inside of a Rook Pod): v1.8.9ceph -v
): 16.2.7kubectl version
): Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.4+rke2r2"ceph health
in the Rook Ceph toolbox): HEALTH_OKThe text was updated successfully, but these errors were encountered: