A6rqnrxJ
2017-01-11 19:14:05


gunjan@mac:~/go/src/github.com/projectcalico/libnetwork-plugin$ sudo su
Password:
root@mac:/Users/gunjan/go/src/github.com/projectcalico/libnetwork-plugin$ make test-containerized
/bin/sh: getent: command not found
docker rm -f docker-binary-container 2>&1
Error response from daemon: No such container: docker-binary-container
make: [test-containerized] Error 1 (ignored)
docker create --name docker-binary-container docker:rc-dind
1b6f7ba22f8f5a7e783d5e9e53410b5a2a72ad7a920f5b4f3bc49bde0fb76023
docker cp docker-binary-container:/usr/local/bin/docker .
docker rm -f docker-binary-container
docker-binary-container
docker run -ti --rm --net=host \
-v /Users/gunjan/go/src/github.com/projectcalico/libnetwork-plugin:/go/src/github.com/projectcalico/libnetwork-plugin \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /Users/gunjan/go/src/github.com/projectcalico/libnetwork-plugin/.go-pkg-cache:/go/pkg/:rw \
-v /Users/gunjan/go/src/github.com/projectcalico/libnetwork-plugin/docker:/usr/bin/docker \
-e PLUGIN_LOCATION=/Users/gunjan/go/src/github.com/projectcalico/libnetwork-plugin/dist/libnetwork-plugin \
-e EXTRA_GROUP_ID= \
-e LOCAL_USER_ID=0 \
calico/go-build sh -c '\
cd /go/src/github.com/projectcalico/libnetwork-plugin && \
make test'
Starting with UID : 0
adduser: uid '0' in use
CGO_ENABLED=0 ginkgo -v tests/*
Running Suite: Custom IF Prefix Libnetwork Suite
================================================
Random Seed: 1484179932
Will run 1 of 1 specs

Running plugin with custom ENV docker run
creates a container on a network with correct IFPREFIX
/go/src/github.com/projectcalico/libnetwork-plugin/tests/custom_if_prefix/libnetwork_env_var_test.go:64
Running command [docker network create run3572033891 -d calico --ipam-driver calico-ipam]
Running command [docker run --net run3572033891 -tid --name run3572033891 busybox]
Running command [ip addr show cali0e7cd2f189d]
Running command [docker exec -i run3572033891 ip addr]
Running command [docker exec -i run3572033891 ip route]
Running command [docker rm -f run3572033891]

• [SLOW TEST:17.735 seconds]
Running plugin with custom ENV
/go/src/github.com/projectcalico/libnetwork-plugin/tests/custom_if_prefix/libnetwork_env_var_test.go:66
docker run
/go/src/github.com/projectcalico/libnetwork-plugin/tests/custom_if_prefix/libnetwork_env_var_test.go:65
creates a container on a network with correct IFPREFIX
/go/src/github.com/projectcalico/libnetwork-plugin/tests/custom_if_prefix/libnetwork_env_var_test.go:64
------------------------------

Ran 1 of 1 Specs in 17.735 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped PASS

Running Suite: Default Libnetwork Suite
=======================================
Random Seed: 1484179932
Will run 11 of 15 specs

Libnetwork Tests docker network create checking failure cases
needs both network and IPAM drivers to be calico
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:35
Running command [docker network create $RANDOM -d calico]
Error response from daemon: NetworkDriver.CreateNetwork: Non-Calico IPAM driver is used

------------------------------
Libnetwork Tests docker network create checking failure cases
doesn't allow a gateway to be specified
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:41
Running command [docker network create $RANDOM -d calico --ipam-driver calico-ipam --subnet=192.169.0.0/16 --gateway 192.169.0.1]
Error response from daemon: NetworkDriver.CreateNetwork: Non-Calico IPAM driver is used

• Failure [0.300 seconds]
Libnetwork Tests
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:265
docker network create
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:88
checking failure cases
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:68
doesn't allow a gateway to be specified [It]
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:41

No future change is possible. Bailing out early after 0.000s.
Got stuck at:
Error response from daemon: NetworkDriver.CreateNetwork: Non-Calico IPAM driver is used

Waiting for:
Error response from daemon: failed to allocate gateway \(192\.169\.0\.1\): IpamDriver\.RequestAddress: Calico IPAM does not support specifying a gateway\.

/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:40
------------------------------
Libnetwork Tests docker network create checking failure cases
requires the subnet to match the calico pool
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:47
Running command [docker network create $RANDOM -d calico --ipam-driver calico-ipam --subnet=192.169.0.0/24]
Error response from daemon: IpamDriver.RequestPool: The requested subnet must match the CIDR of a configured Calico IP Pool.

------------------------------
Libnetwork Tests docker network create checking failure cases
rejects --internal being used
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:52
Running command [docker network create $RANDOM --internal -d calico --ipam-driver calico-ipam]
1d86f2e02d69ca70de98451c454adf5abba9e4496a19a45973a6b241d4d3138f

• Failure [0.207 seconds]
Libnetwork Tests
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:265
docker network create
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:88
checking failure cases
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:68
rejects --internal being used [It]
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:52

No future change is possible. Bailing out early after 0.196s.
Expected
<int>: 0
to match exit code:
<int>: 1

/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:50
------------------------------
Libnetwork Tests docker network create checking failure cases
rejects --ip-range being used
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:57
Running command [docker network create $RANDOM --ip-range 192.169.1.0/24 --subnet=192.169.0.0/16 -d calico --ipam-driver calico-ipam]
Error response from daemon: IpamDriver.RequestPool: Calico IPAM does not support sub pool configuration on 'docker create network'. Calico IP Pools should be configured first and IP assignment is from those pre-configured pools.

------------------------------
Libnetwork Tests docker network create checking failure cases
rejects --ipam-opt being used
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:62
Running command [docker network create $RANDOM --ipam-opt REJECT -d calico --ipam-driver calico-ipam]
753747e1c5f3ef0be8b9904500068e7eb9c85df758e8470e266bdf357c45c692

• Failure [0.244 seconds]
Libnetwork Tests
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:265
docker network create
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:88
checking failure cases
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:68
rejects --ipam-opt being used [It]
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:62

No future change is possible. Bailing out early after 0.226s.
Expected
<int>: 0
to match exit code:
<int>: 1

/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:60
------------------------------
Libnetwork Tests docker network create checking failure cases
rejects --opt being used
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:67
Running command [docker network create $RANDOM --opt REJECT -d calico --ipam-driver calico-ipam]
Error response from daemon: NetworkDriver.CreateNetwork: Arbitrary options are not supported

------------------------------
Libnetwork Tests docker network create checking success cases
creates a network
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:75
Running command [docker network create success$RANDOM -d calico --ipam-driver calico-ipam]
79d882f61c827a1b397669606137c58a5ff5b6371d9be30653c969ed15b1e937

------------------------------
Libnetwork Tests docker network create checking success cases
creates a network with a subnet
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:79
Running command [docker network create success$RANDOM --subnet 192.169.0.0/16 -d calico --ipam-driver calico-ipam]
d0ba3b754734e20b34cc158222c93ee084821b063629274abaf79b0f71dd8857

------------------------------
P [PENDING]
Libnetwork Tests
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:265
docker network create
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:88
checking success cases
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:87
creates a network with IPv6
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:82
------------------------------
P [PENDING]
Libnetwork Tests
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:265
docker network create
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:88
checking success cases
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:87
creates a network with IPv6 from a specific subnet
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:84
------------------------------
Libnetwork Tests docker run
creates a container on a network and checks all assertions
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:171
Running command [docker network create run154558073 -d calico --ipam-driver calico-ipam]
Running command [docker run --net run154558073 -tid --name run154558073 busybox]
Running command [ip addr show cali5b2cbc0795e]
Running command [docker exec -i run154558073 ip addr]
Running command [docker exec -i run154558073 ip route]
Running command [docker rm -f run154558073]
Running command [docker network rm run154558073]

• [SLOW TEST:6.198 seconds]
Libnetwork Tests
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:265
docker run
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:262
creates a container on a network and checks all assertions
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:171
------------------------------
P [PENDING]
Libnetwork Tests
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:265
docker run
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:262
creates a container with specific MAC
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:208
------------------------------
P [PENDING]
Libnetwork Tests
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:265
docker run
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:262
creates a container with specific link local address
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:216
------------------------------
Libnetwork Tests docker run
creates a container with specific IP
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:260
Running command [docker network create run825128491 -d calico --ipam-driver calico-ipam]
Running command [docker network create run590174713 --subnet 192.169.0.0/16 -d calico --ipam-driver calico-ipam]
Running command [docker run --ip 192.169.50.51 --net run590174713 -tid --name run590174713 busybox]
Running command [ip addr show calib26f50d4402]
Running command [docker exec -i run590174713 ip addr]
Running command [docker exec -i run590174713 ip route]
Running command [docker rm -f run590174713]
Running command [docker network rm run590174713]
Running command [docker network rm run825128491]


Summarizing 3 Failures:

[Fail] Libnetwork Tests docker network create checking failure cases [It] doesn't allow a gateway to be specified
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:40

[Fail] Libnetwork Tests docker network create checking failure cases [It] rejects --internal being used
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:50

[Fail] Libnetwork Tests docker network create checking failure cases [It] rejects --ipam-opt being used
/go/src/github.com/projectcalico/libnetwork-plugin/tests/default_environment/libnetwork_test.go:60

Ran 11 of 15 Specs in 12.880 seconds
FAIL! -- 8 Passed | 3 Failed | 4 Pending | 0 Skipped --- FAIL: TestLibnetwork (12.88s)
FAIL

Ginkgo ran 2 suites in 51.406460181s
Test Suite Failed
Makefile:130: recipe for target 'test' failed
make: *** [test] Error 1
make: *** [test-containerized] Error 2