The task-topology plugin cannot handle the tasks whose name contains -
#2939
Labels
kind/bug
Categorizes issue or PR as related to a bug.
-
#2939
What happened:
Assume that we have a kubernetes cluster with two nodes and a simple job with topology annotations:
The names of the tasks in the job all contain char
-
.And the scheduler config file:
After applying the job yaml, the task-topology plugin not works and we get the error log like:
And the pods are not scheduled as expect:
What you expected to happen:
The task-topology should work well and the nginx-worker pods should be scheduled into different nodes.
How to reproduce it (as minimally and precisely as possible):
As described above.
Anything else we need to know?:
I check the code, and find the code may cause this bug
volcano/pkg/scheduler/plugins/task-topology/topology.go
Lines 243 to 274 in ed5c215
Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.2", GitCommit:"7f6f68fdabc4df88cfea2dcf9a19b2b830f1e647", GitTreeState:"clean", BuildDate:"2023-05-17T14:20:07Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"darwin/amd64"}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.3", GitCommit:"9e644106593f3f4aa98f8a84b23db5fa378900bd", GitTreeState:"clean", BuildDate:"2023-03-15T13:33:12Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"linux/amd64"}
uname -a
):Linux volcano-demo 5.10.57 #1 SMP Mon Apr 3 23:35:10 UTC 2023 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: