Re: use ceph-rest-api without rados-gw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 10/10/2013 06:41 AM, su kucherova wrote:
Hi I want to use ceph-rest-api.But i dont want to use rados-gw
I have not setup rados-gw.I have osd+mon+msd.

ceph-rest-api has nothing to do with radosgw, so that should be fine.

I get an error while starting the ceph-rest-api.I dont know what i am
missing abt ceph-rest-api.
Can we not use ceph-rest-api to manage osd+mon+msd. Only?

  ceph-rest-api -c /etc/ceph/ceph.conf -n ceph

Traceback (most recent call last):
   File "/usr/bin/ceph-rest-api", line 59, in <module>
     rest,
   File "/usr/lib/python2.6/site-packages/ceph_rest_api.py", line 497,
in generate_app
     addr, port = api_setup(app, conf, cluster, clientname, clientid, args)
   File "/usr/lib/python2.6/site-packages/ceph_rest_api.py", line 103,
in api_setup
     app.ceph_cluster = rados.Rados(name=clientname, conffile=conf)
   File "/usr/lib/python2.6/site-packages/rados.py", line 211, in __init__
     raise Error("rados_initialize failed with error code: %d" % ret)
rados.Error: rados_initialize failed with error code: -22

when you invoke it with "-n ceph", you are saying "I will connect to the cluster as a client named client.ceph", so must have keys, etc. to enable that. Try leaving off "-n ceph".



Thanks
Su



--
Dan Mick, Filesystem Engineering
Inktank Storage, Inc.	http://inktank.com
Ceph docs: http://ceph.com/docs
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux