Bug 2338126

Summary: [NFS-Ganesha] On the freshly installed NFS cluster, configuration error warnings were observed in the ganesha.log file
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Manisha Saini <msaini>
Component: CephadmAssignee: Adam King <adking>
Status: VERIFIED --- QA Contact: Manisha Saini <msaini>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.0CC: adking, bkunal, cephqe-warriors, gouthamr, kkeithle, muagarwa, spunadik, tserlin
Target Milestone: ---   
Target Release: 8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.2.1-33.el9cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2348701 (view as bug list) Environment:
Last Closed: 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: 2348701    

Description Manisha Saini 2025-01-15 07:23:48 UTC
Description of problem:
======================

Deploy NFS-Ganesha on Ceph, configure exports, and review the ganesha.log file. Configuration errors were noted in the log; however, the Ganesha functionality is operating as expected.

Ganesha.log output
======
2[main] nfs_lift_grace_locked :STATE :EVENT :NFS Server Now NOT IN GRACE
Jan 14 21:58:42 cali021 ceph-2edf8cd4-d28b-11ef-b7c0-ac1f6b0a1842-nfs-nfsganesha-0-0-cali021-ocaliz[218297]: 14/01/2025 21:58:42 : epoch 6786de12 : cali021 : ganesha.nfsd-2[main] main :NFS STARTUP :WARN :No export entries found in configuration file !!!
Jan 14 21:58:42 cali021 ceph-2edf8cd4-d28b-11ef-b7c0-ac1f6b0a1842-nfs-nfsganesha-0-0-cali021-ocaliz[218297]: 14/01/2025 21:58:42 : epoch 6786de12 : cali021 : ganesha.nfsd-2[main] config_errs_to_log :CONFIG :WARN :Config File (/etc/ganesha/ganesha.conf:13): Unknown token ('rados_cluster')
Jan 14 21:58:42 cali021 ceph-2edf8cd4-d28b-11ef-b7c0-ac1f6b0a1842-nfs-nfsganesha-0-0-cali021-ocaliz[218297]: 14/01/2025 21:58:42 : epoch 6786de12 : cali021 : ganesha.nfsd-2[main] config_errs_to_log :CONFIG :WARN :Config File (/etc/ganesha/ganesha.conf:30): 1 (unknown param) errors found block NFSv4
Jan 14 21:58:42 cali021 ceph-2edf8cd4-d28b-11ef-b7c0-ac1f6b0a1842-nfs-nfsganesha-0-0-cali021-ocaliz[218297]: 14/01/2025 21:58:42 : epoch 6786de12 : cali021 : ganesha.nfsd-2[main] config_errs_to_log :CONFIG :WARN :Config File (/etc/ganesha/ganesha.conf:18): Unknown block (RADOS_KV)
Jan 14 21:58:42 cali021 ceph-2edf8cd4-d28b-11ef-b7c0-ac1f6b0a1842-nfs-nfsganesha-0-0-cali021-ocaliz[218297]: 14/01/2025 21:58:42 : epoch 6786de12 : cali021 : ganesha.nfsd-2[main] config_errs_to_log :CONFIG :WARN :Config File (/etc/ganesha/ganesha.conf:25): Unknown block (RADOS_URLS)
Jan 14 21:58:42 cali021 ceph-2edf8cd4-d28b-11ef-b7c0-ac1f6b0a1842-nfs-nfsganesha-0-0-cali021-ocaliz[218297]: 14/01/2025 21:58:42 : epoch 6786de12 : cali021 : ganesha.nfsd-2[main] config_errs_to_log :CONFIG :WARN :Config File (/etc/ganesha/ganesha.conf:30): Unknown block (RGW)
Jan 14 21:58:42 cali021 ceph-2edf8cd4-d28b-11ef-b7c0-ac1f6b0a1842-nfs-nfsganesha-0-0-cali021-ocaliz[218297]: 14/01/2025 21:58:42 : epoch 6786de12 : cali021 : ganesha.nfsd-2[main] lower_my_caps :NFS STARTUP :EVENT :CAP_SYS_RESOURCE was successfully removed for proper quota management in FSAL
Jan 14 21:58:42 cali021 ceph-2edf8cd4-d28b-11ef-b7c0-ac1f6b0a1842-nfs-nfsganesha-0-0-cali021-ocaliz[218297]: 14/01/2025 21:58:42 : epoch 6786de12 : cali021 : ganesha.nfsd-2[main] lower_my_caps :NFS STARTUP :EVENT :currently set capabilities are: cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,cap_net_bind_service,cap_sys_chroot,cap_setfcap=ep
==================



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

# ceph --version
ceph version 19.2.0-58.el9cp (d4780295dda9ca9810286810bd5254843dbd55e5) squid (stable)

# rpm -qa | grep nfs
libnfsidmap-2.5.4-27.el9.x86_64
nfs-utils-2.5.4-27.el9.x86_64
nfs-ganesha-selinux-6.0-8.el9cp.noarch
nfs-ganesha-6.0-8.el9cp.x86_64
nfs-ganesha-rgw-6.0-8.el9cp.x86_64
nfs-ganesha-ceph-6.0-8.el9cp.x86_64
nfs-ganesha-rados-grace-6.0-8.el9cp.x86_64
nfs-ganesha-rados-urls-6.0-8.el9cp.x86_64

How reproducible:
================
Everytime


Steps to Reproduce:
1. Deploy NFS-Ganesha cluster

# ceph nfs cluster info nfsganesha
{
  "nfsganesha": {
    "backend": [
      {
        "hostname": "cali021",
        "ip": "10.8.130.21",
        "port": 12049
      }
    ],
    "monitor_port": 9049,
    "port": 2049,
    "virtual_ip": "10.8.130.31"
  }
}

2. Create NFS exports

# ceph nfs export ls nfsganesha
[
  "/ganesha1",
  "/ganesha2"
]


Actual results:
==============
Configuration error warnings were observed in ganesha.log


Expected results:
==============
No warnings should be observed


Additional info: