mirror of
https://github.com/cozystack/cozystack.git
synced 2026-10-27 15:17:13 +09:00
Each GPUDevice now has a usage record of its own, so the virt-launcher pod of a VMI with device references would report the same GPUs a second time. The units the VMI's attached devices hold are subtracted after the resources annotation is merged, since that annotation may name the GPU too; names the devices do not cover, such as a NIC next to the GPU, stay reported. The Workload controller already deletes a record only when its monitor is gone, which is what lets GPU records live under a monitor that selects nothing; a test now pins that. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>