From 81120e77cd9befdb411ffbdbe462590487e3e821 Mon Sep 17 00:00:00 2001 From: Marco Chiappero Date: Thu, 15 Feb 2018 18:22:37 +0000 Subject: [PATCH] Make devstack work correctly behing a proxy Devstack fails to stack properly when running in a network with a non-transparent http proxy. This is due to the "http_proxy" enviroment variable not being preserved when running sudo in the devstack plugin. Add the -E flag to sudo whenever appropriate and remove sudo when unnecessary in order to fix the issue. Change-Id: I516076e78434ee241292b1fed6a6edcf0235d4b1 Signed-off-by: Marco Chiappero --- devstack/plugin.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 786cb17..f906256 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -62,7 +62,7 @@ function install_frakti { if command -v /usr/bin/frakti > /dev/null 2>&1; then sudo rm -f /usr/bin/frakti fi - sudo curl -sSL https://github.com/kubernetes/frakti/releases/download/${FRAKTI_VERSION}/frakti -o /usr/bin/frakti + curl -sSL https://github.com/kubernetes/frakti/releases/download/${FRAKTI_VERSION}/frakti -o /usr/bin/frakti sudo chmod +x /usr/bin/frakti cgroup_driver=$(sudo docker info | awk '/Cgroup Driver/{print $3}') sudo sh -c "cat > /lib/systemd/system/frakti.service < /etc/apt/sources.list.d/kubernetes.list <