kubernetes/pkg
Patrick Ohly 4e73634b53 scheduler: start scheduling attempt with clean UnschedulablePlugins
When some plugin was registered as "unschedulable" in some previous scheduling
attempt, it kept that attribute for a pod forever. When that plugin then later
failed with an error that requires backoff, the pod was incorrectly moved to the
"unschedulable" queue where it got stuck until the periodic flushing because
there was no event that the plugin was waiting for.

Here's an example where that happened:

     framework.go:1280: E0831 20:03:47.184243] Reserve/DynamicResources: Plugin failed err="Operation cannot be fulfilled on podschedulingcontexts.resource.k8s.io \"test-dragxd5c\": the object has been modified; please apply your changes to the latest version and try again" node="scheduler-perf-dra-7l2v2" plugin="DynamicResources" pod="test/test-dragxd5c"
    schedule_one.go:1001: E0831 20:03:47.184345] Error scheduling pod; retrying err="running Reserve plugin \"DynamicResources\": Operation cannot be fulfilled on podschedulingcontexts.resource.k8s.io \"test-dragxd5c\": the object has been modified; please apply your changes to the latest version and try again" pod="test/test-dragxd5c"
    ...
    scheduling_queue.go:745: I0831 20:03:47.198968] Pod moved to an internal scheduling queue pod="test/test-dragxd5c" event="ScheduleAttemptFailure" queue="Unschedulable" schedulingCycle=9576 hint="QueueSkip"

Pop still needs the information about unschedulable plugins to update the
UnschedulableReason metric. It can reset that information before returning the
PodInfo for the next scheduling attempt.
2023-09-08 16:52:36 +02:00
..
api Allow specifying ExternalTrafficPolicy for ClusterIP Services with ExternalIPs 2023-08-30 23:56:47 +08:00
apis Merge pull request #120259 from SataQiu/clean-apf-20230830 2023-08-31 19:44:42 -07:00
auth Merge pull request #105598 from gy95/match 2022-01-05 09:22:38 -08:00
capabilities initialize capabilities unit test 2021-03-13 10:53:47 +01:00
client Move cri/streaming to k8s.io/kubelet staging repository 2023-06-05 08:08:18 +02:00
cloudprovider lavalamp is taking a long break 2023-05-11 16:43:38 +00:00
cluster/ports Webhook framework for cloud controller manager 2023-03-14 23:28:05 +00:00
controller Merge pull request #120336 from pohly/dra-generated-name-hyphen 2023-09-05 11:22:51 -07:00
controlplane Merge pull request #119142 from aramase/aramase/f/kep_3331_add_feature_flag 2023-09-05 13:08:51 -07:00
credentialprovider fix failing metadata test 2023-09-01 15:22:07 -04:00
features Validate the cloud-provider passed in and the corresponding feature flags 2023-09-02 13:08:04 -04:00
fieldpath Improved FormatMap: Improves performance by about 4x, or nearly 2x in the worst case (#112661) 2023-03-01 22:26:55 -08:00
generated apf: remove v1alpha1 API 2023-08-30 20:48:42 +08:00
kubeapiserver add loading config and wire feature flag 2023-08-30 23:14:56 +00:00
kubectl Merge pull request #120259 from SataQiu/clean-apf-20230830 2023-08-31 19:44:42 -07:00
kubelet Feature-gate SidecarContainers code in pkg/kubelet/kuberuntime 2023-09-01 00:13:47 +09:00
kubemark Move hollow_proxy.go from pkg/kubemark to pkg/proxy/kubemark 2023-03-16 09:47:54 -04:00
printers Merge pull request #118493 from kerthcet/cleanup/pod-status-reason 2023-08-30 01:40:47 -07:00
probe Merge pull request #114606 from tuunit/bugfix-case-sensitive-headers 2023-05-15 22:05:36 -07:00
proxy only drop invalid cstate packets if non liberal 2023-09-05 14:16:17 +00:00
quota/v1 api: introduce separate VolumeResourceRequirements struct 2023-08-21 15:31:28 +02:00
registry Merge pull request #118709 from ty-dc/pr/ut 2023-09-04 02:49:48 -07:00
routes Add api-machinery TL owners permissions for jpbetz 2023-05-15 11:09:54 -04:00
scheduler scheduler: start scheduling attempt with clean UnschedulablePlugins 2023-09-08 16:52:36 +02:00
security AppArmor no reevaluation of host is needed 2023-03-14 18:35:01 +00:00
securitycontext add SeccompProfile to Pod and Container accessors/mutators 2023-02-22 17:15:27 +01:00
serviceaccount Merge pull request #119643 from carlory/fix-119638 2023-08-15 19:43:32 -07:00
util adjust error message a bit 2023-08-31 21:53:43 -04:00
volume Merge pull request #120128 from ritazh/format-mount 2023-08-23 10:40:01 -07:00
windows/service Fix typo at pkg/windows/service/service.go:94 2022-03-24 07:25:33 -04:00
.import-restrictions
OWNERS lavalamp is taking a long break 2023-05-11 16:43:38 +00:00