Postgresql:12 and postgresql:13 module conflict on Red Hat Satellite/Capsule while upgrading from version 6.15 to 6.16
Environment
- Red Hat Satellite 6.15
- Red Hat Capsule 6.15
Issue
- The postgresql module conflict on Satellite/Caspule 6.15 when Satellite 6.16 repositories are enabled manually for upgrade.
- The postgresql module conflict on Satellite/Capsule 6.15 when a custom or third party repository that contains a conflicting version of PostgreSQL is enabled on the Satellite/Capsule server.
Resolution
Case (1): If the issue is encountered when Satellite 6.16 repos are enabled:
- Run the following commands on the Satellite server:
# dnf module reset satellite:el8
# dnf module reset postgresql
# dnf module enable postgresql:13
# dnf module enable satellite:el8
- In case the error shown in the
second blockof Diagnostic Steps is encountered, run :
# dnf module disable satellite-capsule:el8
Case (2): If a custom or third party repository that contains a conflicting version of PostgreSQL is enabled on the Satellite/Capsule server:
-
Disable the custom or third party repository (or repositories if there are more than one):
# dnf config-manager --set-disabled Custom-repo -
Enable the required RHEL 8 AppStream and BaseOS repositories, as this is where the required
postgresql:13module stream is provided:# subscription-manager repos --enable rhel-8-for-x86_64-baseos-rpms --enable rhel-8-for-x86_64-appstream-rpms -
Clear the old repository metadata and cache so that DNF recalculates the module streams using only the correct, newly enabled repositories:
# dnf clean all # rm -rf /var/cache/dnf
For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.
Root Cause
- This happens due to change of postgresql version in Satellite 6.15 and 6.16.
- The issue of conflicting postgresql version can also occur when a custom or third party repositories are enabled with a conflicting postgresql.
Diagnostic Steps
-
Output of
yum repolist -v,dnf module listas well as/var/log/dnf.logshows:Modular dependency problems: Problem 1: module satellite:el8:61620241101164956:f539b4f8.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed - module postgresql:12:8090020240209130909:a75119d5.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:13) provided by postgresql:13:8080020230613131941:63b34585.x86_64 from rhel-8-for-x86_64-appstream-rpms - conflicting requests Problem 2: module satellite:el8:61620241118171217:3e90d501.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed - module postgresql:12:8080020230717103820:63b34585.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:13) provided by postgresql:13:8080020230613131941:63b34585.x86_64 from rhel-8-for-x86_64-appstream-rpms - module postgresql:13:8080020230613131941:63b34585.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:12) provided by postgresql:12:8080020230717103820:63b34585.x86_64 from rhel-8-for-x86_64-appstream-rpms - module postgresql:12:8080020230717103820:63b34585.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:13) provided by postgresql:13:8050020210716085012:b4937e53.x86_64 from rhel-8-for-x86_64-appstream-rpms Problem 3: module satellite:el8:61620241029121948:f539b4f8.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed - module postgresql:13:8080020230613131941:63b34585.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:12) provided by postgresql:12:8050020210715095825:b4937e53.x86_64 from rhel-8-for-x86_64-appstream-rpms - module postgresql:12:8050020210715095825:b4937e53.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:13) provided by postgresql:13:8080020230613131941:63b34585.x86_64 from rhel-8-for-x86_64-appstream-rpms - module postgresql:13:8050020210716085012:b4937e53.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:12) provided by postgresql:12:8050020210715095825:b4937e53.x86_64 from rhel-8-for-x86_64-appstream-rpms -
The error can also be:
Problem: module satellite-capsule:el8:61220231019173218:0ae88c9f.x86_64 from @modulefailsafe requires module(postgresql:12), but none of the providers can be installed - module postgresql:12:8090020240209130909:a75119d5.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:13) provided by postgresql:13:8100020241122084628:489197e6.x86_64 from rhel-8-for-x86_64-appstream-rpms - module postgresql:13:8100020241122084628:489197e6.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:12) provided by postgresql:12:8090020240209130909:a75119d5.x86_64 from rhel-8-for-x86_64-appstream-rpms -
If the conflict is not caused by Red Hat satellite repository, look for any custom repositories. They might be the reason for the PostgreSQL conflict.
Similar messages can be seen by running
dnf repolist -v:# dnf repolist -v | grep "but none of the providers can be installed" Problem 1: module satellite:el8:61620241029121948:f539b4f8.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 2: module satellite:el8:61620260106215740:d34ac65e.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 3: module satellite:el8:61620250203193202:dcb9100d.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 4: module satellite:el8:61620250902142129:16a4b944.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 5: module satellite:el8:61620250429133522:b2ca78dc.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 6: module satellite:el8:61620251007141730:b030a9a0.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 7: module satellite:el8:61620251030202917:2a050aee.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 8: module satellite:el8:61620241218022447:2348d389.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 9: module satellite:el8:61620241118171217:3e90d501.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 10: module satellite:el8:61620260209141911:25492873.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 11: module satellite:el8:61620250616171530:a0334689.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 12: module satellite:el8:61620251119172408:14825f94.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 13: module satellite:el8:61620241101164956:f539b4f8.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 14: module satellite:el8:61620251210165348:d531acbe.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 15: module satellite:el8:61620250331140502:256bc704.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed Problem 16: module satellite:el8:61320230711142402:0681e9a9.x86_64 from Custom-repo requires module(postgresql:12), but none of the providers can be installed - module satellite:el8:61620250304185847:a92c6c12.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed - module satellite:el8:61620250513124510:73e043d6.x86_64 from satellite-6.16-for-rhel-8-x86_64-rpms requires module(postgresql:13), but none of the providers can be installed
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.