Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2057612

Summary: decrease libnfsidmap verbosity
Product: Red Hat Enterprise Linux 8 Reporter: Frank Sorenson <fsorenso>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Yongcheng Yang <yoyang>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.5CC: ajmitchell, dwysocha, lmiksik, steved, toneata, xzhou, yoyang
Target Milestone: rcKeywords: CustomerScenariosInitiative, Patch, Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nfs-utils-2.3.3-51.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2066360 2090815 2090817 (view as bug list) Environment:
Last Closed: 2022-05-10 15:20:51 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: 2066360, 2090815, 2090817    

Description Frank Sorenson 2022-02-23 17:44:44 UTC
Description of problem:

A patch during the merge of libnfsidmap into nfs-utils increased the default libnfsidmap verbosity from 0 to 2, making nfsidmap very chatty.


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

nfs-utils-2.3.3-50.el8


How reproducible:

always

Steps to Reproduce:

just use idmapping


Actual results:

repeated messages in the logs:

Jan 16 04:21:07 hostname nfsidmap[3593196]: [daemon.warning]: libnfsidmap: loaded plugin /usr/lib64/libnfsidmap/nsswitch.so for method nsswitch
Jan 16 04:26:07 hostname nfsidmap[3593635]: [daemon.warning]: libnfsidmap: using domain: realm.example.com
Jan 16 04:26:07 hostname nfsidmap[3593635]: [daemon.warning]: libnfsidmap: Realms list: 'REALM.EXAMPLE.COM'

Expected results:

default idmap_verbosity is 0


Additional info:

Comment 1 Yongcheng Yang 2022-02-24 02:31:15 UTC
I'm deferring this to the next minor release for now but feel free to change that.

Comment 2 Dave Wysochanski 2022-03-03 20:09:56 UTC
I think we just need this backported to RHEL8
commit 0095435db8228d5a88ec35a63cb64271e2e648a8
Author: Steve Dickson <steved>
Date:   Thu Dec 19 12:48:31 2019 -0500

    libnfsidmap: Turn off default verbosity

    Commit f080188e changed the library's verbosity
    to be on by default. The patch turns it off by
    default

    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1774787

Comment 3 Steve Dickson 2022-03-07 15:27:14 UTC
I would like to get this simple patch into rhel-6.6
--- a/support/nfsidmap/libnfsidmap.c
+++ b/support/nfsidmap/libnfsidmap.c
@@ -101,7 +101,7 @@ static void default_logger(const char *fmt, ...)
 
 #pragma GCC visibility pop
 nfs4_idmap_log_function_t idmap_log_func = default_logger;
-int idmap_verbosity = 2;
+int idmap_verbosity = 0;
 #pragma GCC visibility push(hidden)

Comment 15 Yongcheng Yang 2022-03-14 09:50:58 UTC
Verified in nfs-utils-2.3.3-51.el8 (libnfsidmap-2.3.3-51.el8)
~~~~~~~~~~~
Beaker job: https://beaker.engineering.redhat.com/jobs/6395516
--------------------------------------------------------------
[04:11:51 root@ ~~]# >/var/log/messages
[04:11:51 root@ ~~]# mount -t nfs -o vers=4.0 fsqe-r6515-01.fs.lab.eng.bos.redhat.com:/home/qa /nfs-mount
[04:11:51 root@ ~~]# cat /proc/mounts | grep /nfs-mount
fsqe-r6515-01.fs.lab.eng.bos.redhat.com:/home/qa /nfs-mount nfs4 rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.16.209.64,local_lock=none,addr=10.16.224.253 0 0
[04:11:51 root@ ~~]# ls -l /nfs-mount
total 0
-rw-r--r--. 1 qa   qa   0 Mar 14 04:11 file_qa
-rw-r--r--. 1 root root 0 Mar 14 04:11 file_root
[04:11:51 root@ ~~]# sleep 2; sync; sync; cat /var/log/messages
Mar 14 04:11:50 koza-1 restraintd[5310]: use_pty:FALSE /usr/share/restraint/plugins/run_task_plugins /usr/share/restraint/plugins/run_plugins
Mar 14 04:11:50 koza-1 restraintd[5310]: <no matches>
Mar 14 04:11:50 koza-1 restraintd[5310]: Uploading avc.log .done
...

Compared with previous version 2.3.3-50.el8
~~~~~~~~~~~
Beaker job: https://beaker.engineering.redhat.com/jobs/6395244
--------------------------------------------------------------
[01:09:35 root@ ~~]# >/var/log/messages
[01:09:35 root@ ~~]# mount -t nfs -o vers=4.0 fsqe-r640-02.fs.lab.eng.bos.redhat.com:/home/qa /nfs-mount
[01:09:35 root@ ~~]# cat /proc/mounts | grep /nfs-mount
fsqe-r640-02.fs.lab.eng.bos.redhat.com:/home/qa /nfs-mount nfs4 rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.16.225.1,local_lock=none,addr=10.16.224.250 0 0
[01:09:35 root@ ~~]# ls -l /nfs-mount
total 0
-rw-r--r--. 1 qa   qa   0 Mar 14 01:09 file_qa
-rw-r--r--. 1 root root 0 Mar 14 01:09 file_root
[01:09:35 root@ ~~]# sleep 2; sync; sync; cat /var/log/messages
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27343]: libnfsidmap: using domain: test.com
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27343]: libnfsidmap: Realms list: 'TEST.COM'
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27343]: libnfsidmap: loaded plugin /usr/lib64/libnfsidmap/nsswitch.so for method nsswitch
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27344]: libnfsidmap: using domain: test.com
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27344]: libnfsidmap: Realms list: 'TEST.COM'
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27344]: libnfsidmap: loaded plugin /usr/lib64/libnfsidmap/nsswitch.so for method nsswitch
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27347]: libnfsidmap: using domain: test.com
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27347]: libnfsidmap: Realms list: 'TEST.COM'
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27347]: libnfsidmap: loaded plugin /usr/lib64/libnfsidmap/nsswitch.so for method nsswitch
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27348]: libnfsidmap: using domain: test.com
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27348]: libnfsidmap: Realms list: 'TEST.COM'
Mar 14 01:09:35 fsqe-r6515-02 nfsidmap[27348]: libnfsidmap: loaded plugin /usr/lib64/libnfsidmap/nsswitch.so for method nsswitch
...

Comment 16 Dave Wysochanski 2022-03-14 10:19:46 UTC
Thanks all for getting this in to 8.6!

Comment 23 errata-xmlrpc 2022-05-10 15:20:51 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 (nfs-utils bug fix and enhancement 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/RHBA-2022:2025