Bug 518469 - CPIO error when upgrading spacewalk-java
Summary: CPIO error when upgrading spacewalk-java
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Installation
Version: 0.6
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space07
TreeView+ depends on / blocked
 
Reported: 2009-08-20 14:19 UTC by Mark Chappell
Modified: 2009-12-07 12:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-07 12:02:52 UTC
Embargoed:


Attachments (Terms of Use)
Patch (1.35 KB, patch)
2009-08-20 14:30 UTC, Mark Chappell
no flags Details | Diff

Description Mark Chappell 2009-08-20 14:19:37 UTC
Description of problem:

When upgrading spacewalk-java 

[root@gyne ~]# rpm -Uvh --force spacewalk-java-0.6.43-1.git.15a22acd63f840b01884bb9df4ad72baa840119c.noarch.rpm
Preparing...                ########################################### [100%]
   1:spacewalk-java         ########################################### [100%]
error: unpacking of archive failed on file /var/satellite/systemlogs/audit-review.log: cpio: rename failed - Operation not permitted

Version-Release number of selected component (if applicable):
spacewalk-java-0.6.43-1

Steps to Reproduce:
1. install spacewalk
2. upgrade spacewalk-java
  
Actual results:
error: unpacking of archive failed on file /var/satellite/systemlogs/audit-review.log: cpio: rename failed - Operation not permitted

Expected results:

Should install cleanly

Additional info:

While there's the question of why the a attr ends up on the file.  There is also the point that it's a log file it should now be overwritten by rpm

Patch is trivial 

java/spacewalk-java.spec

    241 %ghost %attr(644, tomcat, root) %{_var}/satellite/systemlogs/audit-review.log

Comment 1 Mark Chappell 2009-08-20 14:30:10 UTC
Created attachment 358101 [details]
Patch

Proposed fix, we should *not* be over writing any log files.

Comment 2 Miroslav Suchý 2009-08-20 14:56:12 UTC
Patch looks good.
Commited as 5d7d722dc09eae0c1bfcb5cb34fc24f6d0ab3a16

Comment 3 Miroslav Suchý 2009-12-07 12:02:52 UTC
Spacewalk 0.7 released.


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