You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Helm] Missing CAP_BPF in retina-agent Daemonset spec #2236
Describe the bug
The linuxutil and packetforward plugins (which are enabled by default in the basic setup instructions) require the CAP_BPF kernel capability. However this seems to be missing from the default set of capabilities added in the Helm chart:
AFAIK, linuxutils does not require CAP_BPF, and SYS_ADMIN should already covers BPF permissions for the plugins. What exactly is the issue you were seeing here, and did you verify that explicitly adding CAP_BPF resolved those issues?
Quang Nguyen (@nddq) you're absolutely correct, and I think I made a number of changes that unfortunately made it look like this fixed the problem when it didn't. Here's the error I'm getting:
retina ts=2026-04-23T23:02:44.403Z level=error caller=linuxutil/ethtool_stats_linux.go:105 msg="Error while retrieving stats:" ifacename=eni07152960da9 error="
failed to retrieve interface stats: no such device" errorVerbose="no such device\nfailed to retrieve interface stats\ngithub.com/microsoft/retina/pkg/plugin/li
nuxutil.(*CachedEthtool).StatsWithBuffer\n\t/go/src/github.com/microsoft/retina/pkg/plugin/linuxutil/ethtool_handle_linux.go:42\ngithub.com/microsoft/retina/pk
g/plugin/linuxutil.(*EthtoolReader).readInterfaceStats\n\t/go/src/github.com/microsoft/retina/pkg/plugin/linuxutil/ethtool_stats_linux.go:98\ngithub.com/micros
oft/retina/pkg/plugin/linuxutil.(*EthtoolReader).readAndUpdate\n\t/go/src/github.com/microsoft/retina/pkg/plugin/linuxutil/ethtool_stats_linux.go:67\ngithub.co
m/microsoft/retina/pkg/plugin/linuxutil.(*linuxUtil).run.func2\n\t/go/src/github.com/microsoft/retina/pkg/plugin/linuxutil/linuxutil_linux.go:122\nruntime.goex
it\n\t/usr/local/go/src/runtime/asm_amd64.s:1771"
I get this for every virtual interface on the instance.
Activity
nddq commentedon Apr 23, 2026
AFAIK,
linuxutilsdoes not requireCAP_BPF, andSYS_ADMINshould already covers BPF permissions for the plugins. What exactly is the issue you were seeing here, and did you verify that explicitly addingCAP_BPFresolved those issues?ohookins commentedon Apr 23, 2026
Quang Nguyen (@nddq) you're absolutely correct, and I think I made a number of changes that unfortunately made it look like this fixed the problem when it didn't. Here's the error I'm getting:
I get this for every virtual interface on the instance.