-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
v1.1.0-929-gf2f16213 (f2f1621
init: close internal fds before execve
) seems the first commit that is causing the issue reported by @kolyshkin ("Most failures are related to not getting output from a container run.").=== Failed === FAIL: amd64.integration.container TestCreateWithCDIDevices (0.87s) cdi_test.go:68: assertion failed: [] does not contain FOO=injected === FAIL: amd64.integration.container TestDiff (0.34s) diff_test.go:28: assertion failed: --- expected +++ items []container.FilesystemChange( - {{Kind: s"A", Path: "/foo"}, {Kind: s"A", Path: "/foo/bar"}}, + nil, ) === FAIL: amd64.integration.container TestNetworkNat (0.36s) nat_test.go:33: assertion failed: error is not nil: dial tcp 172.17.0.3:8080: connect: connection refused
=== FAIL: amd64.integration.plugin.logging TestReadPluginNoRead/explicitly_enabled_caching (1.00s) read_test.go:90: assertion failed: strings.TrimSpace(buf.String()) is not "hello world": [] --- FAIL: TestReadPluginNoRead/explicitly_enabled_caching (1.00s) === FAIL: amd64.integration.plugin.logging TestReadPluginNoRead/default (1.03s) read_test.go:90: assertion failed: strings.TrimSpace(buf.String()) is not "hello world": [] --- FAIL: TestReadPluginNoRead/default (1.03s) === FAIL: amd64.integration.plugin.logging TestReadPluginNoRead (5.20s) read_test.go:93: [d8b21c48ed581] daemon is not started
...
Looks like stdout is closed too early on some condition.
cc @cyphar @kolyshkin @rata @thaJeztah
Its parent commit v1.1.0-928-g8e1cd2f5 (8e1cd2f,
init: verify after chdir that cwd is inside the container
) still fails due to other issues.=== FAIL: amd64.integration.capabilities TestNoNewPrivileges/CapabilityRequested=false (0.32s) capabilities_linux_test.go:104: test produced invalid error: "writing sync procError: write sync: file already closed\nexec /bin/cat: operation not permitted", expected "exec /bin/cat: operation not permitted". Stdout:"" --- FAIL: TestNoNewPrivileges/CapabilityRequested=false (0.32s)
=== FAIL: amd64.integration.container TestUpdateRestartPolicy (0.35s) update_test.go:31: assertion failed: error is not nil: Error response from daemon: Cannot update container a33223f3221da201c20e58724db3bc9b04586d80b305096181f8b46b4cd95fd3: runc did not terminate successfully: exit status 1: cannot set cpu limit: container could not join or create cgroup : unknown
...
Originally posted by @AkihiroSuda in moby/moby#48366 (comment)
rata