You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wantReason: `topology "default" doesn't allow to fit any of 1 pod(s)`,
1876
+
wantReason: `topology "default" doesn't allow to fit any of 1 pod(s). Total nodes: 1; excluded: taint "example.com/gpu=present:NoSchedule": 1`,
1877
+
}},
1878
+
},
1879
+
"detailed failure message with exclusion stats": {
1880
+
nodes: []corev1.Node{
1881
+
*testingnode.MakeNode("x1").
1882
+
Label(corev1.LabelHostname, "x1").
1883
+
Taints(corev1.Taint{
1884
+
Key: "key",
1885
+
Value: "value",
1886
+
Effect: corev1.TaintEffectNoSchedule,
1887
+
}).
1888
+
StatusAllocatable(corev1.ResourceList{
1889
+
corev1.ResourceCPU: resource.MustParse("1"),
1890
+
corev1.ResourcePods: resource.MustParse("10"),
1891
+
}).
1892
+
Ready().
1893
+
Obj(),
1894
+
*testingnode.MakeNode("x2").
1895
+
Label(corev1.LabelHostname, "x2").
1896
+
Label("zone", "zone-b"). // Wrong zone
1897
+
StatusAllocatable(corev1.ResourceList{
1898
+
corev1.ResourceCPU: resource.MustParse("1"),
1899
+
corev1.ResourcePods: resource.MustParse("10"),
1900
+
}).
1901
+
Ready().
1902
+
Obj(),
1903
+
*testingnode.MakeNode("x3").
1904
+
Label(corev1.LabelHostname, "x3").
1905
+
Label("zone", "zone-b"). // Wrong zone for nodeSelector
1906
+
StatusAllocatable(corev1.ResourceList{
1907
+
corev1.ResourceCPU: resource.MustParse("2"),
1908
+
corev1.ResourcePods: resource.MustParse("10"),
1909
+
}).
1910
+
Ready().
1911
+
Obj(),
1912
+
*testingnode.MakeNode("x4").
1913
+
Label(corev1.LabelHostname, "x4").
1914
+
Label("zone", "zone-a"). // Correct zone but insufficient CPU
1915
+
StatusAllocatable(corev1.ResourceList{
1916
+
corev1.ResourceCPU: resource.MustParse("100m"),
1917
+
corev1.ResourcePods: resource.MustParse("10"),
1918
+
}).
1919
+
Ready().
1920
+
Obj(),
1921
+
},
1922
+
levels: defaultOneLevel,
1923
+
podSets: []PodSetTestCase{{
1924
+
topologyRequest: &kueue.PodSetTopologyRequest{
1925
+
Required: ptr.To(corev1.LabelHostname),
1926
+
},
1927
+
requests: resources.Requests{
1928
+
corev1.ResourceCPU: 1000,
1929
+
},
1930
+
nodeSelector: map[string]string{
1931
+
"zone": "zone-a",
1932
+
},
1933
+
count: 1,
1934
+
wantReason: `topology "default" doesn't allow to fit any of 1 pod(s). Total nodes: 4; excluded: nodeSelector: 2, resource "cpu": 1, taint "key=value:NoSchedule": 1`,
1935
+
}},
1936
+
},
1937
+
"resource exclusion picks most restrictive resource": {
0 commit comments