Bug 1332623

Summary: breaks upgrade path
Product: [Fedora] Fedora Reporter: Matthias Runge <mrunge>
Component: python-dateutilAssignee: Haïkel Guémar <karlthered>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: awilliam, gwync, jsedlak, jspaleta, karlthered, kparal, python-sig, robatino, tomspur, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: RejectedBlocker
Fixed In Version: python-dateutil-2.5.2-2.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 11:47:42 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:
Attachments:
Description Flags
dnf upgrade log none

Description Matthias Runge 2016-05-03 15:13:29 UTC
Description of problem:
installed package from f23 can not be upgraded to f24:

Error: Transaction check error:
  file /usr/share/doc/python-dateutil/NEWS from install of python2-dateutil-1:2.5.2-1.fc24.noarch conflicts with file from package python3-dateutil-1:2.4.2-2.fc23.noarch
  file /usr/share/doc/python-dateutil/README.rst from install of python2-dateutil-1:2.5.2-1.fc24.noarch conflicts with file from package python3-dateutil-1:2.4.2-2.fc23.noarch


looks like the commit introducing py2/py3 broke upgrade path.

Comment 1 Kamil Páral 2016-05-04 13:38:06 UTC
python-dateutil is included on F23 Server DVD, therefore it probably affects default installations of F23.

Comment 2 Kamil Páral 2016-05-04 13:42:53 UTC
However, openqa claims server upgrade went fine. Here's the upgrade log:

https://openqa.fedoraproject.org/tests/15885/file/serial0.txt

[322/1259] Installing python2-dateutil-1:2.5.2-1.fc24.noarch...
[813/1259] Obsoleting python-dateutil-1:2.4.2-2.fc23.noarch...
[33/1259] Verifying python2-dateutil-1:2.5.2-1.fc24.noarch...
[1113/1259] Verifying python-dateutil-1:2.4.2-2.fc23.noarch...

The difference seems to be that python3-dateutil is not installed during default upgrade, but you already had that package and it caused the conflict.

Comment 3 Matthias Runge 2016-05-04 15:24:03 UTC
(In reply to Kamil Páral from comment #2)
> However, openqa claims server upgrade went fine. Here's the upgrade log:
> 
> https://openqa.fedoraproject.org/tests/15885/file/serial0.txt
> 
> [322/1259] Installing python2-dateutil-1:2.5.2-1.fc24.noarch...
> [813/1259] Obsoleting python-dateutil-1:2.4.2-2.fc23.noarch...
> [33/1259] Verifying python2-dateutil-1:2.5.2-1.fc24.noarch...
> [1113/1259] Verifying python-dateutil-1:2.4.2-2.fc23.noarch...
> 
> The difference seems to be that python3-dateutil is not installed during
> default upgrade, but you already had that package and it caused the conflict.

But packaging guidelines state, packages need to be installable in parallel.

If you have something like osbs installed, then you'll get python3-dateutil installed as well. osbs is installed in some corporate environments though.

Comment 4 Zbigniew Jędrzejewski-Szmek 2016-05-05 02:01:13 UTC
Something's fishy with the update: both python(2)-dateutil and python3-dateutil would normally be updated. Anyway, I now pushed a build which uses separate doc dirs for both subpackages, which fixes the conflict.

Comment 5 Fedora Update System 2016-05-05 02:49:42 UTC
python-dateutil-2.5.2-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c936a4d142

Comment 6 Adam Williamson 2016-05-05 03:49:21 UTC
-1 blocker, unless python3-dateutil is installed by default in any of the package sets for which upgrade is supported.

Comment 7 Jan Sedlák 2016-05-05 09:02:09 UTC
Tested it with F23 Server DVD and it doesn't include python3-dateutil (only python-dateutil), not even after update.

Comment 8 Fedora Update System 2016-05-05 09:54:06 UTC
python-dateutil-2.5.2-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-c936a4d142

Comment 9 Zbigniew Jędrzejewski-Szmek 2016-05-05 11:22:09 UTC
(In reply to Jan Sedlák from comment #7)
> Tested it with F23 Server DVD and it doesn't include python3-dateutil (only
> python-dateutil), not even after update.

Can you be more precise? Do you have python2-dateutil-2.5.2 installed after the upgrade?

Comment 10 Jan Sedlák 2016-05-05 12:00:27 UTC
When I installed Fedora 23, there was python-dateutil-2.4.2 package installed and no python3-dateutil package installed and after upgrade to Fedora 24, python-dateutil-2.4.2 got updated to python2-dateutil-2.5.2 and still no python3-dateutil package was installed.

Comment 11 Jan Sedlák 2016-05-05 12:54:47 UTC
I cannot reproduce problem from comment 1. I have installed Fedora 23 and python3-dateutil and then upgraded without problem. I'm attaching dnf.log from upgrade. Interesting bits are:

May 05 14:26:02 DEBUG ---> Package python2-dateutil.noarch 1:2.5.2-1.fc24 will be installed
May 05 14:26:02 DEBUG ---> Package python-dateutil.noarch 1:2.4.2-2.fc23 will be obsoleted
May 05 14:26:03 DEBUG ---> Package python3-dateutil.noarch 1:2.4.2-2.fc23 will be upgraded
May 05 14:26:03 DEBUG ---> Package python3-dateutil.noarch 1:2.5.2-1.fc24 will be an upgrade
Installing:
 python2-dateutil                             noarch            1:2.5.2-1.fc24                          fedora            250 k
     replacing  python-dateutil.noarch 1:2.4.2-2.fc23
Upgrading:
 python3-dateutil                             noarch            1:2.5.2-1.fc24                          fedora            251 k
Installed:
 python2-dateutil.noarch 1:2.5.2-1.fc24
Upgraded:
 python3-dateutil.noarch 1:2.5.2-1.fc24

Quick thought: log from comment 1 shows that python2-dateutil-1:2.5.2-1.fc24.noarch conflicts with python3-dateutil-1:2.4.2-2.fc23.noarch as if python3-dateutil would have not been updated to fc24 version.

Comment 12 Jan Sedlák 2016-05-05 12:55:20 UTC
Created attachment 1154199 [details]
dnf upgrade log

Comment 13 Kamil Páral 2016-05-06 11:01:11 UTC
Discussed at a go/no-go meeting [1]. Voted as RejectedBlocker (Beta) - no-one could reproduce this with one of the release-blocking package sets in multiple attempts

[1] https://meetbot.fedoraproject.org/fedora-meeting-1/2016-05-05/f24-beta-go_no_go-meeting.2016-05-05-17.30.html

Comment 14 Fedora Update System 2016-05-10 11:47:39 UTC
python-dateutil-2.5.2-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.