Bug 56363
Summary: | Update Agent falsely reports successful installation of RPMs | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Robert Nichols <rnichols42> |
Component: | up2date | Assignee: | Adrian Likins <alikins> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Jay Turner <jturner> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | gafton, mihai.ibanescu, srevivo |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i586 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-12-03 21:03:30 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
Robert Nichols
2001-11-16 05:52:11 UTC
I need to dig into rpm and see why librpm isnt complaining about this. And just to be sure, has up2date been configured to just download packages? The configuration for up2date is to auto-install after download. However, I've been unable to reproduce the "0" return code from rpm after the failed install. The behavior of up2date claiming that the failed install was successful _is_ 100% repeatable, even when running up2date in text mode: # rpm -q devfsd devfsd-2.4.2-2 # up2date -p Updating package profile... # up2date -v devfsd Retrieving list of all available packages... Removing installed packages from list of updates... ######################################## Removing packages with files not specified from list... Removing packages marked to skip from list... ######################################## Getting headers for available packages... ######################################## Removing packages with files marked to skip from list... ######################################## Testing package set / solving RPM inter-dependencies... ######################################## Retrieving selected packages... devfsd: ########################## Done. Preparing... ########################################### [100%] 1:devfsd error: can't rename /usr/share/man/man8/devfsd.8.gz to /usr/share/man/man8/devfsd.8.gz-RPMDELETE: Read-only file system error: unpacking of archive failed on file /usr/share/man/man8/devfsd.8.gz: cpio: unlink failed - Read-only file system # echo $? 0 When the above update is performed using the GUI Update Agent, the messages from rpm are not shown and there is no clue that the install failed. Here is what running rpm directly does: # cd /var/spool/up2date/ /var/spool/up2date # ls devfsd-2.4.3-12.i386.hdr devfsd-2.4.3-12.i386.rpm /var/spool/up2date # rpm -U devfsd-2.4.3-12.i386.rpm error: can't rename /usr/share/man/man8/devfsd.8.gz to /usr/share/man/man8/devfsd.8.gz-RPMDELETE: Read-only file system error: unpacking of archive failed on file /usr/share/man/man8/devfsd.8.gz: cpio: unlink failed - Read-only file system /var/spool/up2date # echo $? 1 /var/spool/up2date # rpm -q up2date rpm up2date-2.5.4-1 rpm-4.0.2-8 This should be fixed in 7.3. Better error reporting was added to librpm, and up2date makes use of it. |