Bug 526368

Summary: rpm updates fail for nfs-mounted directories
Product: [Fedora] Fedora Reporter: Frank Ch. Eigler <fche>
Component: filesystemAssignee: Ondrej Vasik <ovasik>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: meherab.023012, ovasik
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: 2009-09-30 12:32:12 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 Frank Ch. Eigler 2009-09-30 01:21:27 UTC
On some of my machines, I have an NFS RO-mounted /home.
When the "filesystem" rpm attempts to update, it invariably
fails with a low level cpio error, after it tried to do something
or another to the NFS mount.  Then rpm fails, without an
indication of what actually is wrong or how to fix it.

Please investigate if there is some way to improve the user
experience here.

Comment 1 Ondrej Vasik 2009-09-30 06:50:17 UTC
I'll try to check with rpm guys if it could be solved. Anyway - could you please specify that low level cpio error? TIA.

Comment 2 Ondrej Vasik 2009-09-30 09:44:13 UTC
Additionally, could you please add information which way of update you have tried?  Was it update via PackageKit , yum or simple rpm -U on downloaded rpm? Could you try other ways? TIA.

Comment 3 Frank Ch. Eigler 2009-09-30 11:33:44 UTC
Sure, via yum:

....
  Installing     : filesystem .... 
Error unpacking rpm package filesystem-2.4.30-2.fc12.x86_64
error: unpacking of archive failed on file /home: cpio: lsetfilecon

Failed:
  filesystem.x86_64 ....

Comment 4 Ondrej Vasik 2009-09-30 12:32:12 UTC
Discussed with rpm guy, we both tend to close this bugzilla NOTABUG. 

It is expected that rpm update should fail when one or more of the package files/dirs are not installed due to read only target filesystem. Any other behaviour could lead to incomplete package update, imagine package update on filesystem with read only /usr. Maybe error from rpm could be more comprehensive to allow user better address the issue. But this could be only suggested as RFE for rpm. Feel free to make a suggestion there.

Comment 5 Md. Meherab Ali 2019-09-05 03:13:35 UTC
You can try to unmount the said directory the the error. For example, if your error message shows like bellow error, then umount the /mnt directory which may be mounted by cdrom.

error: unpacking of archive failed on file /mnt: cpio: lsetfilecon