Bug 1414902 - packaging: python/python2(/python3) cleanup
Summary: packaging: python/python2(/python3) cleanup
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: packaging
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Niels de Vos
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1415226
TreeView+ depends on / blocked
 
Reported: 2017-01-19 17:09 UTC by Kaleb KEITHLEY
Modified: 2017-05-30 18:39 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.11.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1415226 (view as bug list)
Environment:
Last Closed: 2017-05-30 18:39:31 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Kaleb KEITHLEY 2017-01-19 17:09:28 UTC
Description of problem:

Spec file needs to be updated to current python2 (vs. python3) guidelines.

While doing package review of new python-glusterfs-api we were reminded that we should update the glusterfs.spec(.in) accordingly.

Version-Release number of selected component (if applicable):

all

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2017-01-19 17:13:31 UTC
REVIEW: http://review.gluster.org/16428 (packaging: python2 cleanup) posted (#3) for review on master by Kaleb KEITHLEY (kkeithle)

Comment 2 Worker Ant 2017-01-20 15:58:40 UTC
REVIEW: http://review.gluster.org/16428 (packaging: python2 cleanup) posted (#4) for review on master by Kaleb KEITHLEY (kkeithle)

Comment 3 Worker Ant 2017-01-31 09:06:28 UTC
REVIEW: https://review.gluster.org/16486 (packaging: python/python(/python3) cleanup, again) posted (#1) for review on master by Kaleb KEITHLEY (kkeithle)

Comment 4 Worker Ant 2017-01-31 09:14:45 UTC
REVIEW: https://review.gluster.org/16486 (packaging: python/python2(/python3) cleanup, again) posted (#2) for review on master by Kaleb KEITHLEY (kkeithle)

Comment 5 Worker Ant 2017-01-31 13:17:18 UTC
COMMIT: https://review.gluster.org/16486 committed in master by Niels de Vos (ndevos) 
------
commit 12f4db5742b334e2364afeb69a64eeeac4e6c147
Author: Kaleb S. KEITHLEY <kkeithle>
Date:   Tue Jan 31 04:03:51 2017 -0500

    packaging: python/python2(/python3) cleanup, again
    
    missed a couple things in the previous patch
    
    Change-Id: I0ebd5c431abd9af5e1b680ad52318219edb4bfa7
    BUG: 1414902
    Signed-off-by: Kaleb S. KEITHLEY <kkeithle>
    Reviewed-on: https://review.gluster.org/16486
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Niels de Vos <ndevos>

Comment 6 Worker Ant 2017-02-07 14:22:15 UTC
REVIEW: https://review.gluster.org/16556 (packaging: python/python2(/python3) cleanup, again) posted (#1) for review on master by Kaleb KEITHLEY (kkeithle)

Comment 7 Worker Ant 2017-02-07 19:04:23 UTC
COMMIT: https://review.gluster.org/16556 committed in master by Shyamsundar Ranganathan (srangana) 
------
commit 3cbf73225111b2fd04414f1fa0aea33ffedf10b2
Author: Kaleb S. KEITHLEY <kkeithle>
Date:   Tue Feb 7 09:17:47 2017 -0500

    packaging: python/python2(/python3) cleanup, again
    
    mistake missed in the previous patches
    
    see https://review.gluster.org/#/c/16486/ and
    https://review.gluster.org/#/c/16428/
    
    BUG: 1414902
    Change-Id: Ie0839fa00794986f7f6a742dff70acd242e68735
    Signed-off-by: Kaleb S. KEITHLEY <kkeithle>
    Reviewed-on: https://review.gluster.org/16556
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    Reviewed-by: Anoop C S <anoopcs>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Shyamsundar Ranganathan <srangana>

Comment 8 Niels de Vos 2017-02-16 19:28:34 UTC
Reassigning this bug as there is still an outstanding python dependency issue.

(from rtalur) I saw this error while updating from 3.8 packages to 3.10 on
centos7 and update fails. Please let us know if this is going to be a problem.

Transaction check error:
  file /usr/lib/python2.7/site-packages/gluster/__init__.pyc from
install of python2-gluster-3.11dev-0.58.gitc57808c.el7.centos.x86_64
conflicts with file from package python-gluster-3.8.8-1.el7.noarch
  file /usr/lib/python2.7/site-packages/gluster/__init__.pyo from
install of python2-gluster-3.11dev-0.58.gitc57808c.el7.centos.x86_64
conflicts with file from package python-gluster-3.8.8-1.el7.noarch

Some further mail discussions:
> From Kaleb:
> I suspect it's the python2-glusterfs (3.10) versus python-gluster (3.8). We
> probably need a Obsoletes: python-gluster in the 3.10 python2-gluster part
> of the .spec, or something like that.
>
> Perhaps Neils knows for certain?

From Niels:
Yes, it would need a "Obsoletes: python-gluster < $version" and we need
to make sure that it also provides python-gluster $version. The 2nd may
be done by the python scriptlets automagically. But in case it does not
do it, we need to add it to prevent breakage of other packages that
depend on this.

Comment 9 Worker Ant 2017-02-16 21:01:21 UTC
REVIEW: https://review.gluster.org/16649 (rpm: replace renamed python-gluster with python2-gluster) posted (#1) for review on master by Niels de Vos (ndevos)

Comment 10 Worker Ant 2017-02-21 09:03:17 UTC
COMMIT: https://review.gluster.org/16649 committed in master by Niels de Vos (ndevos) 
------
commit 431011098efc5702a2f49fad1975fb956cdc9e00
Author: Niels de Vos <ndevos>
Date:   Thu Feb 16 20:32:36 2017 +0100

    rpm: replace renamed python-gluster with python2-gluster
    
    When upgrading from < 3.10, the old python-gluster package causes
    conflicts with the newly renamed python2-gluster package.
    
    This can be solved by adding the appropriate Provides and Obsoletes to
    the python2-gluster RPM. Details on renaming packages are listed on the
    Fedora Packaging Guidelines.
    
    Change-Id: Ib143bf69022c45abe2d5e8d31d3375a6b85f75da
    URL: https://fedoraproject.org/wiki/Packaging:Guidelines#Renaming.2FReplacing_Existing_Packages
    BUG: 1414902
    Signed-off-by: Niels de Vos <ndevos>
    Reviewed-on: https://review.gluster.org/16649
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Prashanth Pai <ppai>
    Reviewed-by: Anoop C S <anoopcs>

Comment 11 Shyamsundar 2017-05-30 18:39:31 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.11.0, please open a new bug report.

glusterfs-3.11.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/announce/2017-May/000073.html
[2] https://www.gluster.org/pipermail/gluster-users/


Note You need to log in before you can comment on or make changes to this bug.