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 1673784 - postgresql plugin support to PG10
Summary: postgresql plugin support to PG10
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.6
Hardware: All
OS: Linux
high
urgent
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: Miroslav Hradílek
URL:
Whiteboard:
Depends On:
Blocks: 1658509 1715470
TreeView+ depends on / blocked
 
Reported: 2019-02-08 04:22 UTC by Douglas Schilling Landgraf
Modified: 2019-08-06 13:16 UTC (History)
10 users (show)

Fixed In Version: sos-3.7-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1715470 (view as bug list)
Environment:
Last Closed: 2019-08-06 13:15:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos pull 1387 0 'None' closed [Policies|Plugins] Add services member 2020-10-21 09:20:29 UTC
Github sosreport sos pull 1562 0 'None' closed [postgresql] Use postgres 10 scl if installed 2020-10-21 09:20:29 UTC
Red Hat Knowledge Base (Solution) 4217051 0 Troubleshoot None LogCollector does not collect engine DB Dump 2019-06-12 15:34:15 UTC
Red Hat Product Errata RHEA-2019:2295 0 None None None 2019-08-06 13:16:10 UTC

Description Douglas Schilling Landgraf 2019-02-08 04:22:21 UTC
Description of problem:

RHV 4.3 uses PostgreSQL 10, postgresql.py plugin has static value for scl (rh-postgresql95) and no package rh-postgresql10-postgresql-server listed.

Version-Release number of selected component (if applicable):

sos-3.6-13.el7_6.noarch
sos-3.6-14.el7_6.noarch

How reproducible:

- Install RHV 4.3
- run ovirt-log-collector 

It will generate sos_commands/postgresql/pgdump-scl-rh-postgresql95.tar instead of sos_commands/postgresql/pgdump-scl-rh-postgresql10.tar

$ file pgdump-scl-rh-postgresql95.tar 
pgdump-scl-rh-postgresql95.tar: ASCII text

$ cat pgdump-scl-rh-postgresql95.tar 
pg_dump: server version: 10.6; pg_dump version: 9.5.14
pg_dump: aborting because of server version mismatch

Additional info:

# rpm -qa | grep ovirt-log-collector
ovirt-log-collector-4.3.0-1.el7ev.noarch

We should look which postgresql server is enabled and set the scl accordingly, example:

# systemctl list-unit-files | grep postgres 
rh-postgresql10-postgresql.service            enabled 
rh-postgresql10-postgresql@.service           disabled
rh-postgresql95-postgresql.service            disabled
rh-postgresql95-postgresql@.service           disabled

# systemctl list-unit-files | awk '/postgres/ && /enable/' | awk -F '.' '/1/ {print $1}'
rh-postgresql10-postgresql

Comment 2 Jake Hunsaker 2019-02-08 18:24:45 UTC
Proposed upstream sos PR for this: https://github.com/sosreport/sos/pull/1562

Comment 3 Jake Hunsaker 2019-02-08 18:36:32 UTC
Note on the above PR:

The "proper" fix for this can be solved by using sos' `init_system.get_service_status()` which was added after the sos-3.6 release here - https://github.com/sosreport/sos/commit/6db459e2b21a798d93cc79e705e8e02f1bbd24c1

As this will allow us to check for either the 10 or 9.5 scl being *active* rather than just present. I'm not sure if it's feasible to backport the above patch to 7.6 at this point, so the previous PR in c2 is a stop-gap measure until the init system capabilities of sos are present in RHEL (probably RHEL 7.7 / sos-3.7).

Comment 4 Pavel Moravec 2019-02-18 08:41:32 UTC
devel_ack+ for 7.7. We should do rebase to sos-3.7 so PR 1387 for the commit 6db459e will be included.

Updating `SCLPlugin` per Bryn's comment should be easy.

Comment 5 Pavel Moravec 2019-03-21 11:08:25 UTC
POSTed to upstream.

Comment 17 errata-xmlrpc 2019-08-06 13:15:47 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:2295


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