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 1072291

Summary: [idmap] chown return OK, but can not get the right uid:gid;
Product: Red Hat Enterprise Linux 6 Reporter: JianHong Yin <jiyin>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED DUPLICATE QA Contact: Filesystem QE <fs-qe>
Severity: high Docs Contact:
Priority: high    
Version: 6.6   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-04 09:24:22 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:

Description JianHong Yin 2014-03-04 10:22:14 UTC
Description of problem:
chown return OK, but can not get the right uid:gid; get follow err log:
 nss_getpwnam: name 'nobody' does not map into domain 'test.com'

Version-Release number of selected component (if applicable):
------------------------------------------------
Time & CURDIR : [2014-03-04 03:05:16 @/mnt/tests/CoreOS/nfs-utils/Multihost/idmapping]
Case Name     : /CoreOS/nfs-utils/Multihost/idmapping
$HOSTNAME     : dell-gx240-01.rhts.eng.bos.redhat.com
Distro Info   : RedHatEnterpriseServer 6.5 : RHEL-6.5
NVR & host    : Linux dell-gx240-01.rhts.eng.bos.redhat.com 2.6.32-431.el6.i686 #1 SMP Sun Nov 10 22:20:22 EST 2013 i686 i686 i386 GNU/Linux
cmdline       :
	ro root=/dev/mapper/vg_dellgx24001-lv_root rd_NO_LUKS rd_LVM_LV=vg_dellgx24001/lv_root rd_LVM_LV=vg_dellgx24001/lv_swap rd_NO_MD SYSFONT=latarcyrheb-sun16  console=ttyS1,115200  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM LANG=en_US.UTF-8
Package Info  :
	package libnfsidmap is not installed
	package libsss_idmap is not installed
	libtirpc-0.2.1-6.el6_4.i686
	nfs-utils-1.2.3-39.el6.i686
------------------------------------------------

How reproducible:
always

Steps to Reproduce:
1.
2.
3.
http://pkgs.devel.redhat.com/cgit/tests/nfs-utils/tree/Multihost/idmapping/runtest.sh

Actual results:
http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2014/03/6045/604516/1251465/19573064/TESTOUT.log
[03:05:48 root@ /mnt/tests/CoreOS/nfs-utils/Multihost/idmapping]# chown qa:qa $mnt/file3
:: [   PASS   ] :: Test root chown return code correct. (Expected 0, got 0)
--------------------------------------------------------------------------------

[03:05:49 root@ /mnt/tests/CoreOS/nfs-utils/Multihost/idmapping]# ls -l $mnt/file3
-rw-r--r--. 1 nobody nobody 0 Mar  4 03:05 /nfs-mount/file3
:: [   PASS   ] :: Running 'ls -l $mnt/file3' (Expected 0, got 0)
--------------------------------------------------------------------------------

[03:05:49 root@ /mnt/tests/CoreOS/nfs-utils/Multihost/idmapping]# /usr/bin/test  $(stat --format=%U.%G $mnt/file3) = "qa.qa"
:: [   FAIL   ] :: Test chown result correct(qa.qa) (Expected 0, got 1)
--------------------------------------------------------------------------------

[03:05:49 root@ /mnt/tests/CoreOS/nfs-utils/Multihost/idmapping]# sleep 2; sync; sync; cat /var/log/messages
Mar  4 03:05:48 dell-gx240-01 nfsidmap[3305]: key: 0x3d3f5a94 type: uid value: nobody timeout 600
Mar  4 03:05:48 dell-gx240-01 nfsidmap[3305]: nss_getpwnam: name 'nobody' does not map into domain 'test.com'
Mar  4 03:05:48 dell-gx240-01 nfsidmap[3307]: key: 0x19d979ce type: gid value: nobody timeout 600
:: [   PASS   ] :: Running 'sleep 2; sync; sync; cat /var/log/messages' (Expected 0, got 0)
--------------------------------------------------------------------------------


Expected results:
http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2014/03/6045/604518/1251477/19573088/TESTOUT.log
[03:22:30 root@ /mnt/tests/CoreOS/nfs-utils/Multihost/idmapping]# chown qa:qa $mnt/file3
:: [   PASS   ] :: Test root chown return code correct. (Expected 0, got 0)
--------------------------------------------------------------------------------

[03:22:30 root@ /mnt/tests/CoreOS/nfs-utils/Multihost/idmapping]# ls -l $mnt/file3
-rw-r--r--. 1 qa qa 0 Mar  4 03:22 /nfs-mount/file3
:: [   PASS   ] :: Running 'ls -l $mnt/file3' (Expected 0, got 0)
--------------------------------------------------------------------------------

[03:22:30 root@ /mnt/tests/CoreOS/nfs-utils/Multihost/idmapping]# /usr/bin/test  $(stat --format=%U.%G $mnt/file3) = "qa.qa"
:: [   PASS   ] :: Test chown result correct(qa.qa) (Expected 0, got 0)
--------------------------------------------------------------------------------

[03:22:30 root@ /mnt/tests/CoreOS/nfs-utils/Multihost/idmapping]# sleep 2; sync; sync; cat /var/log/messages
Mar  4 03:22:30 sun-x4200-01 rpc.idmapd[5899]: Client 0: (user) id "503" -> name "qa"
Mar  4 03:22:30 sun-x4200-01 rpc.idmapd[5899]: Client 0: (group) id "503" -> name "qa"
:: [   PASS   ] :: Running 'sleep 2; sync; sync; cat /var/log/messages' (Expected 0, got 0)
--------------------------------------------------------------------------------

Additional info:
  Test in RHEL6.2 success; but in RHEL6.5 Fail.

Comment 3 JianHong Yin 2014-05-04 09:24:22 UTC

*** This bug has been marked as a duplicate of bug 1043558 ***