help: how to get ceph daemon debug info from ceph-rest-api?
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): CAG+vcOUvY67h-Dq+rnzzV=4Ud1qmxJsV3BiFVuWEZr0kK+w07Q@mail.gmail.com
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.