Yes. On Wed, Jan 27, 2016 at 1:10 PM, Dan Mick <dmick@xxxxxxxxxx> wrote: > Is the client.test-admin key in the keyring read by ceph-rest-api? > > On 01/22/2016 04:05 PM, Shinobu Kinjo wrote: >> Does anyone have any idea about that? >> >> Rgds, >> Shinobu >> >> ----- Original Message ----- >> From: "Shinobu Kinjo" <skinjo@xxxxxxxxxx> >> To: "ceph-users" <ceph-users@xxxxxxxxxxxxxx> >> Sent: Friday, January 22, 2016 7:15:36 AM >> Subject: ceph-rest-api's behavior >> >> 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 >> ceph-users@xxxxxxxxxxxxxx >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >> > > > -- > Dan Mick > Red Hat, Inc. > Ceph docs: http://ceph.com/docs > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com -- Email: shinobu@xxxxxxxxx GitHub: shinobu-x Blog: Life with Distributed Computational System based on OpenSource _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com