Bug 2213873

Summary: [cee/sd][cephadm] osd_memory_target_autotune feature is not applying the tuned memory target.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Milind <milverma>
Component: RADOSAssignee: Adam Kupczyk <akupczyk>
Status: CLOSED ERRATA QA Contact: Harsh Kumar <hakumar>
Severity: medium Docs Contact: Disha Walvekar <dwalveka>
Priority: unspecified    
Version: 5.3CC: adking, akupczyk, alhandy, bhubbard, ceph-eng-bugs, cephqe-warriors, dwalveka, mcaldeir, ngangadh, nojha, pdhiran, rzarzyns, sostapov, sseshasa, tserlin, vereddy, vumrao
Target Milestone: ---   
Target Release: 6.1z3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-160.el9cp Doc Type: Bug Fix
Doc Text:
Cause: The osd_memory_target_autotune option when enabled applies the memory target at the host level. This is done by using host mask when auto-tuning the memory. But the code that applies the memory target did not determine the correct crush location of the parent host for the change to be propagated to the OSD(s) of the host. Consequence: Since the correct crush location of the OSDs parent (host) is not determined using the host mask, none of the OSDs hosted by the machine get notified via the config observer. This resulted in the osd_memory_target to remain unchanged for those set of OSDs. Fix: The fix involves determining the correct crush location of the OSDs parent (host) based on the host mask. This allows the change to propagate to the OSDs on the host. Result: After applying the fix, all the OSDs hosted by the machine get notified whenever the auto-tuner applies a new osd_memory_target and the change is reflected accordingly.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-12 13:55:39 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: 2247624    

Description Milind 2023-06-09 17:25:09 UTC
Description of problem:

Setting the osd_memory_target_autotune to true does show the tuned memory target in the cephadm logs, but actually not applying on the OSDs.

Version-Release number of selected component (if applicable):
RHCS 5.3z3

Actual results:
The autotuned memory target is not setting on the OSD node

Expected results:
The autotuned memory target should set on the OSD node

Comment 31 Scott Ostapovicz 2023-07-12 12:34:52 UTC
Missed the 6.1 z1 window.  Retargeting to 6.1 z2.

Comment 53 errata-xmlrpc 2023-12-12 13:55:39 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 (Moderate: Red Hat Ceph Storage 6.1 security, enhancements, and bug fix 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:7740