Bug 1897903

Summary: collect rh-postgresql12 data for Satellite6.8 [rhel-7.9.z]
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Moravec <pmoravec>
Component: sosAssignee: Jan Jansky <jjansky>
Status: CLOSED ERRATA QA Contact: Maros Kopec <makopec>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.9CC: agk, bmr, fkrska, jreznik, ktordeur, mhradile, mkalyat, momran, plambri, pmoravec, sbradley, theute
Target Milestone: rcKeywords: OtherQA, Triaged, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: sos-3.9-5.el7_9.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-02 11:59:00 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:

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