Bug 1719884

Summary: pcp plugin for sosreport treats pmlogger binaries over 100MB as a file with string and corrupts it (be default)
Product: Red Hat Enterprise Linux 8 Reporter: Pavel Moravec <pmoravec>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Miroslav HradĂ­lek <mhradile>
Severity: high Docs Contact:
Priority: high    
Version: 8.1CC: agk, bmr, chorn, fche, gavin, jrfuller, mhradile, plambri, pmoravec, sbradley, yuokada
Target Milestone: rcKeywords: OtherQA
Target Release: 8.1Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-3.7-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1639166 Environment:
Last Closed: 2019-11-05 22:32:24 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: 1639166    
Bug Blocks:    

Comment 2 Pavel Moravec 2019-06-13 10:20:19 UTC
Christian,
could you be so kind and verify the same bug against 8.1 sos build?


A yum repository for the build of sos-3.7-1.el8 (task 22133742) is available at:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/1.el8/

You can install the rpms locally by putting this .repo file in your /etc/yum.repos.d/ directory:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/1.el8/sos-3.7-1.el8.repo

RPMs and build logs can be found in the following locations:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/1.el8/noarch/

The full list of available rpms is:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/1.el8/noarch/sos-3.7-1.el8.src.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/1.el8/noarch/sos-audit-3.7-1.el8.noarch.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/1.el8/noarch/sos-3.7-1.el8.noarch.rpm

Build output will be available for the next 21 days.

Comment 3 Christian Horn 2019-06-14 05:14:50 UTC
I had yesterday setup to install 8.1 nightly composes into KVM guests, that directly
gave me that sos version.

[root@rhel8u1a rhel8u1a]# rpm -q sos
sos-3.7-1.el8.noarch
[root@rhel8u1a rhel8u1a]# 

Original host directory:
[root@rhel8u1a rhel8u1a]# ls -al /var/log/pcp/pmlogger/rhel8u1a/|tail -15
-rw-r--r--. 1 pcp  pcp   39290856 Jun 14 07:12 20190614.05.31.0
-rw-r--r--. 1 pcp  pcp       6932 Jun 14 07:12 20190614.05.31.index
-rw-r--r--. 1 pcp  pcp     522717 Jun 14 07:12 20190614.05.31.meta
-rw-r--r--. 1 root root   1123620 Jun 14 07:00 20190614.08.31.0.xz
-rw-r--r--. 1 root root      7532 Jun 14 07:00 20190614.08.31.index
-rw-r--r--. 1 root root     60260 Jun 14 07:00 20190614.08.31.meta.xz
-rw-r--r--. 1 root root     37060 Jun 14 07:00 20190614.09.30.0.xz
-rw-r--r--. 1 root root       312 Jun 14 07:00 20190614.09.30.index
-rw-r--r--. 1 root root     51936 Jun 14 07:00 20190614.09.30.meta.xz
-rw-r--r--. 1 root root 329814648 Jun 14 07:00 20190614.09.31.0
-rw-r--r--. 1 root root     33692 Jun 14 07:00 20190614.09.31.index
-rw-r--r--. 1 root root   3811015 Jun 14 07:00 20190614.09.31.meta
-rw-r--r--. 1 pcp  pcp        219 Jun 14 05:31 Latest
-rw-r--r--. 1 pcp  pcp      32222 Jun 14 05:31 pmlogger.log
-rw-r--r--. 1 pcp  pcp      32297 Jun 14 05:31 pmlogger.log.prior
[root@rhel8u1a rhel8u1a]# 

sosreport captured directory:
[root@rhel8u1a rhel8u1a]# ls -al /root/tmp/sosreport-rhel8u1a-2019-06-14-xoefkfn/var/log/pcp/pmlogger/rhel8u1a
total 363068
drwxr-xr-x. 2 root root      4096 Jun 14 07:00 .
drwxrwxr-x. 3 root root       124 Jun 14 06:55 ..
-rw-r--r--. 1 pcp  pcp   36256420 Jun 14 07:04 20190614.05.31.0
-rw-r--r--. 1 pcp  pcp       6372 Jun 14 07:04 20190614.05.31.index
-rw-r--r--. 1 pcp  pcp     481964 Jun 14 07:04 20190614.05.31.meta
-rw-r--r--. 1 root root   1123620 Jun 14 07:00 20190614.08.31.0.xz
-rw-r--r--. 1 root root      7532 Jun 14 07:00 20190614.08.31.index
-rw-r--r--. 1 root root     60260 Jun 14 07:00 20190614.08.31.meta.xz
-rw-r--r--. 1 root root     37060 Jun 14 07:00 20190614.09.30.0.xz
-rw-r--r--. 1 root root       312 Jun 14 07:00 20190614.09.30.index
-rw-r--r--. 1 root root     51936 Jun 14 07:00 20190614.09.30.meta.xz
-rw-r--r--. 1 root root 329814648 Jun 14 07:00 20190614.09.31.0
-rw-r--r--. 1 root root     33692 Jun 14 07:00 20190614.09.31.index
-rw-r--r--. 1 root root   3811015 Jun 14 07:00 20190614.09.31.meta
-rw-r--r--. 1 pcp  pcp      32222 Jun 14 05:31 pmlogger.log
-rw-r--r--. 1 pcp  pcp      32297 Jun 14 05:31 pmlogger.log.prior
[root@rhel8u1a rhel8u1a]# 

=> We captured the most recent files.  pmrep and pminfo tools
   can also access the archived files, the issue seems fixed to me.

Comment 4 Christian Horn 2019-06-14 05:17:01 UTC
(Just for my reference, I opened bz1720440 , have hit that on the compose from last night.)

Comment 7 errata-xmlrpc 2019-11-05 22:32:24 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://access.redhat.com/errata/RHEA-2019:3640