Skip to contentSkip to conversation

help: how to get ceph daemon debug info from ceph-rest-api?

DISCUSSION David Moreau Simard 1 participant 1 message Jul 24, 2014 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

Hi Zhu Qiang,

Unless I am mistaken, it looks like the command “dump_ops_in_flight” is only available as an admin-socket command:
https://github.com/ceph/ceph/blob/master/src/osd/OSD.cc#L1371-L1373

The commands available to ceph-rest-api are, to my knowledge, usually declared like so: https://github.com/ceph/ceph/blob/master/src/mon/MonCommands.h

I put the ceph-devel mailing list in copy, perhaps someone else knows if there is another way to retrieve that information.

--
David Moreau Simard

Quoted 18 lines · zhu qiang

Hello Mr. Simard

I want to use ceph-rest-api to view some debug details from ceph daemons. On linux shell I can get this message from below:

# ceph daemon osd.0 dump_ops_in_flight | python -m json.tool
  { "num_ops": 0,
  "ops": []}

This is my question:
Can I get this output from ceph-rest-api ?

Until now I tried some method : curl, python-cephclient ,but I did not get the right respone.

Best regarding.