Upgrading smartproxy to 3.9 / 4.11 results in package dependency errors

Problem:

Upgrading smart proxy from 3.8 / 4.10 to 3.9 / 4.11 results in package rependency errors:

# dnf update
Updating Subscription Management repositories.
BaseOS                                                                                                                                                                                                 40 kB/s | 2.3 kB     00:00    
AppStream                                                                                                                                                                                              47 kB/s | 2.6 kB     00:00    
Extras                                                                                                                                                                                                 28 kB/s | 1.5 kB     00:00    
Error: 
 Problem 1: package pulpcore-obsolete-packages-1.0-7.el8.noarch from pulpcore obsoletes python39-aiohttp < 3.8.3-3 provided by python39-aiohttp-3.8.3-2.el8.x86_64 from @System
  - package python39-aiohttp-socks-0.7.1-3.el8.noarch from @System requires python39-aiohttp >= 2.3.2, but none of the providers can be installed
  - cannot install the best update candidate for package pulpcore-obsolete-packages-1.0-2.el8.noarch
  - problem with installed package python39-aiohttp-socks-0.7.1-3.el8.noarch
 Problem 2: package python39-pypi-simple-0.9.0-2.el8.noarch from @System requires python39-requests, but none of the providers can be installed
  - package pulpcore-obsolete-packages-1.0-7.el8.noarch from pulpcore obsoletes python39-requests < 2.31.0-2 provided by python39-requests-2.31.0-1.el8.noarch from @System
  - package pulpcore-obsolete-packages-1.0-7.el8.noarch from pulpcore obsoletes python39-requests < 2.31.0-2 provided by python39-requests-2.25.0-3.module+el8.9.0+1581+c29ce980.noarch from appstream
  - package pulpcore-obsolete-packages-1.0-7.el8.noarch from pulpcore obsoletes python39-requests < 2.31.0-2 provided by python39-requests-2.25.0-3.module+el8.9.0+1581+c29ce980.noarch from Oncore_Cloud_Services_Inc__Rocky_Linux_8_AppStream
  - cannot install the best update candidate for package python39-aiodns-3.0.0-3.el8.noarch
  - problem with installed package python39-pypi-simple-0.9.0-2.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Expected outcome:

Following published upgrade procedures (Upgrading Foreman to 3.9):

Upgrade of Foreman master server from 3.8 / 4.10 → 3.9 / 4.11 was successful.
Upgrade of Foreman proxy servers results in unexpected package dependency errors.

Previously, our Foreman inffrastructure was successfully upgraded from 3.7 / 4.9 → 3.8 / 4.10 without issue.

Foreman and Proxy versions:

Foreman Master Server:

Foreman 3.9 / Katello 4.11

Foreman Smart Proxy:

Foreman 3.8 / Katello 4.10

Foreman and Proxy plugin versions:

Distribution and version:

Rocky 8.9

Other relevant data:

It seems like python-aiohttp-socks was not built for Python 3.11 which is required by the new Pulp version. So I am not sure if this is some left over or required by something else installed on the system. Can you try to remove python39-aiohttp-socks and if it could simply be removed retry the upgrade, if not report back what depends on the package?

I am in the same boat, but after upgrade:

 Problem 1: package pulpcore-obsolete-packages-1.0-7.el8.noarch from pulpcore obsoletes python39-aiohttp < 3.8.3-3 provided by python39-aiohttp-3.8.3-2.el8.x86_64 from @System
  - package python39-aiohttp-socks-0.7.1-3.el8.noarch from @System requires python39-aiohttp >= 2.3.2, but none of the providers can be installed
  - cannot install the best update candidate for package pulpcore-obsolete-packages-1.0-6.el8.noarch
  - problem with installed package python39-aiohttp-socks-0.7.1-3.el8.noarch
 Problem 2: package python39-pypi-simple-0.9.0-2.el8.noarch from @System requires python39-requests, but none of the providers can be installed
  - package pulpcore-obsolete-packages-1.0-7.el8.noarch from pulpcore obsoletes python39-requests < 2.31.0-2 provided by python39-requests-2.31.0-1.el8.noarch from @System
  - package pulpcore-obsolete-packages-1.0-7.el8.noarch from pulpcore obsoletes python39-requests < 2.31.0-2 provided by python39-requests-2.25.0-2.module+el8.4.0+9822+20bf1249.noarch from rhel-8-for-x86_64-appstream-rpms
  - package pulpcore-obsolete-packages-1.0-7.el8.noarch from pulpcore obsoletes python39-requests < 2.31.0-2 provided by python39-requests-2.25.0-3.module+el8.9.0+19644+d68f775d.noarch from rhel-8-for-x86_64-appstream-rpms
  - cannot install the best update candidate for package python39-aiodns-3.0.0-3.el8.noarch
  - problem with installed package python39-pypi-simple-0.9.0-2.el8.noarch

Hello,

We just created Add aiohttp-socks and pypi-simple to python39 obsoletes by Odilhao · Pull Request #848 · theforeman/pulpcore-packaging · GitHub that should fix the upgrade issue. Upgrading the python version is always complicated, specially when we have a lot of packages as we do for Pulp support.

After merged, it will take probably 2 hours to show up in our repos.

Thanks.

The pipeline just finished, and we got a new version of pulpcore-obsolete published.

https://yum.theforeman.org/pulpcore/3.39/el8/x86_64/pulpcore-obsolete-packages-1.0-8.el8.noarch.rpm

1 Like

That did it! Thank for the super quick turn around for this!!