Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 180270

Summary: rhn-applet: rpm verify fails due to config files in .spec not marked with %verify
Product: Red Hat Enterprise Linux 4 Reporter: Beth Nackashi <bnackash>
Component: rhn-appletAssignee: Robin Norwood <robin.norwood>
Status: CLOSED ERRATA QA Contact: Beth Nackashi <bnackash>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2006-0472 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 21:34:44 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:
Bug Depends On:    
Bug Blocks: 81409, 179644, 181409    

Description Beth Nackashi 2006-02-06 20:57:18 UTC
+++ This bug was initially created as a clone of Bug #180268 +++

Description of problem:
The TPS rpm --verify tests fail because the /etc/sysconfig/rhn/rhn-applet config
file will always be different from default.  Why?  Because the uuid field gets
populated during the installation process.  The spec file needs to be flagged
with approriate %verify bits so it passes this test.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Fanny Augustin 2006-04-11 00:16:45 UTC
Blocking rhnupr4u4 and rhnupr3u8 to track the progress of the release

Comment 2 Robin Norwood 2006-05-03 21:02:45 UTC
Should be fixed in CVS.

See also: bug #180268

Comment 3 Robin Norwood 2006-05-03 21:13:21 UTC
*** Bug 185697 has been marked as a duplicate of this bug. ***

Comment 6 Beth Nackashi 2006-06-02 20:00:31 UTC
Package tested:
rhn-applet-2.1.25-16

Architectures tested:
i386, ia64, x86_64, s390, s390x, ppc

All had a timestamp change on the config file.  Should timestamp be added to the
list of excludes as well?

[root@test01-ia64 tmp]# rpm -V rhn-applet
........C c /etc/sysconfig/rhn/rhn-applet



Comment 7 Beth Nackashi 2006-06-02 20:07:56 UTC
Hmm.  After further research, I see that this is not timestamp related at all. 
This is some sort of "context" flag.  It means that the context stored in the
file's extended attribute on disk is inconsistent with the file_contexts
configuration.  To fix, run /sbin/restorecon on the file(s) in question.

So, should "context" be added to the list of excludes?  Is that even allowed?

Comment 8 Robin Norwood 2006-06-27 21:58:16 UTC
ok - this has been fixed by adding the following to the %post section:

chcon system_u:object_r:etc_t /etc/sysconfig/rhn/rhn-applet


Comment 9 Beth Nackashi 2006-06-27 22:28:53 UTC
verified on s390, s390x, ppc, ia64, i386, and x86_64 with package
rhn-applet-2.1.25-22

rpm -V now gives empty response

TPS tests *should* pass.  Let's hope so.

Comment 11 Red Hat Bugzilla 2006-08-10 21:34:45 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0472.html