microsoft / microsoft/retina

Stale ebpf maps if agent stops abruptly

Open
#537 2 comments 0 reactions 0 assignees View on GitHub
area/ebpf area/plugins help wanted lang/go priority/0
Dominant language
Go
Stars
3.2k
Forks
304
Avg merge
1d 16h
Merged PRs (30d)
79

Description

**Describe the bug**

If agent pod is OOMKIlled, `Packetparser` leaves behind stale maps and qdiscs. These are never cleaned up on restart.

**To Reproduce**
Steps to reproduce the behavior:

1. Deploy retina-advanced
2. Exec into a node and kill the `controller` process repeatedly
3. Check maps and qdiscs

**Expected behavior**
Only one instance of maps should exist for each plugin and one ingress/egress qdisc for each veth.

**Platform (please complete the following information):**

- OS: Linux
- Kubernetes Version: 1.29
- Host: AKS
- Retina Version: current

**Additional context**
Suggestion - Cleanup should happen in init container (probably we need privilege to clean up residual maps and qdiscs)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.