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

cilium bpf metrics list fails when preallocate-bpf-maps=true #31501

Closed
3 tasks done
middaywords opened this issue Mar 19, 2024 · 2 comments
Closed
3 tasks done

cilium bpf metrics list fails when preallocate-bpf-maps=true #31501

middaywords opened this issue Mar 19, 2024 · 2 comments
Labels
kind/bug This is a bug in the Cilium logic. kind/community-report This was reported by a user in the Cilium community, eg via Slack. needs/triage This issue requires triaging to establish severity and next steps. sig/loader Impacts the loading of BPF programs into the kernel. stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale.

Comments

@middaywords
Copy link

middaywords commented Mar 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

I have set the preallocate-bpf-maps=true in cilium config,

and when I run cilium bpf metrics list in cilium-agent pod, it reports error.

root@kind-control-plane:/home/cilium# cilium bpf metrics list
level=warning msg="Removing map to allow for property upgrade (expect map data loss)" error="creating map: use pinned map cilium_metrics: Flags: 0 changed to 1: map spec is incompatible with existing map" map=cilium_metrics subsys=ebpf
No entries found.

I think it is because the cilium-dbg does not respect the config and not enable preallocation setting for bpf maps using EnableMapPreAllocation()

Cilium Version

root@kind-control-plane:/home/cilium# cilium version
Client: 1.15.2 7cf57829 2024-03-13T15:34:43+02:00 go version go1.21.8 linux/amd64
Daemon: 1.15.2 7cf57829 2024-03-13T15:34:43+02:00 go version go1.21.8 linux/amd64

Kernel Version

root@kind-control-plane:/home/cilium# uname -r
5.15.92

Kubernetes Version

root@ubuntu2204:~# kubectl version
Client Version: v1.29.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.2

Regression

No response

Sysdump

No response

Relevant log output

No response

Anything else?

No response

Cilium Users Document

  • Are you a user of Cilium? Please add yourself to the Users doc

Code of Conduct

  • I agree to follow this project's Code of Conduct
@middaywords middaywords added kind/bug This is a bug in the Cilium logic. kind/community-report This was reported by a user in the Cilium community, eg via Slack. needs/triage This issue requires triaging to establish severity and next steps. labels Mar 19, 2024
@aditighag aditighag added the sig/loader Impacts the loading of BPF programs into the kernel. label Mar 20, 2024
Copy link

This issue has been automatically marked as stale because it has not
had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label May 21, 2024
Copy link

github-actions bot commented Jun 4, 2024

This issue has not seen any activity since it was marked stale.
Closing.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is a bug in the Cilium logic. kind/community-report This was reported by a user in the Cilium community, eg via Slack. needs/triage This issue requires triaging to establish severity and next steps. sig/loader Impacts the loading of BPF programs into the kernel. stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale.
Projects
None yet
Development

No branches or pull requests

2 participants