Skip to content

Retina agent failed to be initialized on AWS EKS due to 'create raw tracepoint: not supported' #1923

@WangSiyao

Description

@WangSiyao

Describe the bug
retina-agent DaemonSet failed to be created.

To Reproduce
Install Standard Control Plane with dropreason plugin on AWS EKS.

Expected behavior
DaemonSet should be created without error.

Screenshots
Error logs:
`ts=2025-10-31T04:45:30.238Z level=info caller=dropreason/ebpfsetup_linux.go:75 msg="Detected kernel" version=6.1.0
ts=2025-10-31T04:45:30.557Z level=info caller=common/common_linux.go:79 msg="perf reader created" Map=PerfEventArray(retina_dropreason_events)#11 PageSize=4096 BufferSize=65536
ts=2025-10-31T04:45:30.557Z level=error caller=dropreason/ebpfsetup_linux.go:145 msg="Failed to attach" program=inet_csk_accept_fexit error="create raw tracepoint: not supported"
ts=2025-10-31T04:45:30.558Z level=error caller=dropreason/ebpfsetup_linux.go:145 msg="Failed to attach" program=nf_hook_slow_fexit error="create raw tracepoint: not supported"
ts=2025-10-31T04:45:30.558Z level=error caller=dropreason/ebpfsetup_linux.go:145 msg="Failed to attach" program=tcp_v4_connect_fexit error="create raw tracepoint: not supported"
ts=2025-10-31T04:45:30.558Z level=error caller=dropreason/ebpfsetup_linux.go:145 msg="Failed to attach" program=nf_nat_inet_fn_fexit error="create raw tracepoint: not supported"
ts=2025-10-31T04:45:30.558Z level=error caller=dropreason/ebpfsetup_linux.go:145 msg="Failed to attach" program=__nf_conntrack_confirm_fexit error="create raw tracepoint: not supported"
ts=2025-10-31T04:45:30.558Z level=error caller=dropreason/ebpfsetup_linux.go:154 msg="No programs attached, cannot collect drop metrics"
ts=2025-10-31T04:45:30.562Z level=info caller=packetforward/packetforward_linux.go:211 msg="Context is done, packetforward will stop running"
ts=2025-10-31T04:45:30.562Z level=info caller=server/server.go:79 msg="gracefully shutting down HTTP server..."
ts=2025-10-31T04:45:30.562Z level=info caller=server/server.go:71 msg="HTTP server stopped with err: http: Server closed"
ts=2025-10-31T04:45:30.562Z level=panic caller=controllermanager/controllermanager.go:112 msg="Error running controller manager" error="failed to reconcile plugin dropreason: failed to init plugin: No programs attached, cannot collect drop metrics" errorVerbose="No programs attached, cannot collect drop metrics\ngithub.com/microsoft/retina/pkg/plugin/dropreason.(*dropReason).attachFexitPrograms\n\t/go/src/github.com/microsoft/retina/pkg/plugin/dropreason/ebpfsetup_linux.go:155\ngithub.com/microsoft/retina/pkg/plugin/dropreason.(*dropReason).Init\n\t/go/src/github.com/microsoft/retina/pkg/plugin/dropreason/dropreason_linux.go:171\ngithub.com/microsoft/retina/pkg/managers/pluginmanager.(*PluginManager).Reconcile\n\t/go/src/github.com/microsoft/retina/pkg/managers/pluginmanager/pluginmanager.go:106\ngithub.com/microsoft/retina/pkg/managers/pluginmanager.(*PluginManager).Start\n\t/go/src/github.com/microsoft/retina/pkg/managers/pluginmanager/pluginmanager.go:159\ngithub.com/microsoft/retina/pkg/managers/controllermanager.(*Controller).Start.func1\n\t/go/src/github.com/microsoft/retina/pkg/managers/controllermanager/controllermanager.go:102\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:93\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1223\nfailed to init plugin\ngithub.com/microsoft/retina/pkg/managers/pluginmanager.(*PluginManager).Reconcile\n\t/go/src/github.com/microsoft/retina/pkg/managers/pluginmanager/pluginmanager.go:107\ngithub.com/microsoft/retina/pkg/managers/pluginmanager.(*PluginManager).Start\n\t/go/src/github.com/microsoft/retina/pkg/managers/pluginmanager/pluginmanager.go:159\ngithub.com/microsoft/retina/pkg/managers/controllermanager.(*Controller).Start.func1\n\t/go/src/github.com/microsoft/retina/pkg/managers/controllermanager/controllermanager.go:102\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:93\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1223\nfailed to reconcile plugin dropreason\ngithub.com/microsoft/retina/pkg/managers/pluginmanager.(*PluginManager).Start\n\t/go/src/github.com/microsoft/retina/pkg/managers/pluginmanager/pluginmanager.go:163\ngithub.com/microsoft/retina/pkg/managers/controllermanager.(*Controller).Start.func1\n\t/go/src/github.com/microsoft/retina/pkg/managers/controllermanager/controllermanager.go:102\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:93\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1223"
panic: Error running controller manager

goroutine 83 [running]:
go.uber.org/zap/zapcore.CheckWriteAction.OnWrite(0x0?, 0x1?, {0x0?, 0x0?, 0x0?})
/go/pkg/mod/go.uber.org/[email protected]/zapcore/entry.go:196 +0x78
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0x4000ac0b60, {0x400454f000, 0x1, 0x1})
/go/pkg/mod/go.uber.org/[email protected]/zapcore/entry.go:262 +0x1b8
go.uber.org/zap.(*Logger).Panic(0x4000abb2c0?, {0x3d3f583?, 0x0?}, {0x400454f000, 0x1, 0x1})
/go/pkg/mod/go.uber.org/[email protected]/logger.go:285 +0x4c
github.com/microsoft/retina/pkg/managers/controllermanager.(*Controller).Start(0x400096bcc0, {0x42da150?, 0x40009049b0?})
/go/src/github.com/microsoft/retina/pkg/managers/controllermanager/controllermanager.go:112 +0x240
created by github.com/microsoft/retina/cmd/standard.(*Daemon).Start in goroutine 1
/go/src/github.com/microsoft/retina/cmd/standard/daemon.go:313 +0x2634`

Platform (please complete the following information):

  • OS: Amazon Linux 2023
  • Kubernetes Version: 1.34
  • Host: AWS EC2
  • Retina Version: v1.0.0-rc4
  • Kernel Version: 6.1.147-172.266.amzn2023.aarch64

Additional context
It works fine with retina version v0.0.21

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions