Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable 'pgdg' repo during system packages installation (RHEL) #561

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Jan 24, 2024

We encountered an issue where the python3-psycopg2 package, installed from the pgdg-common repository (published on 23-Jan-2024), caused compatibility problems with Patroni on RHEL 8 distributions due to version 2.9.9 of the package.

Patroni log:

Jan 24 09:23:33 pgnode01 systemd[1]: Started Runners to orchestrate a high-availability PostgreSQL - Patroni.
Jan 24 09:23:33 pgnode01 patroni[10661]: FATAL: Patroni requires psycopg2>=2.5.4, psycopg2-binary, or psycopg>=3.0.0

To solve this problem, we now exclude pgdg repositories during the installation of system packages in order to install system packages (including python3-psycopg2) from system repositories, and not from pgdg.

Before:

[root@pgnode01 /]# yum list installed | grep psycopg
python3-psycopg2.x86_64                   2.9.9-2PGDG.rhel8                                @pgdg-common     

After:

[root@pgnode01 /]# yum list installed | grep psycopg
python3-psycopg2.x86_64            2.7.5-7.el8                                      @appstream   

Additionally:

  • Updated tasks for updating the yum/dnf cache

@vitabaks vitabaks self-assigned this Jan 24, 2024
@vitabaks vitabaks changed the title Disable 'pgdg' repo during system packages installation Disable 'pgdg' repo during system packages installation (RHEL) Jan 24, 2024
@vitabaks vitabaks merged commit e70836c into master Jan 24, 2024
17 checks passed
@vitabaks vitabaks deleted the psycopg-disable-pgdg branch January 24, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant