https://github.com/ceph/ceph/blob/master/src/pybind/rados/rados.pyx#L390

I have found that I need to pass in "name" to the Cluster create call, with
the name of the user I want to connect with.

On Tue, Jan 26, 2021 at 10:09 AM Cary FitzHugh <cary.fitzh...@gmail.com>
wrote:

> Hello!
>
> I've got a new cluster set up.  I created a new user and pool.  Creating
> the user like so:
>
> ceph auth add client.myclient mon 'allow r' osd 'allow rw pool=testpool'
>
> I have set up librados and python bindings, with a ceph.conf and a keyring 
> file.
>
> My trouble is that when I connect with client.admin, things seem to work 
> correctly. but my client.myuser cannot connect..
>
> When I try to connect with my client.myclient I get a RADOS permission denied.
>
>         cluster = rados.Rados(conffile=conffile.name)
>
> My keyring only has one user in it.
>
> The conffile only has a [global] section with a mon_host string and the 
> keyring path.
>
> I am also unable to connect to the cluster using that user with the ceph CLI 
> client.
> I have had limited success in debugging any of these situations - all the 
> debugging I might put into the ceph.conf file seems to only work after the 
> client is connected.
>
> In testing, I also made the client.myclient user have allow * on all 
> capabilities, and that did nothing that I could see.
>
> If anyone has thoughts on where I am stumbling, or how to debug things,  that 
> would be much appreciated.
>
> It feels like it's a combination of a few small mistakes, but I can't get a 
> handle on the issues.
>
> Thank you.
>
> Cary
>
>
>
>
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to