easy_install of pbr fails during devtest.sh run behind http_proxy

Bug #1293812 reported by Steven DuChene
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Gregory Haynes

Bug Description

Our tripleo test systems are in a data center where access to outside world through http or https has to pass through a proxy. When we run devtest.sh on a system in this environment and it gets to the image build but fails when easy_install tries to pull pbr.
To duplicate this on a system behind a proxy and where the following sorts of environment varaibles are set:

http_proxy=http://10.22.117.147:8080
https_proxy=http://10.22.117.147:8080
no_proxy=192.0.2.0/24,15.126.28.128/27

and a pypi mirror is setup on the 15.126.28.128 network. a PYPI_MIRROR_URL=http://15.126.28.132/pypi/mirror is set that points at that mirror. Confirming the pbr module is present in that mirror:

# find ~opsauto/.cache/image-create/pypi/ -name 'pbr*'
/home/opsauto/.cache/image-create/pypi/download/projects/requirements/tests/files/pbr_setup.cfg
/home/opsauto/.cache/image-create/pypi/download/wheelhouse/pbr-0.6-py2.py3-none-any.whl
/home/opsauto/.cache/image-create/pypi/mirror/Ubuntu-13.10/pbr
/home/opsauto/.cache/image-create/pypi/mirror/Ubuntu-13.10/pbr/pbr-0.6-py2.py3-none-any.whl
/home/opsauto/.cache/image-create/pypi/mirror/pbr
/home/opsauto/.cache/image-create/pypi/mirror/pbr/pbr-0.6.tar.gz

Then prior to running "devtest.sh --trash-my-machine" do "export break=before-install"

Then in the shell where the break occurs do the following steps:

cd /tmp/in_target.d/install.d/
./00-baseline-environment
./00-ccache
./01-install-pip
rm -rf /opt/stack/venvs/os-refresh-config
virtualenv --setuptools /opt/stack/venvs/os-refresh-config
/opt/stack/venvs/os-refresh-config/bin/pip install -U pip
/opt/stack/venvs/os-refresh-config/bin/pip install -U 'setuptools>=1.0'
/opt/stack/venvs/os-refresh-config/bin/easy_install pbr

I have attached a log file output of:

strace -o /tmp/pbr-fail.log -s 512 /opt/stack/venvs/os-refresh-config/bin/easy_install pbr

Revision history for this message
Steven DuChene (steven-a-duchene) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-image-elements (master)

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

Changed in tripleo:
assignee: nobody → Gregory Haynes (greghaynes)
status: New → In Progress
Revision history for this message
Steven DuChene (steven-a-duchene) wrote :
Changed in tripleo:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-image-elements (master)

Reviewed: https://review.openstack.org/81101
Committed: https://git.openstack.org/cgit/openstack/tripleo-image-elements/commit/?id=aa62d2797207c0cfdde7b880b1baae7b07fed3d6
Submitter: Jenkins
Branch: master

commit aa62d2797207c0cfdde7b880b1baae7b07fed3d6
Author: Gregory Haynes <email address hidden>
Date: Mon Mar 17 15:30:44 2014 -0700

    Explicitly install pbr via pip

    When a pypi mirror is used with certain conditions installing pbr as a
    dependency fails. This is a temporary fix until the underlying cause
    is resolved.

    This is also required for a wheels based pip mirror to work.

    Change-Id: Ia08eb16b96d9897fa2f86239ea264b145ef0b9b5
    Closes-Bug: #1293812

Changed in tripleo:
status: In Progress → Fix Released
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.