Following the merge of https://github.com/ceph/ceph/pull/47650, which
fixes the confusion between std out and std err in admin socket
commands, we will need to reference the out stream (outb) instead
of the error stream (outs) when we parse heap stats.
Signed-off-by: Laura Flores <lflores@redhat.com>
if r != 0:
self.log.error("Invalid command dictionary: {}".format(cmd_dict))
else:
- if 'tcmalloc heap stats' in outs:
- values = [int(i) for i in outs.split() if i.isdigit()]
+ if 'tcmalloc heap stats' in outb:
+ values = [int(i) for i in outb.split() if i.isdigit()]
# `categories` must be ordered this way for the correct output to be parsed
categories = ['use_by_application',
'page_heap_freelist',