Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run integration tests #38516

Closed
nbaztec opened this issue Jan 9, 2019 · 2 comments
Closed

Cannot run integration tests #38516

nbaztec opened this issue Jan 9, 2019 · 2 comments

Comments

@nbaztec
Copy link

nbaztec commented Jan 9, 2019

Running test-integration fails
A dry run of make test-integration fails with the following output:

<snip>
Successfully built a285256e4a4f
Successfully tagged docker-dev:master
docker run --rm -i --privileged  -e DOCKER_CROSSPLATFORMS -e BUILD_APT_MIRROR -e BUILDFLAGS -e KEEPBUNDLE -e DOCKER_BUILD_ARGS -e DOCKER_BUILD_GOGC -e DOCKER_BUILD_OPTS -e DOCKER_BUILD_PKGS -e DOCKER_BUILDKIT -e DOCKER_BASH_COMPLETION_PATH -e DOCKER_CLI_PATH -e DOCKER_DEBUG -e DOCKER_EXPERIMENTAL -e DOCKER_GITCOMMIT -e DOCKER_GRAPHDRIVER -e DOCKER_LDFLAGS -e DOCKER_PORT -e DOCKER_REMAP_ROOT -e DOCKER_STORAGE_OPTS -e DOCKER_USERLANDPROXY -e DOCKERD_ARGS -e TEST_INTEGRATION_DIR -e TESTDIRS -e TESTFLAGS -e TIMEOUT -e HTTP_PROXY -e HTTPS_PROXY -e NO_PROXY -e http_proxy -e https_proxy -e no_proxy -e VERSION -e PLATFORM -e DEFAULT_PRODUCT_LICENSE -e PRODUCT -v "/home/nish/go/src/github.com/nbaztec/moby/bundles:/go/src/github.com/docker/docker/bundles" -v "/home/nish/go/src/github.com/nbaztec/moby/.git:/go/src/github.com/docker/docker/.git" -v docker-dev-cache:/root/.cache    -t "docker-dev:master" hack/make.sh dynbinary test-integration

Removing bundles/

---> Making bundle: dynbinary (in bundles/dynbinary)
Building: bundles/dynbinary-daemon/dockerd-dev
Created binary: bundles/dynbinary-daemon/dockerd-dev

---> Making bundle: test-integration (in bundles/test-integration)
Building test suite binary ./integration-cli/test.main
Building test suite binary ./integration/build/test.main
Building test suite binary ./integration/secret/test.main
Building test suite binary ./integration/network/test.main
Building test suite binary ./integration/network/ipvlan/test.main
Building test suite binary ./integration/network/macvlan/test.main
Building test suite binary ./integration/session/test.main
Building test suite binary ./integration/system/test.main
Building test suite binary ./integration/volume/test.main
Building test suite binary ./integration/container/test.main
Building test suite binary ./integration/image/test.main
Building test suite binary ./integration/service/test.main
Building test suite binary ./integration/config/test.main
Building test suite binary ./integration/plugin/test.main
Building test suite binary ./integration/plugin/graphdriver/test.main
Building test suite binary ./integration/plugin/logging/test.main
Building test suite binary ./integration/plugin/logging/cmd/test.main
Building test suite binary ./integration/plugin/logging/cmd/close_on_start/test.main
Building test suite binary ./integration/plugin/logging/cmd/dummy/test.main
Building test suite binary ./integration/plugin/common/test.main
Building test suite binary ./integration/plugin/volumes/test.main
Building test suite binary ./integration/plugin/volumes/cmd/test.main
Building test suite binary ./integration/plugin/volumes/cmd/dummy/test.main
Building test suite binary ./integration/plugin/authz/test.main
---> Making bundle: .integration-daemon-start (in bundles/test-integration)
Using test binary docker
/etc/init.d/apparmor: 130: /etc/init.d/apparmor: systemd-detect-virt: not found
Starting AppArmor profiles:Warning from stdin (line 1): /sbin/apparmor_parser: cannot use or update cache, disable, or force-complain via stdin
Warning failed to create cache: (null)
.
INFO: Waiting for daemon to start...
Starting dockerd
.
---> Making bundle: .integration-daemon-setup (in bundles/test-integration)
---> Making bundle: .ensure-emptyfs (in bundles/test-integration)
Error: No such image: emptyfs
Running integration-test (iteration 1)
Running /go/src/github.com/docker/docker/integration/build
Loaded image: buildpack-deps:jessie
Loaded image: busybox:latest
Loaded image: busybox:glibc
Loaded image: debian:jessie
Loaded image: hello-world:latest
INFO: Testing against a local daemon
=== RUN   TestBuildWithSession
--- FAIL: TestBuildWithSession (0.04s)
    daemon.go:296: [d419d9637fe8b] waiting for daemon to start
    daemon.go:283: [d419d9637fe8b] exiting daemon
    build_session_test.go:27: failed to start daemon with arguments [] : [d419d9637fe8b] Daemon exited during startup: exit status 1
=== RUN   TestBuildSquashParent
--- SKIP: TestBuildSquashParent (0.00s)
    build_squash_test.go:23: !testEnv.DaemonInfo.ExperimentalBuild
=== RUN   TestBuildWithRemoveAndForceRemove
=== RUN   TestBuildWithRemoveAndForceRemove/successful_build_with_no_removal
=== PAUSE TestBuildWithRemoveAndForceRemove/successful_build_with_no_removal
=== RUN   TestBuildWithRemoveAndForceRemove/successful_build_with_remove
=== PAUSE TestBuildWithRemoveAndForceRemove/successful_build_with_remove
=== RUN   TestBuildWithRemoveAndForceRemove/successful_build_with_remove_and_force_remove
=== PAUSE TestBuildWithRemoveAndForceRemove/successful_build_with_remove_and_force_remove
=== RUN   TestBuildWithRemoveAndForceRemove/failed_build_with_no_removal
=== PAUSE TestBuildWithRemoveAndForceRemove/failed_build_with_no_removal
=== RUN   TestBuildWithRemoveAndForceRemove/failed_build_with_remove
=== PAUSE TestBuildWithRemoveAndForceRemove/failed_build_with_remove
=== RUN   TestBuildWithRemoveAndForceRemove/failed_build_with_remove_and_force_remove
=== PAUSE TestBuildWithRemoveAndForceRemove/failed_build_with_remove_and_force_remove
=== CONT  TestBuildWithRemoveAndForceRemove/successful_build_with_no_removal
=== CONT  TestBuildWithRemoveAndForceRemove/failed_build_with_no_removal
=== CONT  TestBuildWithRemoveAndForceRemove/failed_build_with_remove_and_force_remove
=== CONT  TestBuildWithRemoveAndForceRemove/failed_build_with_remove
=== CONT  TestBuildWithRemoveAndForceRemove/successful_build_with_remove
=== CONT  TestBuildWithRemoveAndForceRemove/successful_build_with_remove_and_force_remove
--- PASS: TestBuildWithRemoveAndForceRemove (0.01s)
    --- PASS: TestBuildWithRemoveAndForceRemove/failed_build_with_no_removal (6.34s)
    --- PASS: TestBuildWithRemoveAndForceRemove/failed_build_with_remove (6.39s)
    --- PASS: TestBuildWithRemoveAndForceRemove/failed_build_with_remove_and_force_remove (7.03s)
    --- PASS: TestBuildWithRemoveAndForceRemove/successful_build_with_no_removal (7.15s)
    --- PASS: TestBuildWithRemoveAndForceRemove/successful_build_with_remove_and_force_remove (2.97s)
    --- PASS: TestBuildWithRemoveAndForceRemove/successful_build_with_remove (3.10s)
=== RUN   TestBuildMultiStageParentConfig
--- PASS: TestBuildMultiStageParentConfig (31.97s)
    build_test.go:175: [{-1 1546977946 sha256:b778213c8c774015c55e8e89cbeaaef0fb402def2d05dc87dda037011ab71097 map[] sha256:8f008d22ed93a3a90d8e6db8e043b43f51be6ae381d7aaf6b7c2132e5a207211 [] [build1:latest] -1 1129289 1129289} {-1 1546977946 sha256:61001026107b328b99f531c72f5a5d1230808f3474429f28c64ee45e459d445c map[] sha256:79a63d20cf01bb8bee184630780d4df6d2fa86cd58e9f7137f9fb1884009227f [<none>@<none>] [<none>:<none>] -1 1129289 1129289} {-1 1546977943 sha256:5866fa883afd32ee9d754005b71f47fed94a9a00d5943d7625f98d9d51f15021 map[] sha256:6ad733544a6317992a6fac4eb19fe1df577d4dec7529efec28a5bd0edad0fd30 [<none>@<none>] [<none>:<none>] -1 1129289 1129289} {-1 1546977943 sha256:b8c26643ed58abfbf10c7cc2f3a1fcca5115a208e968a1c6286c90a6e1bb35b3 map[] sha256:6ad733544a6317992a6fac4eb19fe1df577d4dec7529efec28a5bd0edad0fd30 [<none>@<none>] [<none>:<none>] -1 1129289 1129289} {-1 1546977940 sha256:764e4bf066f8500be277db4ac763109e7685d41390f9d4373b7f543179237931 map[] sha256:6ad733544a6317992a6fac4eb19fe1df577d4dec7529efec28a5bd0edad0fd30 [<none>@<none>] [<none>:<none>] -1 1129289 1129289} {-1 1546977940 sha256:77adb12f2922504957c9614dc635a42559428c4d77d733ef4344c2ae4bf7fc9f map[] sha256:6ad733544a6317992a6fac4eb19fe1df577d4dec7529efec28a5bd0edad0fd30 [<none>@<none>] [<none>:<none>] -1 1129289 1129289} {-1 1546977940 sha256:8567688c591b34c02c12e76963bcee4b0ca0893404e7067cfcec2eae96c14fa3 map[] sha256:6ad733544a6317992a6fac4eb19fe1df577d4dec7529efec28a5bd0edad0fd30 [<none>@<none>] [<none>:<none>] -1 1129289 1129289} {-1 1546977940 sha256:ec5ec368e6d73d25122019b27a96f6e18e32b6a2d9ae143bfd940aa0a612ec5a map[] sha256:6ad733544a6317992a6fac4eb19fe1df577d4dec7529efec28a5bd0edad0fd30 [<none>@<none>] [<none>:<none>] -1 1129289 1129289} {-1 1516768215 sha256:2bbf44aed9f866d88c0e7d006d4ffe8d53186a12ffd6dca5e1baa59ba3024b85 map[]  [] [busybox:glibc] -1 4403845 4403845} {-1 1511223798 sha256:f2a91732366c0332ccd7afd2a5c4ff2b9af81f549370f7a19acd460f87686bc7 map[]  [] [hello-world:frozen] -1 1848 1848} {-1 1509809246 sha256:cb92533ca5cc26b3e36c11b6007fb838a8d2ea73a24faf738084c57ce193b944 map[]  [] [buildpack-deps:jessie] -1 614744077 614744077} {-1 1509772896 sha256:25fc9eb3417fa06d0d7fc83706b1ef5855dd1a8767fc29476b49e4edf8230867 map[]  [] [debian:jessie] -1 123410006 123410006} {-1 1509748757 sha256:6ad733544a6317992a6fac4eb19fe1df577d4dec7529efec28a5bd0edad0fd30 map[]  [] [busybox:latest] -1 1129289 1129289} {-1 1371157430 sha256:11f64303f0f7ffdc71f001788132bca5346831939a956e3e975c93267d89a16d map[]  [] [emptyfs:latest] -1 0 0}]
