Skip to content
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

OCP CI failed to attach XDP to ocp's node virtio interface #139

Closed
msherif1234 opened this issue Aug 22, 2022 · 6 comments
Closed

OCP CI failed to attach XDP to ocp's node virtio interface #139

msherif1234 opened this issue Aug 22, 2022 · 6 comments
Assignees
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@msherif1234
Copy link
Contributor

msherif1234 commented Aug 22, 2022

1.661178512849118e+09	INFO	controllers.IngressNodeFirewall	Comparing currently managed interfaces against list of XDP interfaces on system	{"e.managedInterfaces": {}}
1.6611785128495898e+09	INFO	controllers.IngressNodeFirewall	Attaching firewall interface	{"intf": "enp2s0"}
1.6611785128498745e+09	ERROR	controllers.IngressNodeFirewall	Fail to attach ingress firewall prog	{"error": "could not attach XDP program: can't create link: cannot allocate memory", "errorCauses": [{"error": "could not attach XDP program: can't create link: cannot allocate memory"}]}
@msherif1234 msherif1234 self-assigned this Aug 22, 2022
@msherif1234
Copy link
Contributor Author

Error is coming from here in cilium
https://github.com/cilium/ebpf/blob/eb74eecf3f5cd537c49e5eb326d80b59f4e885d0/link/link.go#L180
this is where ENOMEM is returned when attach XDP to interface
https://elixir.bootlin.com/linux/latest/source/net/core/dev.c#L9429

@msherif1234
Copy link
Contributor Author

node journal shows

Aug 22 14:28:32.880306 worker-0.ostest.test.metalkube.org kernel: Adding Red Hat flag eBPF/xdp.
Aug 22 14:28:32.880528 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1
Aug 22 14:28:32.880982 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1
Aug 22 14:28:32.886388 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1
Aug 22 14:28:32.907746 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1
Aug 22 14:28:32.948781 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1
Aug 22 14:28:33.030743 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1
Aug 22 14:28:33.191752 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1
Aug 22 14:28:33.512742 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1
Aug 22 14:28:34.154759 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1
Aug 22 14:28:35.436762 worker-0.ostest.test.metalkube.org kernel: virtio_net virtio1 enp2s0: request 5 queues but max is 1

@msherif1234
Copy link
Contributor Author

msherif1234 commented Aug 30, 2022

The following bz will bring in virtio kernel fix
https://bugzilla.redhat.com/show_bug.cgi?id=2122225

@msherif1234 msherif1234 changed the title OCP CI failed to attach XDP to ocp node interface OCP CI failed to attach XDP to ocp's node virtio interface Sep 1, 2022
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 1, 2022
@msherif1234
Copy link
Contributor Author

OCP4.13 running RHEL9 should have the fix for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

2 participants