Skip to content

Pod Stuck in Terminating state if tainted node is power cycled.... #118286

@nmathew

Description

@nmathew

What happened?

If I power cycle the node after tainting the node, certain pods are stuck in "Terminating" state(these pods usually take more time to delete)

kubectl taint nodes control-plane-dc275-2-master-n5-1003 node-role.kubernetes.io/master:NoExecute
poweroff -f --reboot

pod is stuck in Terminating state.

But If I remove the taint immediately after poweroff, eventually pod will get removed.

If I untainted after the node comes up, the pod is stuck in terminating state.

Kubernetes Version: v1.27.1

What did you expect to happen?

Pod should get removed

How can we reproduce it (as minimally and precisely as possible)?

kubectl taint nodes control-plane-dc275-2-master-n5-1003 node-role.kubernetes.io/master:NoExecute
poweroff -f --reboot

Anything else we need to know?

Pods stuck in Terminated state usually take more time to get deleted

Kubernetes version

v1.27.1

Cloud provider

none

OS version

SLES 15 SP4

Install tools

none

Container runtime (CRI) and version (if applicable)

containerd

Related plugins (CNI, CSI, ...) and versions (if applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/nodeCategorizes an issue or PR as relevant to SIG Node.triage/needs-informationIndicates an issue needs more information in order to work on it.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions