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 1897903 - collect rh-postgresql12 data for Satellite6.8 [rhel-7.9.z]
Summary: collect rh-postgresql12 data for Satellite6.8 [rhel-7.9.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.9
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Jan Jansky
QA Contact: Maros Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-15 13:29 UTC by Pavel Moravec
Modified: 2024-06-13 23:25 UTC (History)
12 users (show)

Fixed In Version: sos-3.9-5.el7_9.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-02 11:59:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos pull 2309 0 None closed [postgresql] reorganize postgres from SCL 2021-02-19 14:15:08 UTC
Github sosreport sos pull 2312 0 None closed [postgresql] reorganize postgres from SCL 2021-02-19 14:15:09 UTC

Description Pavel Moravec 2020-11-15 13:29:28 UTC
Description of problem:
Satellite 6.8 upgraded postgres from postgresql-9.2 to SCL-provided rh-postgresql12-postgresql-12.1-2 . Which means postgres configs and logs are not collected.

Having that info for Satellite6 is crucial:
- config file to examine performance issues
- logs files for performance/deadlocks/backend problems (or to see attempts to insert a record violating some unique index, e.g.)

I will file upstream PR for this in a while.


Version-Release number of selected component (if applicable):
sos-3.9-4.el7_9.noarch


How reproducible:
100%


Steps to Reproduce:
1. Have Sat6.8 installed and run sosreport
2. Check collected:

/var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conf
/var/opt/rh/rh-postgresql12/lib/pgsql/data/log/


Actual results:
Neither config or logs (be aware, different dirname than previous pg_log!) collected.


Expected results:
Both the config and dir collected.


Additional info:

Comment 2 Pavel Moravec 2020-11-18 09:20:41 UTC
Verification steps:

Check on Satellite 6.8 and also on 6.7 (to ensure no regression):

1) postgresql plugin is enabled by default:

# sosreport --list-plugins | grep postgres
 postgresql           PostgreSQL RDBMS
 postgresql.pghome         /var/lib/pgsql  PostgreSQL server home directory.
 postgresql.username       postgres        username for pg_dump
 postgresql.password                       password for pg_dump (password visible in process listings)
 postgresql.dbname                         database name to dump for pg_dump
 postgresql.dbhost                         database hostname/IP (do not use unix socket)
 postgresql.dbport         5432            database server port number
#


2) postgres plugin collects relevant data:
# sosreport -o postgresql --batch --build
..
Your sosreport build tree has been generated in:
  /var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw
#
# find /var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_commands
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_commands/postgresql
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_commands/postgresql/du_-sh_.var.lib.pgsql
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_commands/postgresql/du_-sh_.var..opt.rh.rh-postgresql12.lib.pgsql
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_commands/postgresql/rpm_-V_rh-postgresql12-postgresql-server
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_logs
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_logs/sos.log
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_logs/ui.log
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_reports
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_reports/sos.txt
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_reports/sos.json
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/sos_reports/sos.html
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/PG_VERSION
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/postmaster.opts
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/pg_ident.conf
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/log
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/log/postgresql-Wed.log
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/log/postgresql-Mon.log
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/log/postgresql-Tue.log
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/log/postgresql-Sun.log
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conf
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/pg_hba.conf
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.auto.conf
/var/tmp/sosreport-pmoravec-sat68-on-rhev-2020-11-18-zotgpvw/version.txt
#

and on Sat6.7:

# find /var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_commands
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_commands/postgresql
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_commands/postgresql/du_-sh_.var.lib.pgsql
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_commands/postgresql/rpm_-V_postgresql
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_logs
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_logs/sos.log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_logs/ui.log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_reports
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_reports/sos.txt
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_reports/sos.json
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/sos_reports/sos.html
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_log/postgresql-Mon.log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_log/postgresql-Fri.log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_log/postgresql-Thu.log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_log/postgresql-Sun.log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_log/postgresql-Wed.log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_log/postgresql-Tue.log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_log/postgresql-Sat.log
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/postmaster.opts
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_ident.conf
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/PG_VERSION
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/pg_hba.conf
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/var/lib/pgsql/data/postgresql.conf
/var/tmp/sosreport-pmoravec-sat67-on-rhev-2020-11-18-qdvqntz/version.txt
#

Comment 21 errata-xmlrpc 2021-02-02 11:59:00 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 (sos bug fix and enhancement update), 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-2021:0333


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