Issue #2639
closedUpgrade fails on Fedora
Description
https://paste.fedoraproject.org/paste/TxxGKBXa7zegjwSMpu-YNl5M1UNdIGYhyRLivL9gydE=
I think it's weird that this only affects the -common package, and not the others. I suspect it might have to do with this line in the spec:
https://github.com/pulp/pulp_ostree/blob/master/pulp-ostree.spec#L78
None of the other subpackages explicitly set '-n' to the package name in the package sections like -common does, so this stands out as a possible difference that makes the -common packages fail this way. I'm guessing rpm macro changes in f24 may have caused this to occur, and as far as I know this problem doesn't occur in f25, so an easy workaround is "upgrade to fedora 25".
Updated by semyers almost 8 years ago
Something else that's odd is that, to the best of my knowledge, we didn't see then when upgrading from 1.1.z to 1.2.z in 2.12.0 or 2.12.1. Because of this, and the fact that it appears to be fixed again in Fedora 25, leads me to thinking that this is a maybe a dnf bug that got fixed, but for whatever reason isn't fixed in Fedora 24. There might be things we can do to fix it, but it also might just fix itself.
Updated by semyers almost 8 years ago
I was wrong, we don't yet know if fedora 25 is affected or not. If this is affecting fedora 25 as well as fedora 24, I think that would have a significant impact on the severity of this. Some more investigation is needed.
Updated by pthomas@redhat.com almost 8 years ago
Looking in Jenkins for upgrade jobs 2.10 -> 2.12.2 beta and 2.11 ->2.12.2 beta
2.10 -> 2.12.2 beta failed on F24
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "dnf -y update", "delta": "0:00:30.450133", "end": "2017-03-16 23:42:58.461305", "failed": true, "rc": 1, "start": "2017-03-16 23:42:28.011172", "stderr": "Error: Transaction check error:\n file /usr/lib/python2.7/site-packages/pulp_ostree/__init__.pyc from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/common/__init__.pyc from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/extensions/__init__.pyc from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/__init__.pyo from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/common/__init__.pyo from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/extensions/__init__.pyo from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/common/constants.py from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/common/constants.pyc from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/common/constants.pyo from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/common/errors.py from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/common/errors.pyc from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n file /usr/lib/python2.7/site-packages/pulp_ostree/common/errors.pyo from install of python-pulp-ostree-common-1.2.1-0.1.beta.fc24.noarch conflicts with file from package python2-pulp-ostree-common-1.1.2-1.fc24.noarch\n\nError Summary\n-------------", "stdout": "Last metadata expiration check: 0:00:06 ago on Thu Mar 16 23:42:47 2017.\nDependencies
2.11 -> 2.12.2 beta on F25
TASK [pulp-upgrade : Update packages] ******************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "dnf -y update", "delta": "0:00:30.402367", "end": "2017-03-20 08:35:51.346206", "failed": true, "rc": 1, "start": "2017-03-20 08:35:20.943839", "stderr": "/usr/share/locale/de/LC_MESSAGES/cryptsetup.mo: No such file or directory\ncannot reconstruct rpm from disk files\nError: Transaction check error:\n file /usr/lib/python2.7/site-packages/pulp_docker/__init__.pyc from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/__init__.pyc from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/extensions/__init__.pyc from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/__init__.pyo from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/__init__.pyo from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/extensions/__init__.pyo from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/constants.py from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/constants.pyc from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/constants.pyo from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/error_codes.py from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/error_codes.pyc from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/error_codes.pyo from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/tags.pyc from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/tags.pyo from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/tarutils.pyc from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n file /usr/lib/python2.7/site-packages/pulp_docker/common/tarutils.pyo from install of python-pulp-docker-common-2.3.0-1.fc25.noarch conflicts with file from package python2-pulp-docker-common-2.1.0-2.fc25.noarch\n\nError Summary\n-------------", "stdout": "Last metadata expiration check: 0:00:17 ago on Mon Mar 20 08:35:29 2017.\nDependencies
Updated by semyers almost 8 years ago
And those upgrades are not from the versions available in fedora, correct?
Updated by semyers almost 8 years ago
- OS deleted (
Fedora 24)
We decided this that this does block 2.12.2's release; updating accordingly.
Updated by semyers almost 8 years ago
Talking with elyezer, we might also be seeing these failures with the python plugin. I suspect that at least python, ostree, and docker are affected, but dnf is maybe giving up after the first package is found with apparently broken dependencies, so we don't see all affected packages. This is my guess at why we aren't seeing the same failure on different platforms: for whatever reason dnf processes different packages first on different platforms when going through the upgrade transaction.
Updated by semyers over 7 years ago
This has been found to have been affecting our fedora releases published at repos.fedorapeople.org since at least Pulp 2.10, indicating that it is not a regression, and does not constitute a release blocker.
Updated by pcreech over 7 years ago
This issue seems similar to one we had on pulp platform that was resolved (for platform) in 2.10. The fix at the time was to have upstream 'provide' python2-* packages in the spec file.
https://github.com/pulp/pulp/pull/2791
This should be evaluated to see if doing this across the board for all plugins will resolve these issues.
Updated by pcreech over 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to pcreech
Added by pcreech over 7 years ago
Added by pcreech over 7 years ago
Revision 74644572 | View on GitHub
Add provides for python2-* packages
Add provides for python2-* packages. Fedora downstream packages are named python2-* and provide python-*. Upstream needs to mirror this for dependency resolution to work properly
re #2687
Added by pcreech over 7 years ago
Revision 244ca219 | View on GitHub
Add provides for python2-* packages
Add provides for python2-* packages. Fedora downstream packages are named python2-* and provide python-*. Upstream needs to mirror this for dependency resolution to work properly
re #2687
Added by pcreech over 7 years ago
Revision 9c7f7e46 | View on GitHub
Add provides for python2-* packages
Add provides for python2-* packages. Fedora downstream packages are named python2-* and provide python-*. Upstream needs to mirror this for dependency resolution to work properly
re #2687
Added by pcreech over 7 years ago
Revision 834e7cf6 | View on GitHub
Add provides for python2-* packages
Add provides for python2-* packages. Fedora downstream packages are named python2-* and provide python-*. Upstream needs to mirror this for dependency resolution to work properly
re #2687
Updated by pcreech over 7 years ago
This was affecting more than ostree. The following PRs address this for all plugins
https://github.com/pulp/pulp_docker/pull/192
https://github.com/pulp/pulp_ostree/pull/85
https://github.com/pulp/pulp_puppet/pull/257
https://github.com/pulp/pulp_python/pull/104
https://github.com/pulp/pulp_rpm/pull/1045
Updated by pcreech over 7 years ago
- Platform Release set to 2.13.0
- Target Release - OSTree set to 1.2.1
Updated by pthomas@redhat.com over 7 years ago
- Project changed from OSTree Support to Pulp
- Subject changed from Upgrade to 1.2.1 beta fails on fedora 24 to Upgrade fails on Fedora
- Status changed from 5 to ASSIGNED
- Triaged changed from Yes to No
Updated by ttereshc over 7 years ago
- Priority changed from Normal to High
- Severity changed from 2. Medium to 3. High
- Triaged changed from No to Yes
Updated by jortel@redhat.com over 7 years ago
- Sprint/Milestone changed from 37 to 38
Added by pcreech over 7 years ago
Added by pcreech over 7 years ago
Updated by pcreech over 7 years ago
- Status changed from ASSIGNED to POST
Next round of edits, this should facilitate the uninstall/removal of the versions in the fedora repo when upgrading.
https://github.com/pulp/pulp/pull/3033
https://github.com/pulp/pulp_puppet/pull/260
https://github.com/pulp/pulp_rpm/pull/1051
https://github.com/pulp/pulp_docker/pull/194
https://github.com/pulp/pulp_ostree/pull/89
https://github.com/pulp/pulp_python/pull/106
Updated by pcreech over 7 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Add provides for python2-* packages
Add provides for python2-* packages. Fedora downstream packages are named python2-* and provide python-*. Upstream needs to mirror this for dependency resolution to work properly
re #2687