Bug 2361672

Summary: [RFE] Request Ganesha to support binding to specific address for monitoring
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sachin Punadikar <spunadik>
Component: CephadmAssignee: Shweta Bhosale <shbhosal>
Status: ASSIGNED --- QA Contact: Mohit Bisht <mobisht>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: akane, ben.kern, cephqe-warriors, kkeithle, msaini
Target Milestone: ---Keywords: FutureFeature, RFE
Target Release: 9.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2359515
: 2372966 (view as bug list) Environment:
Last Closed: Type: ---
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: 2359515    
Bug Blocks: 2372966    

Description Sachin Punadikar 2025-04-22 14:24:31 UTC
+++ This bug was initially created as a clone of Bug #2359515 +++

Description of problem: Request ganesha support to support a config option to specify a specific address for monitoring binding. Currently it defaults to INADDR_ANY which prevent to reuse of the same monitoring port across multiple nfs clusters https://github.com/nfs-ganesha/nfs-ganesha/blob/V6-stable/src/monitoring/exposer.cc#L200


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


How reproducible: Attempt to provision multiple ganesha clusters with the same monitoring port.


Steps to Reproduce:
1. Provision ganesha with monitoring port 9837
2. Provision another ganesha with the same monitoring port 9837
3.

Actual results:
The second ganesha cluster fails to start


Expected results:
Allow an option to specify a bind address for the monitoring service so the same port under unique addresses can bind successfully


Additional info:

--- Additional comment from Storage PM bot on 2025-04-14 14:13:28 UTC ---

Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

--- Additional comment from Sachin Punadikar on 2025-04-22 10:29:20 UTC ---

Made required changes, here is PR for downstream 
https://gitlab.cee.redhat.com/ceph/nfs-ganesha/-/commit/a293a0b3f4fa5e58753bae3ae75db220fb3f20e9

Upstream code is different in file & function names. Related upstream PR - https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1213832

@Thomas, please find the downstream PR in below branch 
https://gitlab.cee.redhat.com/ceph/nfs-ganesha/-/tree/private-tserlin-ceph-8.0-rhel-9-hotfix-bz2357486-patches?ref_type=heads

--- Additional comment from Sachin Punadikar on 2025-04-22 10:36:43 UTC ---

Initially there was discussion on cephadm related changes.
The main issue is how to mention the IP address for listening monitoring port.
cephadm can not pick IP address on its own. Someone need to provide the IP address for config parameter "Monitoring_Addr".
Hence cephadm changes are on hold. Need clarification from IBM Cloud team.

Comment 6 Abhishek Kane 2025-06-10 04:17:48 UTC
Moving the RFEs out of 9.0 as they were not prioritized by PMs and engineering doesn't have bandwidth to take them up.