-
Notifications
You must be signed in to change notification settings - Fork 29
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
NETOBSERV-1535: ebpf agent cannot change netns for a process with muliple goroutines #292
Conversation
…tiple goroutines the current implementation tries to detect when new netns is created then register for netlink events for that new netns however it fails because EINVAL The caller is multithreaded and tried to join a new user namespace. the work around is to reload ebpf agent when new netns is detected Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
@msherif1234: This pull request references NETOBSERV-1535 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@msherif1234: This pull request references NETOBSERV-1535 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #292 +/- ##
==========================================
+ Coverage 36.08% 36.29% +0.21%
==========================================
Files 42 42
Lines 3786 3791 +5
==========================================
+ Hits 1366 1376 +10
+ Misses 2342 2337 -5
Partials 78 78
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
/ok-to-test |
New image: It will expire after two weeks. To deploy this build, run from the operator repo, assuming the operator is running: USER=netobserv VERSION=851559f make set-agent-image |
Description
the current implementation tries to detect when new netns is created then register for netlink events for that new netns however it fails because
EINVAL The caller is multithreaded and tried to join a new user namespace.
the work around is to reload ebpf agent when new netns is detected
there is also possible solution switching interfaces notification to different netlink package https://github.com/mdlayher/netlink but this is more risk and add lots of complexity
Signed-off-by: Mohamed Mahmoud mmahmoud@redhat.com
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.