Hello,
"ceph-rest-api" works greatly with client.admin.
But with client.test-admin which I created just after building the Ceph cluster
, it does not work.
~$ ceph auth get-or-create client.test-admin mon 'allow *' mds 'allow *' osd
'allow *'
~$ sudo ceph auth list
installed auth entries:
...
client.test-admin
key: AQCOVaFWTYr2ORAAKwruANTLXqdHOchkVvRApg==
caps: [mds] allow *
caps: [mon] allow *
caps: [osd] allow *
~$ ceph-rest-api -n client.test-admin
Traceback (most recent call last):
File "/bin/ceph-rest-api", line 59, in <module>
rest,
File "/usr/lib/python2.7/site-packages/ceph_rest_api.py", line 504, in
generate_app
addr, port = api_setup(app, conf, cluster, clientname, clientid, args)
File "/usr/lib/python2.7/site-packages/ceph_rest_api.py", line 106, in
api_setup
app.ceph_cluster.connect()
File "/usr/lib/python2.7/site-packages/rados.py", line 485, in connect
raise make_ex(ret, "error connecting to the cluster")
rados.ObjectNotFound: error connecting to the cluster
# ceph version 9.2.0 (bb2ecea240f3a1d525bcb35670cb07bd1f0ca299)
Is that expected behavior?
Or if I've missed anything, please point it out to me.
Rgds,
Shinobu
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com