]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph: handle old OSDs as command destinations, fix status part of -w
authorDan Mick <dan.mick@inktank.com>
Fri, 7 Jun 2013 23:24:28 +0000 (16:24 -0700)
committerDan Mick <dan.mick@inktank.com>
Sat, 8 Jun 2013 00:28:30 +0000 (17:28 -0700)
commitb3f38f3ed8f836460b0f7c26dbb67b4f30fe7c7c
treef1bba6d4c962ecc97dec91f04d3932148f693bfc
parent05d1d027b0683aafc126fab2dfce58a502d05908
ceph: handle old OSDs as command destinations, fix status part of -w

For osd tell or pg <pgid> commands, the CLI sends the command directly
to the OSD; if the OSDs are still old, the command needs to be sent
in 'plain' (non-JSON) form.  Also, the 'ceph status' from -w needs to
handle failure/fallback-to-old-command.

Refactor the guts of json_command() into send_command(), and call it
from json_command() and where needed for old-style commands.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/ceph.in