Project

Profile

Help

Issue #2639

Upgrade to 1.2.1 beta fails on fedora 24

Added by semyers 9 days ago. Updated 3 days ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Severity:
2. Medium
Version - OSTree:
1.2.1
Platform Release:
Blocks Release:
2.12.z, 2.13.z
Target Release - OSTree:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No

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".

History

#1 Updated by semyers 9 days 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.

#2 Updated by semyers 9 days 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.

#3 Updated by bizhang 9 days ago

  • Sprint/Milestone set to Sprint 17

#4 Updated by bizhang 6 days ago

  • Triaged changed from No to Yes

#5 Updated by pthomas@redhat.com 6 days 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 

#6 Updated by semyers 5 days ago

And those upgrades are not from the versions available in fedora, correct?

#7 Updated by semyers 5 days ago

  • OS deleted (Fedora 24)
  • Blocks Release 2.12.z, 2.13.z added

We decided this that this does block 2.12.2's release; updating accordingly.

#9 Updated by semyers 3 days 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.

Please register to edit this issue

Also available in: Atom PDF