Skip to content
New issue

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

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

Already on GitHub? # to your account

[port-driver=builtin] intermittent error dial unix /tmp/rootlesskit321516702/.bp.sock: connect: no such file or directory #242

Open
AkihiroSuda opened this issue Mar 20, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@AkihiroSuda
Copy link
Member

$ ntimes -n 100 rootlesskit --net=slirp4netns --port-driver=builtin --disable-host-loopback --copy-up=/etc true
[rootlesskit:parent] error: dial unix /tmp/rootlesskit321516702/.bp.sock: connect: no such file or directory
[rootlesskit:parent] error: write unix @->/tmp/rootlesskit633900245/.bp.sock: write: broken pipe

real average: 44.437026ms, max: 50.669863ms, min: 38.338228ms, std dev: 2.74521ms
real 99 percentile: 49.992721ms, 95 percentile: 49.258088ms, 50 percentile: 44.527035ms
user average: 27.04683ms, max: 47.821ms, min: 7.356ms, std dev: 8.180554ms
sys  average: 28.9803ms, max: 45.081ms, min: 5.853ms, std dev: 8.180066ms
flaky: 2%

Flakiness is about 1-2% on my laptop, but seems about 10% on nerdctl CI.

RootlessKit: v0.14.0

@AkihiroSuda
Copy link
Member Author

This flakiness happens when defer os.RemoveAll() got called before go opt.PortDriver.RunParentDriver:

https://github.com/rootless-containers/rootlesskit/blob/v0.14.0/pkg/parent/parent.go#L133

https://github.com/rootless-containers/rootlesskit/blob/v0.14.0/pkg/parent/parent.go#L227-L230

Seems avoidable just by replacing true with sleep 1.

AkihiroSuda added a commit to AkihiroSuda/nerdctl that referenced this issue Mar 20, 2021
Workaround for rootless-containers/rootlesskit#242 (comment)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant