Project

General

Profile

Actions

Bug #7186

closed

ceph-rest-api: /tell/<osdid-or-pgid>/query doesn't work

Added by David Moreau Simard over 10 years ago. Updated about 7 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
rest-api
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

tell/<osdid-or-pgid>/query is shown twice in show_human_help (probably part of the problem?)

For instance, /tell/1/version will work:

<response>
  <output>
    <version>
      <version>
        ceph version 0.72.2 (a913ded2ff138aefb8cb84d347d72164099cfd60)
      </version>
    </version>
  </output>
  <status>OK</status>
</response>

/tell/1/query:
Error: unrecognized command! [{"prefix": "query", "module": "osd", "perm": "r", "format": "xml"}] (-22)
Error: unrecognized command! [{"prefix": "query", "module": "osd", "perm": "r", "format": "plain"}] (-22) {"status": "Error: unrecognized command! [{\"prefix\": \"query\", \"module\": \"osd\", \"perm\": \"r\", \"format\": \"json\"}] (-22)", "output": []}

Logs:

2014-01-19 16:15:46,570 __main__ DEBUG: Accept: ['application/xml']
2014-01-19 16:15:46,571 __main__ DEBUG: sending command prefix query argdict {'perm': u'r', 'module': u'osd', 'format': 'xml'}
2014-01-19 16:15:54,080 __main__ INFO: http://172.27.57.80:5000/api/v0.1/tell/1/query from 172.17.66.30 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.29 Safari/537.36
2014-01-19 16:15:54,081 __main__ DEBUG: Accept: ['*/*']
2014-01-19 16:15:54,081 __main__ DEBUG: sending command prefix query argdict {'perm': u'r', 'module': u'osd', 'format': 'plain'}
2014-01-19 16:16:13,236 __main__ INFO: http://172.27.57.80:5000/api/v0.1/tell/1/query from 172.17.66.30 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.29 Safari/537.36
2014-01-19 16:16:13,237 __main__ DEBUG: Accept: ['application/json']
2014-01-19 16:16:13,237 __main__ DEBUG: sending command prefix query argdict {'perm': u'r', 'module': u'osd', 'format': 'json'}

Actions

Also available in: Atom PDF