Bug 1159943

Summary: All mounted files owned by NFS nobody
Product: [Fedora] Fedora Reporter: Tomas Babej <tbabej>
Component: libnfsidmapAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: kim-rh, mkosek, orion, pspacek, rodd, scotto701, steved, tbabej
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libnfsidmap-0.26-2.1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-10 05:57:17 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:
Attachments:
Description Flags
Documents the process of breaking the VM none

Description Tomas Babej 2014-11-03 16:30:26 UTC
Created attachment 953159 [details]
Documents the process of breaking the VM

Description of problem:

After upgrading to libnfsidmap 0.26-2.0.fc21, my mounted files show up as belonging to NFS nobody.

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

0.26-2.0.fc21

How reproducible:

Always

Steps to Reproduce:
1. Upgrade to libnfsidmap 0.26-2.0.fc21
2. Reboot

Actual results:

All files belonging to nfsnobody:nfsnobody.

Expected results:

All files belong to me.

Additional info:

I found this does not work after upgrade, so I hunted down the package that caused the breakage to the libnfsidmap. Actual progress is captured in the attachment.

Comment 1 Tomas Babej 2014-11-03 16:37:49 UTC
Note to anybody hitting the issue:

Downgrading to libnfsidmap-0.26-0.1.fc21.x86_64 solves the problem.

# yum downgrade libnfsidmap

Comment 2 Petr Spacek 2014-11-04 11:15:20 UTC
Okay, it seems to be caused by broken rpc.idmapd:

# rpc.idmapd
rpc.idmapd: symbol lookup error: rpc.idmapd: undefined symbol: strlcpy

# strace -f -e open rpc.idmapd 
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libevent-2.0.so.5", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libnfsidmap.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
rpc.idmapd: symbol lookup error: rpc.idmapd: undefined symbol: strlcpy

# ldd `which rpc.idmapd`
	linux-vdso.so.1 =>  (0x00007fff8dd79000)
	libevent-2.0.so.5 => /lib64/libevent-2.0.so.5 (0x00007f9cad3eb000)
	libnfsidmap.so.0 => /lib64/libnfsidmap.so.0 (0x00007f9cad1e3000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f9cace26000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9cacc0a000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f9caca06000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9cad84a000)

# rpm -qf /lib64/libdl.so.2 /lib64/libpthread.so.0 /lib64/libc.so.6 /lib64/libevent-2.0.so.5 | sort | uniq
glibc-2.20-2.fc21.x86_64
libevent-2.0.21-6.fc21.x86_64

Comment 3 Steve Dickson 2014-11-04 15:25:13 UTC
*** Bug 1158846 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2014-11-04 21:01:10 UTC
libnfsidmap-0.26-2.1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/FEDORA-2014-13629/libnfsidmap-0.26-2.1.fc21

Comment 5 scotto701 2014-11-05 04:35:19 UTC
(In reply to Fedora Update System from comment #4)
> libnfsidmap-0.26-2.1.fc21 has been submitted as an update for Fedora 21.
> https://admin.fedoraproject.org/updates/FEDORA-2014-13629/libnfsidmap-0.26-2.
> 1.fc21

This fixes the issue for me.

rpm -q libnfsidmap
libnfsidmap-0.26-2.1.fc21.x86_6

systemctl status nfs-idmapd
â nfs-idmapd.service - NFSv4 ID-name mapping service
   Loaded: loaded (/usr/lib/systemd/system/nfs-idmapd.service; static)
   Active: active (running) since Sun 2014-11-02 18:54:29 PST; 2 days ago
 Main PID: 4109 (rpc.idmapd)
   CGroup: /system.slice/nfs-idmapd.service
           ââ4109 /usr/sbin/rpc.idmapd

Comment 6 Fedora Update System 2014-11-05 19:23:41 UTC
Package libnfsidmap-0.26-2.1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libnfsidmap-0.26-2.1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-13629/libnfsidmap-0.26-2.1.fc21
then log in and leave karma (feedback).

Comment 7 Steve Dickson 2014-11-05 21:47:48 UTC
*** Bug 1151938 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2014-11-10 05:57:17 UTC
libnfsidmap-0.26-2.1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.