Bug 188096

Summary: up2date fails if started from NFS mounted directory and restarts NFS
Product: Red Hat Enterprise Linux 3 Reporter: Boris Vinarsky <borisv>
Component: up2dateAssignee: Bret McMillan <bretm>
Status: CLOSED WONTFIX QA Contact: Brandon Perkins <bperkins>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-19 18:45:26 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:

Description Boris Vinarsky 2006-04-06 00:12:00 UTC
Description of problem:
If "up2date -u" is started from command line in NFS mounted directory and NFS 
is restarted as a part of installation of one of the packages up2date fails 
leaving system in inconsistent state.

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

How reproducible:
Happened once, but is for sure reproducible.

Steps to Reproduce:
1. mount someserver:/users/jdow /misc
2. cd /misc
3. up2date -u
  
Actual results:
...
  71:autofs                 ########################################### [100%]
error: unpacking of archive failed on file /misc: cpio: chown
Shutting down NFS mountd: [  OK  ]
Shutting down NFS daemon: [  OK  ]
Shutting down NFS quotas: [  OK  ]
Shutting down NFS services:  [  OK  ]
Stopping NFS statd: [  OK  ]
There was a fatal RPM install error. The message was:
There was a rpm unpack error installing the package: autofs-4.1.3-168
...
Restarting up2date indicates that rpm database is corrupted
[root@silverado root]# up2date -u
RPM error.  The message was:
Could not determine what version of Red Hat Linux you are running.
If you get this error, try running 

                rpm --rebuilddb
Running "rpm --rebuilddb" works fine, but does not help with up2date. It fails 
with the same error


Expected results:
up2date should detect that it is started un NFS mounted directory and exit 
with error message, or it should not install package that require NFS restart 
to avoid pulling a rug from under itself, or it should change directory to 
root right after start and refork itself there like a daemon.


Additional info:

Comment 1 Red Hat Bugzilla 2007-04-12 00:37:48 UTC
User bnackash's account has been closed

Comment 2 RHEL Program Management 2007-10-19 18:45:26 UTC
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
 
For more information of the RHEL errata support policy, please visit:
http://www.redhat.com/security/updates/errata/
 
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.