f22: python-pip removal pull python too

Bug #1467569 reported by Gonéri Le Bouder
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Steve Baker

Bug Description

Hi,

I'm^wwas running a Fedora 22 upgraded from f21 using fedup. During the devstack startup, the python-pip package is dropped ( https://github.com/openstack-dev/devstack/blob/master/tools/install_pip.sh#L97 ).

Sadly, these also pull dnf yum and python out of the system :)

2015-06-22 12:16:05.867 | pip: 6.0.8 [341/1079]
2015-06-22 12:16:05.867 | + uninstall_package python-pip
2015-06-22 12:16:05.867 | + is_ubuntu
2015-06-22 12:16:05.867 | + [[ -z rpm ]]
2015-06-22 12:16:05.867 | + '[' rpm = deb ']'
2015-06-22 12:16:05.867 | + is_fedora
2015-06-22 12:16:05.868 | + [[ -z Fedora ]]
2015-06-22 12:16:05.868 | + '[' Fedora = Fedora ']'
2015-06-22 12:16:05.868 | + sudo yum remove -y python-pip
2015-06-22 12:16:05.880 | Yum command has been deprecated, redirecting to '/usr/bin/dnf remove -y python-pip'.
2015-06-22 12:16:05.880 | See 'man dnf' and 'man yum2dnf' for more information.
2015-06-22 12:16:05.880 | To transfer transaction metadata from yum to DNF, run:
2015-06-22 12:16:05.880 | 'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'
2015-06-22 12:16:05.881 |
2015-06-22 12:16:06.140 | Dependencies resolved.
2015-06-22 12:16:06.150 | ================================================================================
2015-06-22 12:16:06.150 | Package Arch Version Repository
2015-06-22 12:16:06.150 | Size
2015-06-22 12:16:06.150 | ================================================================================
2015-06-22 12:16:06.150 | Removing:
2015-06-22 12:16:06.150 | MySQL-python x86_64 1.3.6-1.fc22 @System 248 k
2015-06-22 12:16:06.150 | PyYAML x86_64 3.11-7.fc22 @System 614 k
2015-06-22 12:16:06.150 | atlas x86_64 3.10.1-21.fc22 @System 22 M
2015-06-22 12:16:06.150 | audit-libs-python x86_64 2.4.2-1.fc22 @System 466 k
2015-06-22 12:16:06.150 | cloud-init x86_64 0.7.6-3.fc22 @System 1.4 M
2015-06-22 12:16:06.150 | dnf noarch 1.0.1-2.fc22 @System 714 k
2015-06-22 12:16:06.150 | dnf-yum noarch 1.0.1-2.fc22 @System 24 k
2015-06-22 12:16:06.150 | dstat noarch 0.7.2-13.fc21 @System 752 k
2015-06-22 12:16:06.150 | euca2ools noarch 2.1.4-3.fc21 @System 1.1 M
2015-06-22 12:16:06.150 | fedup noarch 0.9.2-1.fc22 @System 258 k
2015-06-22 12:16:06.150 | gettext x86_64 0.19.4-4.fc22 @System 4.6 M
2015-06-22 12:16:06.150 | gettext-libs x86_64 0.19.4-4.fc22 @System 849 k
2015-06-22 12:16:06.150 | heat-cfntools noarch 1.2.8-2.fc22 @System 266 k
2015-06-22 12:16:06.150 | iscsi-initiator-utils x86_64 6.2.0.873-25.gitc9d830b.fc22
2015-06-22 12:16:06.150 | @System 2.4 M
2015-06-22 12:16:06.150 | iscsi-initiator-utils-iscsiuio x86_64 6.2.0.873-25.gitc9d830b.fc22
2015-06-22 12:16:06.150 | @System 158 k
2015-06-22 12:16:06.150 | libgcrypt-devel x86_64 1.6.3-4.fc22 @System 216 k
2015-06-22 12:16:06.150 | libgfortran x86_64 5.1.1-3.fc22 @System 1.2 M
2015-06-22 12:16:06.150 | libgpg-error-devel x86_64 1.17-2.fc22 @System 65 k
2015-06-22 12:16:06.150 | libquadmath x86_64 5.1.1-3.fc22 @System 288 k
2015-06-22 12:16:06.150 | libselinux-python x86_64 2.3-10.fc22 @System 1.2 M
2015-06-22 12:16:06.150 | libsemanage-python x86_64 2.3-6.fc22 @System 334 k
2015-06-22 12:16:06.150 | libunistring x86_64 0.9.4-1.fc22 @System 1.2 M
2015-06-22 12:16:06.151 | libxml2-devel x86_64 2.9.2-3.fc22 @System 8.9 M
2015-06-22 12:16:06.151 | libxml2-python x86_64 2.9.2-3.fc22 @System 1.4 M
2015-06-22 12:16:06.151 | libxslt x86_64 1.1.28-8.fc22 @System 485 k
2015-06-22 12:16:06.151 | libxslt-devel x86_64 1.1.28-8.fc22 @System 2.4 M
2015-06-22 12:16:06.151 | m2crypto x86_64 0.21.1-18.fc22 @System 1.9 M
2015-06-22 12:16:06.151 | mysql-connector-python noarch 1.1.6-3.fc21 @System 636 k
2015-06-22 12:16:06.151 | numpy x86_64 1:1.9.2-1.fc22 @System 14 M
2015-06-22 12:16:06.151 | policycoreutils-python x86_64 2.3-16.fc22 @System 1.2 M
2015-06-22 12:16:06.151 | pyOpenSSL noarch 0.14-3.fc22 @System 809 k
2015-06-22 12:16:06.151 | pygpgme x86_64 0.3-12.fc22 @System 233 k
2015-06-22 12:16:06.151 | pyliblzma x86_64 0.5.3-13.fc22 @System 194 k
2015-06-22 12:16:06.151 | python x86_64 2.7.10-1.fc22 @System 78 k
2015-06-22 12:16:06.151 | python-IPy noarch 0.81-12.fc22 @System 139 k
2015-06-22 12:16:06.151 | python-backports x86_64 1.0-5.fc22 @System 638
2015-06-22 12:16:06.151 | python-backports-ssl_match_hostname noarch 3.4.0.2-4.fc22 @System 14 k
2015-06-22 12:16:06.151 | python-boto noarch 2.38.0-1.fc22 @System 9.3 M
2015-06-22 12:16:06.151 | python-cffi x86_64 0.8.6-1.fc22 @System 622 k
2015-06-22 12:16:06.151 | python-chardet noarch 2.2.1-2.fc22 @System 1.1 M
2015-06-22 12:16:06.151 | python-cheetah x86_64 2.4.4-10.fc22 @System 1.9 M
2015-06-22 12:16:06.151 | python-configobj noarch 5.0.5-2.fc22 @System 362 k
2015-06-22 12:16:06.151 | python-cryptography x86_64 0.9-1.fc22 @System 3.6 M
2015-06-22 12:16:06.151 | python-devel x86_64 2.7.10-1.fc22 @System 1.0 M
2015-06-22 12:16:06.151 | python-dnf noarch 1.0.1-2.fc22 @System 1.8 M

Revision history for this message
Ian Wienand (iwienand) wrote :

Yes, this is unfortunate.

It seems to have started happening when python got a hard depends on python-pip for the "rewheel" module added in [1]. I have to investigate but maybe this makes the manual download of the latest pip obsolete

[1] http://pkgs.fedoraproject.org/cgit/python.git/commit/?h=f22&id=b1e5a425db386ec6c8952f6da7ffa220b839948f

Revision history for this message
Ian Wienand (iwienand) wrote :

So after discussions today, the best way to ensure we're running the latest pip is probably to use a COPR build of pypa packages that dstufft keeps up-to-date. i'll push something for this tomorrow

Changed in devstack:
assignee: nobody → Ian Wienand (iwienand)
status: New → In Progress
Revision history for this message
Robert Collins (lifeless) wrote :

We should be able to just pip install pip - we'll end up with two binaries, but as long as we use the one from /usr/local/bin it should be fine.

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

There is already a check for f23 [1] so this just needs to check for f22 as well.

On Fedora, pip installs to /usr so there will only be one pip binary.

[1] http://git.openstack.org/cgit/openstack-dev/devstack/tree/tools/install_pip.sh#n115

Changed in devstack:
assignee: Ian Wienand (iwienand) → Steve Baker (steve-stevebaker)
Revision history for this message
Steve Baker (steve-stevebaker) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/246618
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=bd4048a3c50e3cd215785e187e9e40b78bd064ae
Submitter: Jenkins
Branch: master

commit bd4048a3c50e3cd215785e187e9e40b78bd064ae
Author: Steve Baker <email address hidden>
Date: Wed Nov 18 10:55:22 2015 +1300

    Never uninstall python-pip on fedora

    Python in f23 and f22 depends on the python-pip package so removing it
    results in a nonfunctional system. pip on fedora installs to /usr so pip
    can safely override the system pip for all versions of Fedora.

    Change-Id: I336c7ffdf00784ca8deba7d6612a08b96a0ad098
    Closes-Bug: #1467569

Changed in devstack:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by Ian Wienand (<email address hidden>) on branch: master
Review: https://review.openstack.org/195424
Reason: i think this can go...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.