<div dir="ltr">Digging into this further, I'm wondering if there's a way to set a proxy for the whole classic environment? This would cover go as well as any other commands I might need to run.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 5:01 PM, Max Brustkern <span dir="ltr"><<a href="mailto:max.brustkern@canonical.com" target="_blank">max.brustkern@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I'm trying to run spread tests on an ubuntu core VM in a lab that needs to use a proxy for web access. The mirrors are redirected, so the package installations work as expected, but I run into problems with go get:<br><br>++ classic 'GOPATH=/home/gopath go get ../../home/gopath/src/<a href="http://github.com/snapcore/snapd/tests/lib/snapbuild" target="_blank">github.<wbr>com/snapcore/snapd/tests/lib/<wbr>snapbuild</a>'<br>Cannot determine calling user, logging into classic as root<br>mount: devpts is already mounted or /dev/pts busy<br>       devpts is already mounted on /dev/pts<br>package <a href="http://gopkg.in/yaml.v2" target="_blank">gopkg.in/yaml.v2</a>: unrecognized import path "<a href="http://gopkg.in/yaml.v2" target="_blank">gopkg.in/yaml.v2</a>" (https fetch: Get <a href="https://gopkg.in/yaml.v2?go-get=1" target="_blank">https://gopkg.in/yaml.v2?go-<wbr>get=1</a>: dial tcp <a href="http://45.33.69.124:443" target="_blank">45.33.69.124:443</a>: i/o timeout)<br>package <a href="http://gopkg.in/check.v1" target="_blank">gopkg.in/check.v1</a>: unrecognized import path "<a href="http://gopkg.in/check.v1" target="_blank">gopkg.in/check.v1</a>" (https fetch: Get <a href="https://gopkg.in/check.v1?go-get=1" target="_blank">https://gopkg.in/check.v1?go-<wbr>get=1</a>: dial tcp <a href="http://45.33.69.124:443" target="_blank">45.33.69.124:443</a>: i/o timeout)<br>++ sysctl -w net.ipv6.conf.all.disable_<wbr>ipv6=0<br>net.ipv6.conf.all.disable_ipv6 = 0<br>-----<br>2017/01/23 16:46:54 Restoring project on external:ubuntu-core-16-64...<br>2017/01/23 16:46:55 Successful tasks: 0<br>2017/01/23 16:46:55 Aborted tasks: 107<br>2017/01/23 16:46:55 Failed project prepare: 1<br>    - external:ubuntu-core-16-64:<wbr>project<br>2017/01/23 16:46:55 Keeping external:ubuntu-core-16-64 at <a href="http://127.0.0.1:54323" target="_blank">127.0.0.1:54323</a><br>error: unsuccessful run<br></div><br></div>I'm using the following spread commands to run on the local VM:<br>export SPREAD_EXTERNAL_ADDRESS=127.0.<wbr>0.1:$PORT<br>./tests/lib/external/prepare-<wbr>ssh.sh 127.0.0.1 $PORT $USER<br>spread -v -reuse external:ubuntu-core-16-64 | tee $WORKSPACE/spread-output<br><br></div><div>How should I configure spread to make go aware of the proxy?<br><br></div><div>Thanks,<br></div><div>Max<br></div></div>
</blockquote></div><br></div>