pip install does not respect proxy in bootstrap-ansible.sh

Bug #1504405 reported by Steve Lewis
2
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
Steve Lewis
Kilo
Fix Released
Medium
Steve Lewis
Trunk
Fix Released
Medium
Steve Lewis

Bug Description

Originally reported by ashishjain through IRC

One of the steps to setup osad is running scripts/bootstrap-ansible.sh

This script performs pip install -r requirements.txt but does not seem to respect HTTP_PROXY from the environment.

This results in an error like the following:

Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/pip/

description: updated
description: updated
description: updated
description: updated
description: updated
Changed in openstack-ansible:
assignee: nobody → Steve Lewis (steve-lewis)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

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

Changed in openstack-ansible:
status: New → In Progress
Changed in openstack-ansible:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

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

commit a875596ba2a0c37fff131ff6ea1f899732b0f5ce
Author: Steve Lewis <email address hidden>
Date: Thu Oct 8 22:58:26 2015 -0700

    Use pip install --proxy when $HTTPS_PROXY is set

    During execution of our bootstrap scripts, we need to install some
    packages before we have constructed any of the infrastructure. In
    this case when installing behind a proxy we should respect that
    proxy.

    When $HTTPS_PROXY is not set but $HTTP_PROXY is, that will be used
    instead. The use of trusted-host or other pip configurations to
    enable this usage are out of scope and can be resolved separately.

    Change-Id: I3df5ef6a7d33a3357e8c00f138b019c06c6bc3d6
    Closes-Bug: 1504405

Changed in openstack-ansible:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (kilo)

Reviewed: https://review.openstack.org/233400
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=494ff01d710a285fa8e25e6645889f2802c53d2c
Submitter: Jenkins
Branch: kilo

commit 494ff01d710a285fa8e25e6645889f2802c53d2c
Author: Steve Lewis <email address hidden>
Date: Thu Oct 8 22:58:26 2015 -0700

    Use pip install --proxy when $HTTPS_PROXY is set

    During execution of our bootstrap scripts, we need to install some
    packages before we have constructed any of the infrastructure. In
    this case when installing behind a proxy we should respect that
    proxy.

    When $HTTPS_PROXY is not set but $HTTP_PROXY is, that will be used
    instead. The use of trusted-host or other pip configurations to
    enable this usage are out of scope and can be resolved separately.

    Change-Id: I3df5ef6a7d33a3357e8c00f138b019c06c6bc3d6
    Closes-Bug: 1504405
    (cherry picked from commit a875596ba2a0c37fff131ff6ea1f899732b0f5ce)

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.11

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

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

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

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.14

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

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

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

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.