Bug 1165322

Summary: nfs-utils pre scriptlet fails to add rpcuser properly
Product: [Fedora] Fedora Reporter: Henrique Martins <fedora>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 21CC: alonbl, bfields, fdeutsch, jlayton, kevin, steved
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-utils-1.3.1-6.1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1190874 (view as bug list) Environment:
Last Closed: 2015-02-15 03:23:02 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: 1190234, 1190874    

Description Henrique Martins 2014-11-18 19:52:04 UTC
Description of problem:
Pre scriptlet for nfs-utils adds gid/uid for rpcuser and nfsnobody.
When adding nfsnobody either groupmod/usermod or groupadd/useradd are used depending on whether nfsnobody already exists in group/passwd.
When adding rpcuser useradd/groupadd is used, which will fail if rpcuser already exists with different uid/guid.


Version-Release number of selected component (if applicable):
nfs-utils-1.3.0-2.4.fc20.x86_64

How reproducible:
At every yum install for several versions back

Steps to Reproduce:
1. Change uid and/or gid of rpcuser in /etc/passwd and/or /etc/group
2. yum isntall some nfs-utils.rpm

Actual results:
Pre scriplet complains it can't set up rcpsuser and that it will use root instead, thus /var/lib/nfs/statd may end up with wrong uid/guid

Expected results:
Clean install, proper permisions on /var/lib/nfs/statd

Additional info:
Simply replicating what is done for nfsnobody should suffice, either by copy and paste/edit, or by creating a common check/add/mod function.

Comment 1 Fedora Update System 2014-12-14 19:02:04 UTC
nfs-utils-1.3.1-4.0.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/FEDORA-2014-15315/nfs-utils-1.3.1-4.0.fc21

Comment 2 Fedora Update System 2014-12-17 04:40:18 UTC
Package nfs-utils-1.3.1-4.0.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 nfs-utils-1.3.1-4.0.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15315/nfs-utils-1.3.1-4.0.fc21
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2015-01-03 19:11:44 UTC
Package nfs-utils-1.3.1-4.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 nfs-utils-1.3.1-4.1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15315/nfs-utils-1.3.1-4.1.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-01-14 07:28:24 UTC
nfs-utils-1.3.1-4.1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Kevin Kofler 2015-01-24 23:15:17 UTC
The error either still shows up or shows up again in nfs-utils-1.3.1-5.0.fc21.

Comment 6 Henrique Martins 2015-01-24 23:31:17 UTC
After I filed this ticket I fixed /etc/{passwd,group} manually, thus I didn't notice whether it was fixed or not.

Just downloaded the source for nfs-utils-1.3.1-6.0.fc21 (on updates testing) and it seems Steve copied the section that creates/fixes the user nfsnobody to create the user rpcuser on /etc/passwd, but didn't copy the sections that creates/fixes the group rpcuser...

Comment 7 Fabian Deutsch 2015-02-09 11:35:11 UTC
I am also seeing this. Any solution on the horizon for this?

Comment 8 Fedora Update System 2015-02-09 19:23:15 UTC
nfs-utils-1.3.1-6.1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/nfs-utils-1.3.1-6.1.fc21

Comment 9 Henrique Martins 2015-02-10 13:45:00 UTC
Latest patch fixes rpcuser's entry in /etc/group properly.
Probably close this bz again.

Comment 10 Fedora Update System 2015-02-15 03:23:02 UTC
nfs-utils-1.3.1-6.1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.