Spread Tests with proxy (mostly go get)

Max Brustkern max.brustkern at canonical.com
Thu Jan 26 16:16:10 UTC 2017


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.

On Mon, Jan 23, 2017 at 5:01 PM, Max Brustkern <max.brustkern at canonical.com>
wrote:

> 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:
>
> ++ classic 'GOPATH=/home/gopath go get ../../home/gopath/src/github.
> com/snapcore/snapd/tests/lib/snapbuild'
> Cannot determine calling user, logging into classic as root
> mount: devpts is already mounted or /dev/pts busy
>        devpts is already mounted on /dev/pts
> package gopkg.in/yaml.v2: unrecognized import path "gopkg.in/yaml.v2"
> (https fetch: Get https://gopkg.in/yaml.v2?go-get=1: dial tcp
> 45.33.69.124:443: i/o timeout)
> package gopkg.in/check.v1: unrecognized import path "gopkg.in/check.v1"
> (https fetch: Get https://gopkg.in/check.v1?go-get=1: dial tcp
> 45.33.69.124:443: i/o timeout)
> ++ sysctl -w net.ipv6.conf.all.disable_ipv6=0
> net.ipv6.conf.all.disable_ipv6 = 0
> -----
> 2017/01/23 16:46:54 Restoring project on external:ubuntu-core-16-64...
> 2017/01/23 16:46:55 Successful tasks: 0
> 2017/01/23 16:46:55 Aborted tasks: 107
> 2017/01/23 16:46:55 Failed project prepare: 1
>     - external:ubuntu-core-16-64:project
> 2017/01/23 16:46:55 Keeping external:ubuntu-core-16-64 at 127.0.0.1:54323
> error: unsuccessful run
>
> I'm using the following spread commands to run on the local VM:
> export SPREAD_EXTERNAL_ADDRESS=127.0.0.1:$PORT
> ./tests/lib/external/prepare-ssh.sh 127.0.0.1 $PORT $USER
> spread -v -reuse external:ubuntu-core-16-64 | tee $WORKSPACE/spread-output
>
> How should I configure spread to make go aware of the proxy?
>
> Thanks,
> Max
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170126/e5e2afd5/attachment.html>


More information about the Snapcraft mailing list