This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Description
While working on creating a cleanup function to make e2e tests atomic I ran into a bug with device deletion.
Deleting a device fails other tests with a interesting error message using the device name of a previous test
Warning FailedPrepareDynamicResources 16s (x3 over 2m50s) kubelet Failed to prepare dynamic resources: NodePrepareResources failed for claim default/dummy-interface-static-ip-route: claim c21de403-2648-4e2d-837b-68ca1a64ff6c contain errors: fail to get network interface mlx5_6
When there is a newly available interface available for allocation named dummy0. Not sure if this is an issue with DRA or DraNet. The issue seems to be around not removing a device if it was deleted and assigned to a pod. We might have some dangling references to deleted interfaces that we need to reconcile.