Project

General

Profile

Bug #3748

Updated by Dan Mick over 11 years ago

ceph osd dump --format=json includes the non-JSON "dumped osdmap epoch N" at the top of the output, which of course breaks parsing. 

 This is a symptom of a larger problem, where messages in the 'reply string' part of the message are output to stdout if no error, stderr if err, but then also the 'reply bufferlist' is output 
 (to stdout, stderr, or the file specified).    We should probably clarify which messages are 'status only' 
 and therefore appropriate for stderr, and which are actually "data payload" for stdout. 

 The other option is just not to do statusy-type things when outputting formatted data. 

Back