redstack fails to complete installation when run behind proxy

Bug #1362797 reported by vigneshvar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trove Integration
Fix Committed
Medium
vigneshvar

Bug Description

"redstack install" fails to complete behind proxy with the following error.

Error
====
Preparing to unpack .../python-pip_1.5.4-1_all.deb ...
Unpacking python-pip (1.5.4-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up python-pip (1.5.4-1) ...
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip in /usr/lib/python2.7/dist-packages
Downloading/unpacking pip
Cleaning up...
No distributions at all found for pip in /usr/lib/python2.7/dist-packages
Storing debug log for failure in /home/r/trove-integration/scripts/.pip/pip.log

Reason
======
Most of the installation steps like "pip install" and "apt-get install" are processed under sudo environment which does not carry the proxy variables exported in the local environment.

How to replicate the issue
====================
Make sure you are installing trove behind the proxy environment

# export http_proxy=http://x.x.x.x:yyyy
# export https_proxy=http://x.x.x.x:yyyy
# git clone https://github.com/openstack/trove-integration.git
# cd trove-integration/scripts
# ./redstack install

Solution
======
Pass proxy variable $HTTP_PROXY for all install process like "pip install" , "apt-get install", etc

Changed in trove:
assignee: nobody → vigneshvar (vigneshvar-a-s)
summary: - redstack fails to complete installation when run under proxy
+ redstack fails to complete installation when run behind proxy
Denis M. (dmakogon)
Changed in trove:
importance: Undecided → Medium
milestone: none → ongoing
affects: trove → trove-integration
Changed in trove-integration:
milestone: ongoing → none
milestone: none → juno-3
status: New → Triaged
Changed in trove-integration:
status: Triaged → In Progress
Revision history for this message
vigneshvar (vigneshvar-a-s) wrote :

A fix is available at https://review.openstack.org/#/c/112532/
Kindly review it

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove-integration (master)

Reviewed: https://review.openstack.org/112532
Committed: https://git.openstack.org/cgit/openstack/trove-integration/commit/?id=7081a61666dabc8ff7b6e7e189c9ce7cb999ff2d
Submitter: Jenkins
Branch: master

commit 7081a61666dabc8ff7b6e7e189c9ce7cb999ff2d
Author: vigneshvar <email address hidden>
Date: Fri Aug 29 23:14:02 2014 +0530

    Carries the proxy variable while installing trove-integration

    Closes-Bug: 1362797

    Carries the proxy variable (http_proxy/https_proxy) to sudo,
    while installing trove-integration.

    "redstack install" fails to complete behind proxy as few of the installation
    steps like "pip install" and "apt-get install" are processed under sudo
    environment which does not carry the proxy variables exported in the local
    environment.

    Fix involves passing $HTTP_PROXY along with above mentioned installation
    commands.

    Change-Id: I23c0b5a5f6ae6cecacf15fc68be8e53effd03532

Changed in trove-integration:
status: In Progress → Fix Committed
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.