=== RUN   TestBuildLabelWithTargets
--- PASS: TestBuildLabelWithTargets (2.89s)
=== RUN   TestBuildWithEmptyLayers
--- PASS: TestBuildWithEmptyLayers (0.96s)
=== RUN   TestBuildMultiStageOnBuild
--- PASS: TestBuildMultiStageOnBuild (3.37s)
=== RUN   TestBuildUncleanTarFilenames
--- PASS: TestBuildUncleanTarFilenames (1.14s)
=== RUN   TestBuildMultiStageLayerLeak
--- PASS: TestBuildMultiStageLayerLeak (3.29s)
=== RUN   TestBuildWithHugeFile
--- PASS: TestBuildWithHugeFile (42.79s)
FAIL
---> Making bundle: .integration-daemon-stop (in bundles/test-integration)
Clearing AppArmor profiles cache:.
All profile caches have been cleared, but no profiles have been unloaded.
Unloading profiles will leave already running processes permanently
unconfined, which can lead to unexpected situations.

To set a process to complain mode, use the command line tool
'aa-complain'. To really tear down all profiles, run the init script
with the 'teardown' option."
Removing test suite binaries
Makefile:166: recipe for target 'test-integration' failed
make: *** [test-integration] Error 1

Describe the results you expected:
A successful execution

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
 Version:	18.03.0-ce
 API version:	1.37
 Go version:	go1.9.4
 Git commit:	0520e24
 Built:	Wed Mar 21 23:10:01 2018
 OS/Arch:	linux/amd64
 Experimental:	false
 Orchestrator:	swarm

Server:
 Engine:
  Version:	18.03.0-ce
  API version:	1.37 (minimum version 1.12)
  Go version:	go1.9.4
  Git commit:	0520e24
  Built:	Wed Mar 21 23:08:31 2018
  OS/Arch:	linux/amd64
  Experimental:	false

Output of docker info:

Containers: 28
 Running: 0
 Paused: 0
 Stopped: 28
Images: 558
Server Version: 18.03.0-ce
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 562
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.15.0-43-generic
Operating System: Ubuntu 18.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.49GiB
Name: cnx-lin-01
ID: I3BX:3MU4:ORLB:DVAB:WCZG:PDBE:TO57:I7JL:BKYK:LCQD:IEHB:QP3H
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.):

Ubuntu 18.04.1 LTS
linux 4.15.0-43-generic 

Any ideas? Thanks.

@olljanat
Copy link
Contributor

Unfortunately there is have quite a lot flaky tests on Moby #37306
but afaik TestBuildWithSession is not one of them.

Check that you don't have something set to those environment variables what build takes as parameter:

echo $DOCKER_CROSSPLATFORMS
echo $BUILD_APT_MIRROR
echo $BUILDFLAGS
echo $KEEPBUNDLE
echo $DOCKER_BUILD_ARGS
echo $DOCKER_BUILD_GOGC
echo $DOCKER_BUILD_OPTS
echo $DOCKER_BUILD_PKGS
echo $DOCKER_BUILDKIT
echo $DOCKER_BASH_COMPLETION_PATH
echo $DOCKER_CLI_PATH
echo $DOCKER_DEBUG
echo $DOCKER_EXPERIMENTAL
echo $DOCKER_GITCOMMIT
echo $DOCKER_GRAPHDRIVER
echo $DOCKER_LDFLAGS
echo $DOCKER_PORT
echo $DOCKER_REMAP_ROOT
echo $DOCKER_STORAGE_OPTS
echo $DOCKER_USERLANDPROXY
echo $DOCKERD_ARGS
echo $TEST_INTEGRATION_DIR
echo $TESTDIRS
echo $TESTFLAGS
echo $TIMEOUT
echo $HTTP_PROXY
echo $HTTPS_PROXY
echo $NO_PROXY
echo $http_proxy
echo $https_proxy
echo $no_proxy
echo $VERSION
echo $PLATFORM
echo $DEFAULT_PRODUCT_LICENSE
echo $PRODUCT

@nbaztec
Copy link
Author

nbaztec commented Jan 23, 2019

Confirmed different machine worked fine. Still not sure what's wrong but closing this one.

@nbaztec nbaztec closed this as completed Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants