Hi, All I runned ceph-rest-api and send a getting request to /api/v0.1 but got an internal server error. The log of ceph-rest-api is attached inline below: 2014-01-13 07:41:14,128 __main__ INFO: http://10.239.149.9:5050/api/v0.1 from 10.239.206.107 Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 2014-01-13 07:41:14,145 __main__ ERROR: Exception on /api/v0.1 [GET] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1504, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1264, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1262, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1248, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/lib/python2.7/dist-packages/ceph_rest_api.py", line 418, in handler helptext = show_human_help(prefix) File "/usr/lib/python2.7/dist-packages/ceph_rest_api.py", line 292, in show_human_help line.append(permmap[cmdsig['perm']]) KeyError: u'w' For now, I got around the issue by changing the following line in ceph_rest_api.py: permmap = {'r':'GET', 'rw':'PUT'}----> permmap = {'r':'GET', 'rw':'PUT', 'w':'PUT'} I want to check if this is a defect in ceph_rest_api.py or I did anything wrong? Best Regards Wei |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com