-
Notifications
You must be signed in to change notification settings - Fork 43.2k
Pod volume/cgroup cleanup logic is faulty #42776
Copy link
Copy link
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/critical-urgentHighest priority. Must be actively worked on as someone's top priority right now.Highest priority. Must be actively worked on as someone's top priority right now.sig/nodeCategorizes an issue or PR as relevant to SIG Node.Categorizes an issue or PR as relevant to SIG Node.
Milestone
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/critical-urgentHighest priority. Must be actively worked on as someone's top priority right now.Highest priority. Must be actively worked on as someone's top priority right now.sig/nodeCategorizes an issue or PR as relevant to SIG Node.Categorizes an issue or PR as relevant to SIG Node.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Both cleanup rely on the periodic
syncBatchin the status manger to trigger the final pod deletion. This is specifically checked inif m.needsUpdate(syncedUID, status) || m.couldBeDeleted(uid, status.status).However,
syncBatchcallssyncPod, which checksif !m.needsUpdate(uid, status), and skip if it's true at the beginning of the function. This means that it will never trigger the final deletion request (unless something else triggers it).This causes pod deletion to take > 1 minute in many cases, hence a bunch of test flake.
Ideally, kubelet should not rely on the periodic
syncBatchto send out deletion request, but at the least, this buggy logic should be fixed./cc @kubernetes/sig-node-bugs @dchen1107 @Random-Liu