-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
NetworkInformationException DirectoryNotFoundException: Could not find a part of the path '/proc/sys/net/ipv4/conf/lo/forwarding'
with NET 7.0.2 on gVisor
#81061
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionOriginal Issue I filed in the dotnet/orleans repo: dotnet/orleans#8271 I'll try to keep the information here more specific to the runtime issue than to gVisor and Orleans. The Orleans Call Site is line 351 on the call to NetworkInterface.GetAllNetworkInterfaces() in #76383. Best guess with suspect is in the runtime: https://github.com/dotnet/runtime/pull/76383/files, timing checks out. Stack Trace:
Reproduction StepsThis should be reproducible via a call to Expected behaviorIf the file or path isn't found, Actual behaviorA Regression?I believe this to be a regression. The same code I have works with .NET 6, but not 7. Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
This was exactly the issue fixed in #76383. The fix was not backported to release/7 branch #75883 (comment). |
I think there are other systems when this may be needed. Since it is regression I would support backport of #76383 - especially since it is pretty trivial. |
I initiated backport #81157 |
Thanks folks! Much appreciated. |
This should probably be closed as it's been released. |
fixed in 7.0.4 |
Description
Original Issue I filed in the dotnet/orleans repo: dotnet/orleans#8271
Issue Picked up by gVisor team: google/gvisor#8414 🥳
I'll try to keep the information here more specific to the runtime issue than to gVisor and Orleans.
The Orleans Call Site is line 351 on the call to NetworkInterface.GetAllNetworkInterfaces() in #76383.
Best guess with suspect is in the runtime: https://github.com/dotnet/runtime/pull/76383/files, timing checks out.
The comments directly above indicate we shouldn't fail but return false
Stack Trace:
Reproduction Steps
This should be reproducible via a call to
[NetworkInterface.GetAllNetworkInterfaces()](https://github.com/dotnet/orleans/blob/3.x/src/Orleans.Core/Configuration/ConfigUtilities.cs#L342-L356)
from a .NET 7.0.2 app running in a gVisor-sandboxed container.Expected behavior
If the file or path isn't found,
false
should be returned, which was previous behavior.Actual behavior
A
System.Net.NetworkInformation.NetworkInformationException
is thrown with an inner exception ofSystem.IO.DirectoryNotFoundException: Could not find a part of the path '/proc/sys/net/ipv4/conf/lo/forwarding'.
Regression?
I believe this to be a regression.
See #75883 and #63696.
The same code I have works with .NET 6, but not 7.
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: