Spread Tests with proxy (mostly go get)

Max Brustkern max.brustkern at canonical.com
Mon Jan 23 22:01:23 UTC 2017

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/
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 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 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
error: unsuccessful run

I'm using the following spread commands to run on the local VM:
./tests/lib/external/prepare-ssh.sh $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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170123/fa6f54ae/attachment.html>

More information about the Snapcraft mailing list