microsoft/retina

Stale ebpf maps if agent stops abruptly

Open

#537 aperta il 10 lug 2024

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Go (293 fork)auto 404
area/ebpfarea/pluginshelp wantedlang/gopriority/0

Metriche repository

Star
 (3161 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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)

Guida contributor