Skip to content

Router garbage collection never reclaims VRFs #1036

Closed

Description

@privateip

Summary

Since #996, galactic-router garbage collection fails on every cycle and reclaims no orphaned VRF or BGPVRFInstance.

Before it collects, GC lists the edge attachment links on the host. It opens that listing through a netlink handle bound to the router's own network namespace, and creating that handle enters the namespace, which needs CAP_SYS_ADMIN. The router runs with NET_ADMIN and BPF only, so the listing fails and GC stops before deleting anything.

The real-kernel tests run as full root, so they never saw the missing capability.

Acceptance criteria

  • galactic-router with its deployed capabilities lists edge attachment links and completes a GC cycle
  • An orphaned VRF and its BGPVRFInstance are reclaimed again on a node with no edge attachments
  • A test fails if listing the host's links needs a capability the router does not have

Related to #996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

galactic-router

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions