Bug 240225

Summary: nfs-utils postuninstall scriptlet failure on upgrade
Product: [Fedora] Fedora Reporter: Ville Skyttä <ville.skytta>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: a1tmblwd, djuran, kasal, moe, thoger, triage
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: bzcl34nup
Fixed In Version: Fedora 8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-04 12:38:38 UTC Type: ---
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: 240352    

Description Ville Skyttä 2007-05-15 20:19:25 UTC
Upgrading from nfs-utils-1.0.10-7.fc6.x86_64 to nfs-utils-1.0.10-10.fc6.x86_64
when nfs is not running results in:

error: %postun(nfs-utils-1.0.10-7.fc6.x86_64) scriptlet failed, exit status 1

...and subsequently:

$ rpm -q nfs-utils
nfs-utils-1.0.10-7.fc6.x86_64
nfs-utils-1.0.10-10.fc6.x86_64

This is because /etc/init.d/nfs condrestart returns an error code (1) if nfs is
not running:

# /etc/init.d/nfs status
rpc.mountd is stopped
nfsd is stopped
# /etc/init.d/nfs condrestart
# echo $?
1

Fix: make nfs condrestart exit with 0 if nfs is not running.

Comment 1 Michael Schwendt 2007-05-16 10:47:58 UTC
*** Bug 240268 has been marked as a duplicate of this bug. ***

Comment 2 Steve Dickson 2007-05-16 17:14:24 UTC
Fixed in nfs-utils-1.0.10-11

Comment 3 Stepan Kasal 2007-05-23 15:49:11 UTC
*** Bug 240979 has been marked as a duplicate of this bug. ***

Comment 4 Michal Jaegermann 2007-05-31 22:39:49 UTC
> Fixed in nfs-utils-1.0.10-11

Well, the same bug hit during an upgrade from nfs-utils-1.0.12-4.fc7
to nfs-utils-1.0.12-6.fc8.  The later has in postuninstall

   .....
  /etc/rc.d/init.d/nfs condrestart > /dev/null
  /etc/rc.d/init.d/nfslock condrestart > /dev/null

and the "nfslock" happens to return with status 0 regardless if
it nfslock service was running or not so everything is apparently
fine.  But the previous line will return 1 if nfs was not running
so if that will show up at the end then we are screwed.

Why not to add an explicit terminating 'return 0' and not to rely on
how scripts in /etc/rc.d/init.d/ were edited at the moment?


Comment 5 Bug Zapper 2008-04-04 07:15:03 UTC
Fedora apologizes that these issues have not been resolved yet. We're
sorry it's taken so long for your bug to be properly triaged and acted
on. We appreciate the time you took to report this issue and want to
make sure no important bugs slip through the cracks.

If you're currently running a version of Fedora Core between 1 and 6,
please note that Fedora no longer maintains these releases. We strongly
encourage you to upgrade to a current Fedora release. In order to
refocus our efforts as a project we are flagging all of the open bugs
for releases which are no longer maintained and closing them.
http://fedoraproject.org/wiki/LifeCycle/EOL

If this bug is still open against Fedora Core 1 through 6, thirty days
from now, it will be closed 'WONTFIX'. If you can reporduce this bug in
the latest Fedora version, please change to the respective version. If
you are unable to do this, please add a comment to this bug requesting
the change.

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we are following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

And if you'd like to join the bug triage team to help make things
better, check out http://fedoraproject.org/wiki/BugZappers