-
Notifications
You must be signed in to change notification settings - Fork 19
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
Context deadline exceeded during vppapi call #802
Comments
I am facing with a packet drop issue. Checking the vpp status seems that the symptoms are very similar in my case. An NSC interface (nsm-3) drops packets:
Based on vppctl command outputs the 'tap22' interface is a remainder, not connected to any other tap or vxlan:
From kernel link printout seems that there are two queues used by nsm-3 (numqueues 2)
By default NSM creates the tap with single queue using just one fd to read/write the packets. Creating the second tap with interface name 'nsm-3' in vpp does not allocate a new device just open a new fd and use as a second queue to the existing tun device('nsm-3'). Since 'tap22' and the associated fd is not used, the packets are dropped by the kernel. @denis-tingaikin, @Ex4amp1e : May the PR #867 solve this resource leak issue? |
@ljkiraly Yes, the solution for networkservicemesh/cmd-forwarder-vpp#1133 will resolve this issue, as will #378. |
Description
Let's assume that the request timeout exceeded during some vppapi call. And at this time the Request was processed by VPP, but in our application govpp returns a context timeout error.
As a result, we have leaked vpp resources.
For example:
sdk-vpp/pkg/networkservice/mechanisms/kernel/kerneltap/common.go
Lines 65 to 85 in 6cdac61
context deadline exceeded
&tapv2.TapCreateV2{...}
, VPP creates a corresponding interface in the client namespace with a specific name.Logs:
Possible solutions
https://github.com/networkservicemesh/vpphelper/blob/e2b961f768b67dfe0687f5aa90696ffdeffba203/connection.go#L100
The text was updated successfully, but these errors were encountered: