Bug 1327326

Summary: rpm -V tomcat fails on /var/log/tomcat/catalina.out
Product: Red Hat Enterprise Linux 7 Reporter: Coty Sutherland <csutherl>
Component: tomcatAssignee: Coty Sutherland <csutherl>
Status: CLOSED ERRATA QA Contact: fgoldefu
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.3CC: mbabacek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1327327 1341853 (view as bug list) Environment:
Last Closed: 2016-11-03 21:11:51 UTC Type: Bug
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: 1298191, 1327327, 1341853    

Description Coty Sutherland 2016-04-14 19:32:09 UTC
Description of problem:
When the command `rpm -V tomcat` is run, the verification test run on /var/log/tomcat/catalina.out fails. The PID file also fails because
of the change in mtime and probably should be ignored also.

Version-Release number of selected component (if applicable):
tomcat-7.0.54-3.el7.noarch

How reproducible: 
Always

Steps to Reproduce:
1. Install tomcat on RHEL 7
2. Start the tomcat service
3. # rpm -V tomcat

Actual results:
S.5....T.    /var/log/tomcat/catalina.out
.......T.    /var/run/tomcat.pid

Expected results:


Additional info:
Catalina.out and the pid file should pass verification, or not be included.

Comment 2 Coty Sutherland 2016-05-18 15:22:47 UTC
This is a very minor issue that can be resolved with a spec update. Something like what was done on the upstream bug (except I don't think the PID file is affected in RHEL tomcat):

--- tomcat.spec
+++ tomcat.spec
@@ -538,8 +538,8 @@ fi
 %defattr(0664,tomcat,root,0770)
 %attr(0770,tomcat,root) %dir %{logdir}
 %defattr(0664,root,tomcat,0770)
-%attr(0660,tomcat,tomcat) %{logdir}/catalina.out
-%attr(0644,tomcat,tomcat) %{_localstatedir}/run/%{name}.pid
+%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
+%attr(0644,tomcat,tomcat) %verify(not size md5 mtime) %{_localstatedir}/run/%{name}.pid
 %attr(0770,root,tomcat) %dir %{cachedir}
 %attr(0770,root,tomcat) %dir %{tempdir}
 %attr(0770,root,tomcat) %dir %{workdir}

Comment 8 errata-xmlrpc 2016-11-03 21:11:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2599.html