Skip to content

Network cleanup fails when VMM process is already dead #408

@goyalpalak18

Description

@goyalpalak18

Description

There is a resource leak where network interfaces (TAP devices) and Traffic Control (TC) rules are left behind if a VMM crashes or is killed externally.

Issue

The Kill() function currently returns an error immediately if vmm.Stop() fails (e.g. if the process is already dead/ESRCH). This skips the critical network.Cleanup() step.

Impact

This causes tap devices (e.g., tap0_urunc) to pile up in the namespace during crash loops, potentially exhausting resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions