firecracker-microvm / firecracker-microvm/firecracker-go-sdk
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" }"
- Dominant language
- Go
- Stars
- 672
- Forks
- 166
- PR merge metrics
- No merged PRs in 30d
Description
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()
}
```
Contributor guide
Assessment
This issue has not been assessed yet.