-
Notifications
You must be signed in to change notification settings - Fork 90
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
Why is the shim running on it's own network ns? #476
Comments
Before youki we did everything ourselves. |
From #327 (comment), removing that |
We removed it awhile back and broke everything 🤦 #364 |
That doesn't seem right :( |
I removed it once and @jsturtevant needed to add it again here |
That was me misreading the code. Youki sets Pid and User ns at one point, and the rest on a different place. |
Okay, if this is true, then the shim doesn't need to set up its own network ns. There must be some root causes that we haven't yet discovered. |
I've added some logging to runwasi and youki when setting namespaces, and got:
The lines with |
It looks like after removing the network ns from |
Just a drive by comment. The reason for this is that the
|
@yihuaf Thanks for giving some context. Is what we are doing now, correct or do we need to make some changes in runwasi? |
Ref:
runwasi/crates/containerd-shim-wasm/src/sandbox/shim/cli.rs
Lines 56 to 57 in 71f8df9
It is not clear to me the reason why the shim start function sets up it's own network ns. I checked out both the Go and Rust implementation of runc-shim, they aren't setting the same ns at shim start.
@jsturtevant pointed me to this youki-dev/youki#2473 from youki but it looks like youki was setting up all the namespaces for containers but somehow the network ns was ignored. I am raising the issue here for asking more investigation.
FYI @jprendes
The text was updated successfully, but these errors were encountered: