• k8s-merge-robot's avatar
    Merge pull request #25077 from ncdc/pleg-retry · 66005063
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    PLEG: reinspect pods that failed prior inspections
    
    Fix the following sequence of events:
    
    1. relist call 1 successfully inspects a pod (just has infra container)
    1. relist call 2 gets an error inspecting the same pod (has infra container and a transient
    container that failed to create) and doesn't update the old/new pod records
    1. relist calls 3+ don't inspect the pod any more (just has infra container so it doesn't look like
    anything changed)
    
    This change adds a new list that keeps track of pods that failed inspection and retries them the
    next time relist is called. Without this change, a pod in this state would never be inspected again,
    its entry in the status cache would never be updated, and the pod worker would never call syncPod
    again because the most recent entry in the status cache has an error associated with it. Without
    this change, pods in this state would be stuck Terminating forever, unless the user issued a
    deletion with a grace period value of 0.
    
    Fixes #24819 
    
    cc @kubernetes/rh-cluster-infra @kubernetes/sig-node 
    66005063
Name
Last commit
Last update
..
api/v1alpha1/stats Loading commit data...
cadvisor Loading commit data...
client Loading commit data...
cm Loading commit data...
config Loading commit data...
container Loading commit data...
custommetrics Loading commit data...
dockertools Loading commit data...
envvars Loading commit data...
leaky Loading commit data...
lifecycle Loading commit data...
metrics Loading commit data...
network Loading commit data...
pleg Loading commit data...
pod Loading commit data...
prober Loading commit data...
qos Loading commit data...
rkt Loading commit data...
server Loading commit data...
status Loading commit data...
types Loading commit data...
util Loading commit data...
OWNERS Loading commit data...
container_bridge.go Loading commit data...
disk_manager.go Loading commit data...
disk_manager_test.go Loading commit data...
doc.go Loading commit data...
flannel_helper.go Loading commit data...
image_manager.go Loading commit data...
image_manager_test.go Loading commit data...
kubelet.go Loading commit data...
kubelet_getters.go Loading commit data...
kubelet_getters_test.go Loading commit data...
kubelet_test.go Loading commit data...
networks.go Loading commit data...
oom_watcher.go Loading commit data...
oom_watcher_test.go Loading commit data...
pod_workers.go Loading commit data...
pod_workers_test.go Loading commit data...
reason_cache.go Loading commit data...
reason_cache_test.go Loading commit data...
root_context_linux.go Loading commit data...
root_context_unsupported.go Loading commit data...
runonce.go Loading commit data...
runonce_test.go Loading commit data...
runtime.go Loading commit data...
util.go Loading commit data...
volume_manager.go Loading commit data...
volumes.go Loading commit data...