Bug 1903289

Summary: Obsoleting python2-fedora breaks system upgrade
Product: [Fedora] Fedora Reporter: Tomáš Hozza <thozza>
Component: python-fedoraAssignee: Fedora Infrastructure SIG <infra-sig>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 32CC: infra-sig, jonstanley, mhroncok, randy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-01 20:26:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomáš Hozza 2020-12-01 18:49:31 UTC
Description of problem:
I'm trying to upgrade my F31 to F32 using DNF system-upgrade tool. However the upgrade fails, because there are two packages in the F32 repository, which both obsolete python2-fedora.

That is:
python3-fedora

* Mon Nov 02 2020 Nils Philippsen <nils> - 1.1.0-2
- Obsolete python2-fedora (#1605204)


fedora-obsolete-packages

* Wed Feb 19 2020 Pete Walter <pwalter> - 32-34
- Obsolete python2-fedora



Version-Release number of selected component (if applicable):
since python3-fedora-1.1.0-2.fc32.noarch

* Mon Nov 02 2020 Nils Philippsen <nils> - 1.1.0-2
- Obsolete python2-fedora (#1605204)

How reproducible:
always

Steps to Reproduce:
1. Have F31 system with installed python2-fedora
2. Run system upgrade to F32 following https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/

Actual results:
Upgrade fails

systemd[1]: Failed to start System Upgrade using DNF.
systemd[1]: dnf-system-upgrade.service: Failed with result 'exit-code'.
systemd[1]: dnf-system-upgrade.service: Main process exited, code=exited, status=1/FAILURE
dnf[1026]: (try to add '--skip-broken' to skip uninstallable packages)
dnf[1026]:   - conflicting requests
dnf[1026]:  Problem: both package python3-fedora-1.1.0-2.fc32.noarch and fedora-obsolete-packages-32-44.noarch obsolete python2-fedora < 0.10.0-11
dnf[1026]: Error:

Expected results:
Upgrade passes, because there is only one package in the F32 repository obsoleting python2-fedora.

Additional info:
You may want to actually remove the obsolete from fedora-obsolete-packages, not python3-fedora, depending on what you are trying to achieve. Since Python3 is not really compatible with Python2 code out of the box, I would suggest not to trick users to believe that python3-fedora version will actually work with Python2 code that used python2-fedora.

Comment 1 Miro Hrončok 2020-12-01 20:26:15 UTC

*** This bug has been marked as a duplicate of bug 1898498 ***