Description
This is unfortunately the return of conflist failed to read.
This here has much better debugging info though.
Interestingly, the conflist read fails for an unrelated network, that has likely been deleted already, although somehow cni is trying to read it.
Intuition is that we need to lock on inspect somehow.
Steps to reproduce the issue
Hammer the tests.
Describe the results you received and expected
rm -f /tmp/nerdctl-test-prevent-concurrency/.lock; ./smoke.sh
test target: "nerdctl"
--- FAIL: TestNetworkCreate (0.00s)
network_create_linux_test.go:114: ======================== Pre-test cleanup ========================
network_create_linux_test.go:114: ======================== Test setup ========================
network_create_linux_test.go:114: ======================== Test Run ========================
network_create_linux_test.go:114: ======================== Processing subtests ========================
--- FAIL: TestNetworkCreate/vanilla (0.18s)
network_create_linux_test.go:114: ======================== Pre-test cleanup ========================
helpers.go:64: /usr/local/bin/nerdctl --namespace=nerdctl-test network rm testnetworkcreate-vanilla-04e3e2c1
helpers.go:64: /usr/local/bin/nerdctl --namespace=nerdctl-test network rm testnetworkcreate-vanilla-1-b457605f
network_create_linux_test.go:114: ======================== Test setup ========================
helpers.go:57: /usr/local/bin/nerdctl --namespace=nerdctl-test network create testnetworkcreate-vanilla-04e3e2c1
utilities.go:66: /usr/local/bin/nerdctl --namespace=nerdctl-test network inspect testnetworkcreate-vanilla-04e3e2c1
utilities.go:66: assertion failed: expect.ExitCode is not result.ExitCode: Expected exit code: 0
Command: /usr/local/bin/nerdctl --namespace=nerdctl-test network inspect testnetworkcreate-vanilla-04e3e2c1
ExitCode: 1
Error: exit status 1
Stdout:
Stderr: time="2024-10-05T12:31:24-07:00" level=fatal msg="1 errors:\nerror reading /home/dmp.linux/.config/cni/net.d/nerdctl-test/nerdctl-testnetworkinspect-basic-4db6d60f.conflist: open /home/dmp.linux/.config/cni/net.d/nerdctl-test/nerdctl-testnetworkinspect-basic-4db6d60f.conflist: no such file or directory"
Env:
SHELL=/bin/bash
LOGNAME=dmp
XDG_SESSION_TYPE=tty
HOME=/home/dmp.linux
LANG=C.UTF-8
SSH_CONNECTION=192.168.5.2 51297 192.168.5.15 22
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
LESSOPEN=| /usr/bin/lesspipe %s
USER=dmp
SHLVL=2
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/501
SSH_CLIENT=192.168.5.2 51297 22
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/501/bus
SSH_TTY=/dev/pts/1
OLDPWD=/Users/dmp
_=/usr/local/go/bin/go
PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/sbin:/sbin:/usr/sbin:/sbin:/usr/sbin:/sbin:/usr/local/go/bin
PWD=/Users/dmp/Projects/go/nerd/nerdctl/cmd/nerdctl/network
NERDCTL_TOML=/tmp/TestNetworkCreatevanilla1021619034/001/nerdctl.toml
DOCKER_CONFIG=/tmp/TestNetworkCreatevanilla1021619034/001
case.go:164: ======================== Post-test cleanup ========================
helpers.go:64: /usr/local/bin/nerdctl --namespace=nerdctl-test network rm testnetworkcreate-vanilla-04e3e2c1
helpers.go:64: /usr/local/bin/nerdctl --namespace=nerdctl-test network rm testnetworkcreate-vanilla-1-b457605f
case.go:164: ======================== Post-test cleanup ========================
FAIL
FAIL github.com/containerd/nerdctl/v2/cmd/nerdctl/network 3.801s
FAIL
FAIL
What version of nerdctl are you using?
main
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
Description
This is unfortunately the return of conflist failed to read.
This here has much better debugging info though.
Interestingly, the conflist read fails for an unrelated network, that has likely been deleted already, although somehow cni is trying to read it.
Intuition is that we need to lock on inspect somehow.
Steps to reproduce the issue
Hammer the tests.
Describe the results you received and expected
What version of nerdctl are you using?
main
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response