Xenial: pip_install fails during repo-install.yml

Bug #1612377 reported by Michael Gugino
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Kevin Carter

Bug Description

Xenial AIO fails repeatedly on step repo-install.yml. This is due to pip_install dependency failing with the following error:

TASK [pip_install : Install pip packages and upgrade (fall back mode)] *********
fatal: [aio1_repo_container-9cd9a104]: FAILED! => {"changed": false, "cmd": "/usr/bin/pip install -U --upgrade --force-reinstall --isolated pip==8.1.2 setuptools==25.1.1 wheel==0.29.0", "failed": true, "msg": "\n:stderr: Exception:\nTraceback (most recent call last):\n File \"/usr/lib/python2.7/dist-packages/pip/basecommand.py\", line 209, in main\n status = self.run(options, args)\n File \"/usr/lib/python2.7/dist-packages/pip/commands/install.py\", line 328, in run\n wb.build(autobuilding=True)\n File \"/usr/lib/python2.7/dist-packages/pip/wheel.py\", line 748, in build\n self.requirement_set.prepare_files(self.finder)\n File \"/usr/lib/python2.7/dist-packages/pip/req/req_set.py\", line 360, in prepare_files\n ignore_dependencies=self.ignore_dependencies))\n File \"/usr/lib/python2.7/dist-packages/pip/req/req_set.py\", line 448, in _prepare_file\n req_to_install, finder)\n File \"/usr/lib/python2.7/dist-packages/pip/req/req_set.py\", line 387, in _check_skip_installed\n req_to_install.check_if_exists()\n File \"/usr/lib/python2.7/dist-packages/pip/req/req_install.py\", line 1011, in check_if_exists\n self.req.project_name\nAttributeError: 'Requirement' object has no attribute 'project_name'\nYou are using pip version 8.1.1, however version 8.1.2 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.\n"}

Revision history for this message
Michael Gugino (gugino-michael) wrote :

This seems to be related to this upstream bug:
https://github.com/pypa/pip/issues/3776

Changed in openstack-ansible:
status: New → Confirmed
assignee: nobody → Steve Lewis (steve-lewis)
Revision history for this message
Steve Lewis (steve-lewis) wrote :

confirmed

https://github.com/pypa/pip/issues/3687 is also related

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-pip_install (master)

Fix proposed to branch: master
Review: https://review.openstack.org/354475

Changed in openstack-ansible:
status: Confirmed → In Progress
Changed in openstack-ansible:
assignee: Steve Lewis (steve-lewis) → Kevin Carter (kevin-carter)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-pip_install (master)

Reviewed: https://review.openstack.org/354475
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-pip_install/commit/?id=c1323f2d778ac3c0ac8115bb3b69ce2cc245ffd3
Submitter: Jenkins
Branch: master

commit c1323f2d778ac3c0ac8115bb3b69ce2cc245ffd3
Author: Steve Lewis <email address hidden>
Date: Thu Aug 11 18:17:45 2016 -0500

    Install required packages for get_url module

    To prevent Ansible get_url module from generating SNI warnings
    several system packages are being installed so that system python
    will allow us to get pip and install it.

    The strategy for using system pip to install the python packages
    to prevent SNI warnings causes additional issues as system package
    pip versions may be broken in spectacular ways which prevent us from
    upgrading to pinned versions of each of pip, setuptools, wheel.

    Change-Id: I45e3eff716dba4fb2926794bc25bfb079bb328bf
    Closes-Bug: 1612377

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-pip_install (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/355416

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (liberty)

Fix proposed to branch: liberty
Review: https://review.openstack.org/355916

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-pip_install (stable/mitaka)

Reviewed: https://review.openstack.org/355416
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-pip_install/commit/?id=63882747821c05e1b8c71c3b250e0b9aae925dc7
Submitter: Jenkins
Branch: stable/mitaka

commit 63882747821c05e1b8c71c3b250e0b9aae925dc7
Author: Jesse Pretorius <email address hidden>
Date: Mon Aug 15 12:33:31 2016 +0100

    Install required packages for get_url module

    To prevent Ansible get_url module from generating SNI warnings
    several system packages are being installed so that system python
    will allow us to get pip and install it.

    This is a manual backport of:
     - https://review.openstack.org/354475
     - https://review.openstack.org/355420

    Change-Id: I45e3eff716dba4fb2926794bc25bfb079bb328bf
    Closes-Bug: 1612377

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-ansible (liberty)

Change abandoned by Jesse Pretorius (odyssey4me) (<email address hidden>) on branch: liberty
Review: https://review.openstack.org/355916
Reason: This isn't working, and the pip install process has changed so much that it's rather a pain to find a good solution. As we have no reports of SNI issues for Liberty, I'll abandon this for now.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible-pip_install 13.3.2

This issue was fixed in the openstack/openstack-ansible-pip_install 13.3.2 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible-pip_install 14.0.0.0b3

This issue was fixed in the openstack/openstack-ansible-pip_install 14.0.0.0b3 development milestone.

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.