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

Machine started with Jailer and CNI but without NetNS config reports "Failed to write to tap: Os { code: 5, kind: Other, message: "I/O error" }" #324

Open
everesio opened this issue Mar 10, 2021 · 0 comments

Comments

@everesio
Copy link

When a machine is created with Jailer and CNI, but without NetNS configuration, it continually reports "Failed to write to tap: Os { code: 5, kind: Other, message: "I/O error" }"
No such problem occurs when NetNS parameter is provided.

I've noticed that the NewMachine function calls jail function, before default NetNSPath is assigned to the machine config
i.e.

jail does not configure nspath

if cfg.NetNS != "" {
	builder = builder.WithNetNS(cfg.NetNS)
}

later NewMachine configures a default one

if cfg.NetNS == "" && cfg.NetworkInterfaces.cniInterface() != nil {
	m.Cfg.NetNS = m.defaultNetNSPath()
}
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

1 participant