RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1658571 - sosreport collects only the tail of a postgresql dump [rhel-7.6.z]
Summary: sosreport collects only the tail of a postgresql dump [rhel-7.6.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: Miroslav Hradílek
Marie Hornickova
URL:
Whiteboard:
Depends On: 1656278 1658939
Blocks: 1654068
TreeView+ depends on / blocked
 
Reported: 2018-12-12 12:35 UTC by RAD team bot copy to z-stream
Modified: 2022-03-13 16:27 UTC (History)
8 users (show)

Fixed In Version: sos-3.6-13.el7_6
Doc Type: Bug Fix
Doc Text:
If a PostgreSQL database was dumped into a file larger than 25 MB, the sosreport tool collected only the last 25 MB of the dump. With this update, sosreport has been fixed, and it now collects PostgreSQL dumps of any size correctly.
Clone Of: 1656278
Environment:
Last Closed: 2019-01-29 17:23:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos pull 1416 0 None None None 2018-12-12 12:35:16 UTC
Github sosreport sos pull 1497 0 None None None 2018-12-12 12:35:16 UTC
Red Hat Knowledge Base (Solution) 3736571 0 None None None 2018-12-12 12:35:16 UTC
Red Hat Product Errata RHBA-2019:0184 0 None None None 2019-01-29 17:23:36 UTC

Description RAD team bot copy to z-stream 2018-12-12 12:35:14 UTC
This bug has been copied from bug #1656278 and has been proposed to be backported to 7.6 z-stream (EUS).

Comment 3 Pavel Moravec 2018-12-12 13:22:03 UTC
Didi,
could you please verify the fix against this build for 7.6.2?


A yum repository for the build of sos-3.6-12.el7_6 (task 19472493) is available at:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.6/12.el7_6/

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.6/12.el7_6/sos-3.6-12.el7_6.repo

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

The full list of available rpms is:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.6/12.el7_6/noarch/sos-3.6-12.el7_6.src.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.6/12.el7_6/noarch/sos-3.6-12.el7_6.noarch.rpm

Build output will be available for the next 21 days.

Comment 4 Pavel Moravec 2018-12-12 14:32:39 UTC
That build is failing, please use this one instead:

A yum repository for the build of sos-3.6-13.el7_6 (task 19473075) is available at:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.6/13.el7_6/

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.6/13.el7_6/sos-3.6-13.el7_6.repo

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

The full list of available rpms is:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.6/13.el7_6/noarch/sos-3.6-13.el7_6.src.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.6/13.el7_6/noarch/sos-3.6-13.el7_6.noarch.rpm

Build output will be available for the next 21 days.

Comment 5 Liran Rotenberg 2019-01-02 12:15:12 UTC
Verified on:
Red Hat Enterprise Linux Server release 7.6 (Maipo)
sos-3.6-13.el7_6.noarch
ovirt-engine-setup-4.3.0-0.6.alpha2.el7.noarch

Steps taken from: https://bugzilla.redhat.com/show_bug.cgi?id=1654068#c9
1. Make sure your engine db is large enough, so that its dump is > 25MiB. I did this with:

su - postgres
scl enable rh-postgresql95 bash

psql engine
create table test1(a varchar(512))
alter table test1 owner to engine
\q

a=$(printf 'a%.0s' $(seq 511)); for i in $(seq 50000); do echo "insert into test1 values('$a');"; done | psql engine

Obviously, there are other means (such as creating many VMs/Disks/NICs/etc. and/or causing lots of errors so that the audit_log is filled).

2. ovirt-log-collector

This creates an archive /tmp/sosreport-LogCollector-$TIMESTAMP.tar.xz

3. cd /tmp; tar xpf sosreport-LogCollector-$TIMESTAMP.tar.xz

4. cd sosreport-LogCollector-$TIMESTAMP

5. cd log-collector-data

6. tar xpf postgresql-sosreport-*.tar.xz

7. cd to generated directory postgresql-sosreport-*

8. cd sos_commands/postgresql

9. check the files there (e.g. with ls -l, 'file', or 'less < file').

Results:
# ls -sh
total 29M
29M pgdump-scl-rh-postgresql95.tar
# file pgdump-scl-rh-postgresql95.tar 
pgdump-scl-rh-postgresql95.tar: POSIX tar archive

As expected.
Removing Didi from needinfo flag.

Comment 10 errata-xmlrpc 2019-01-29 17:23:32 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/RHBA-2019:0184


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