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

Permission Error when using different keyring in connect-external-ceph command #4390

Open
mateofloreza opened this issue Feb 1, 2024 · 1 comment
Labels

Comments

@mateofloreza
Copy link

mateofloreza commented Feb 1, 2024

Hi all,

I'm currently working on integrating the rook-ceph addon and connecting my external charmed ceph with my microk8s cluster. One of my requirements is to use a specific osd pool, and I've created a user with the defined permissions. However, I'm facing an issue when using the following command:

sudo microk8s connect-external-ceph --ceph-conf ceph.conf --keyring ceph.keyring --rbd-pool ericsson_pool

If the ceph.keyring is different from the client.admin keyring, I'm unable to connect to my external ceph, and I'm encountering a rados.PermissionError. However, if I use the client.admin keyring, it works as expected.

I've included the error output below for reference:

Attempting to connect to Ceph cluster
Traceback (most recent call last):
File "/var/snap/microk8s/common/plugins/connect-external-ceph", line 184, in
main()
File "/snap/microk8s/6364/usr/lib/python3/dist-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/snap/microk8s/6364/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/snap/microk8s/6364/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/microk8s/6364/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/var/snap/microk8s/common/plugins/connect-external-ceph", line 166, in main
ceph_initialize_rbd_pool(ceph_conf, keyring, rbd_pool)
File "/var/snap/microk8s/common/plugins/connect-external-ceph", line 70, in ceph_initialize_rbd_pool
client.connect()
File "rados.pyx", line 1003, in rados.Rados.connect
rados.PermissionError: [errno 1] RADOS permission error (error connecting to the cluster)

Copy link

stale bot commented Jan 12, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Jan 12, 2025
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

1 participant