Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionDouglas 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
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).
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.
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
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