Project

General

Profile

Bug #8429

Updated by Joao Eduardo Luis almost 10 years ago

It appears that the admin socket interface will only propagate error codes to the user if the command itself outputs said error in the resulting (text) response. 

 For instance, should a user issue a 'ceph daemon mon.a config set mon_pg_warn_min_objects FOO', the command will return with success while the its output will be '{"error" : "error setting 'mon_pg_warn_min_objects' to 'FOO': (22) Invalid argument"}'.    This is far from ideal. 

 In fact, the whole interface doesn't support propagating the return code.    In order to change this we must modify class AdminSocket and then adapt the code throughout the tree, including common/ceph_context.cc, mon, osd, and whatever else that makes use of admin sockets.

Back