Skip to content

Draining gets stuck for pods that have a static name #1169

Description

@D3luxee

Hi,

I've noticed that draining of a node via kured gets stuck if the pods that get drained have a specific name and get scheduled on another node while drain is going on.

This is because the kubectldrain.RunNodeDrain function calls drainer.GetPodsForDeletion(nodeName) once when its called. So it gets the list of pods of a node once and without a timeout it tries to drain the same pods over and over again even if they are not on the same node anymore.

This causes kured to be blocked either forever or even evict pods from other nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FEATURE-v2This is a feature improvement that needs to be taken into consideration for v2bugThis was triaged as a buggoChanges targetting our go code (impact on behaviour)keepThis won't be closed by the stale bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions