Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Carries the proxy variable while installing trove-integration
Browse files Browse the repository at this point in the history
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
  • Loading branch information
viggates committed Aug 29, 2014
1 parent 5b9c35c commit 7081a61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/redstack
Expand Up @@ -152,7 +152,7 @@ function install_prep_packages() {
pkg_update
exclaim 'Installing dependencies (part 1b)...'
pkg_install git-core kvm-ipxe python-pip gettext
sudo pip install --upgrade pip
sudo $HTTP_PROXY pip install --upgrade pip
}

function install_devstack_code() {
Expand Down Expand Up @@ -379,7 +379,7 @@ function rd_manage() {
}

function install_test_packages() {
sudo pip install openstack.nose_plugin proboscis pexpect
sudo $HTTP_PROXY pip install openstack.nose_plugin proboscis pexpect
}

function mod_confs() {
Expand Down Expand Up @@ -469,8 +469,8 @@ function cmd_build_image() {
GUEST_USERNAME=${4:-'ubuntu'}

exclaim "Ensuring we have all packages needed to build image."
sudo apt-get -y update
sudo apt-get -y install qemu
sudo $HTTP_PROXY apt-get -y update
sudo $HTTP_PROXY apt-get -y install qemu
cmd_clone_projects do_not_force_update $REDSTACK_SCRIPTS/image-projects-list

exclaim "Use tripleo-diskimagebuilder to actually build the Trove Guest Agent Image."
Expand Down

0 comments on commit 7081a61

Please sign in to comment.