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 #1

Updated by David Moreau Simard over 10 years ago

Just noticed there is a rest-api category (I was searching for ceph-rest-api..). Could someone flag this properly ? I don't have permissions to edit.

Actions #2

Updated by Loïc Dachary over 10 years ago

  • Category set to rest-api
Actions #3

Updated by Kai Zhang over 10 years ago

The help information is a little confusing here, "query" only works for placement group while "version" only works for OSD.
It should be like this:

tell/<pgid>/query    GET    show details of a specific pg
tell/<osdid>/version    GET    report version of OSD

Actions #4

Updated by David Moreau Simard about 10 years ago

Good point, I must have missed that. Can we close this bug ?

Actions #5

Updated by Sage Weil about 7 years ago

  • Status changed from New to Won't Fix
Actions

Also available in: Atom PDF