Bug 155060 - postun scriptlet fails on backout
postun scriptlet fails on backout
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: nfs-utils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Steve Dickson
Petr Beňas
Depends On:
  Show dependency treegraph
Reported: 2005-04-15 17:22 EDT by Joe Keller
Modified: 2015-01-04 17:58 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-20 11:58:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch for fixing the bug (511 bytes, patch)
2005-04-15 17:22 EDT, Joe Keller
no flags Details | Diff

  None (edit)
Description Joe Keller 2005-04-15 17:22:38 EDT
Description of problem:

When backing out nfs-utils-1.0.6-33EL to nfs-utils-1.0.1-3.9, the %postun 
scriptlet exits with a 1 failing the backout.  The postun for this RPM is
if [ "$1" -ge 1 ]; then
        /etc/rc.d/init.d/nfs condrestart > /dev/null

and the problem is the condrestart does not exist in version 1.0.1-3.9 so if 
you run the command by hand you'll see:

# /etc/rc.d/init.d/nfs condrestart
Usage: nfs {start|stop|status|restart|reload}

Since this call is failing that is the value being returned from the 
scriptlet.  Later versions of the nfs-utils RPM have added additional rc script 
calls (rpcidmapd and rpcgssd) so it would appear the return code from these 
calls are not relevant to the exit code from the scriptlet.  A simple solution 
is to always return 0 (patch provided).

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


How reproducible:


Steps to Reproduce:
1.back out RPM
Actual results:

error: %postun(nfs-utils-1.0.6-33EL) scriptlet failed, exit status 1
error: Erase failed failed in rpmpsmStage().

Expected results:

No error

Additional info:
Comment 1 Joe Keller 2005-04-15 17:22:39 EDT
Created attachment 113257 [details]
Patch for fixing the bug
Comment 2 Steve Dickson 2005-04-16 08:53:57 EDT
Fixed in nfs-utils-1.0.6-35EL
Comment 3 Joe Keller 2005-04-18 11:17:51 EDT
(In reply to comment #2)
> Fixed in nfs-utils-1.0.6-35EL

Where can I find nfs-utils-1.06.35EL?
Comment 4 Steve Dickson 2005-04-22 10:29:54 EDT
It appear the this version missed the U5 boat.... Sorry about that...
So I put it on my people page: http://people.redhat.com/steved/bz155060/
Comment 6 Jiri Pallich 2012-06-20 11:58:14 EDT
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.

Note You need to log in before you can comment on or make changes to this bug.