Bug 2119100

Summary: (RHCS 5.3z1) heap command returning empty output
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Prashant Dhange <pdhange>
Component: RADOSAssignee: Prashant Dhange <pdhange>
Status: CLOSED ERRATA QA Contact: Harsh Kumar <hakumar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.1CC: akupczyk, amathuri, bhubbard, ceph-eng-bugs, cephqe-warriors, choffman, ksirivad, lflores, nojha, pdhange, rfriedma, rmandyam, rzarzyns, skanta, sseshasa, tserlin, vumrao
Target Milestone: ---   
Target Release: 5.3z1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-16.2.10-119.el8cp Doc Type: Bug Fix
Doc Text:
.The `ceph daemon heap status` command shows the heap status Previously, due to a failure to get heap information through the `ceph daemon` command, the `ceph daemon heap stats` command would return empty output instead of returning current heap usage for a Ceph daemon. This was because `ceph::osd_cmds::heap()` was confusing the `stderr` and `stdout` concept which caused the difference in output. With this fix, the `ceph daemon heap stats` command returns heap usage information for a Ceph daemon similar to what we get using the `ceph tell` command.
Story Points: ---
Clone Of:
: 2119101 (view as bug list) Environment:
Last Closed: 2023-02-28 10:05:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2119101    

Description Prashant Dhange 2022-08-17 14:32:43 UTC
Description of problem:
While fetching heap stats/dump through ceph daemon command, we are neither getting heap command output or error message. This issue has affected both OSD and MDS daemons. 

It seems all RHCS 5 versions are affected by this bug

Version-Release number of selected component (if applicable):
ceph version 16.2.7-98.el8cp

How reproducible:
Frequently

Steps to Reproduce:
1. Deploy RHCS 5.x cluster
2. Get heap dump using ceph daemon command
$ ceph daemon osd.x heap stats
3. Observe empty heap stats output

Actual results:
ceph daemon heap command fail to provide desired output

Expected results:
ceph daemon heap command should output heap stats/dump details

Additional info:

Comment 22 errata-xmlrpc 2023-02-28 10:05:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat Ceph Storage 5.3 Bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:0980