Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diffferent value of variable in returned err will cause event message too long #2975

Closed
lowang-bh opened this issue Jul 14, 2023 · 8 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@lowang-bh
Copy link
Member

lowang-bh commented Jul 14, 2023

When one schedule cycle finishes, scheduler will sum up the unschedule reason and merge same reson. If there are different value of a variable in scheduler error, the unschedule event message will be too long.

What happened:

predicateFn := func(task *api.TaskInfo, node *api.NodeInfo) ([]*api.Status, error) {
// Check for Resource Predicate
if ok, reason := task.InitResreq.LessEqualWithReason(node.FutureIdle(), api.Zero); !ok {
return nil, api.NewFitError(task, node, reason)
}
var statusSets util.StatusSets
statusSets, err := ssn.PredicateFn(task, node)
if err != nil {
return nil, fmt.Errorf("predicates failed in allocate for task <%s/%s> on node <%s>: %v",
task.Namespace, task.Name, node.Name, err)
}
if statusSets.ContainsUnschedulable() || statusSets.ContainsUnschedulableAndUnresolvable() ||
statusSets.ContainsErrorSkipOrWait() {
return nil, fmt.Errorf("predicates failed in allocate for task <%s/%s> on node <%s>, status is not success",
task.Namespace, task.Name, node.Name)
}
return nil, nil
}

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Volcano Version:
  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@lowang-bh lowang-bh added the kind/bug Categorizes issue or PR as related to a bug. label Jul 14, 2023
@lowang-bh
Copy link
Member Author

@wangyang0616

@lowang-bh
Copy link
Member Author

Another little issue, extender example has broken.

image

@lowang-bh lowang-bh changed the title diffferent variable in returned err will cause event message too long diffferent value of variable in returned err will cause event message too long Jul 14, 2023
@Ash-KODES
Copy link

hey, I am interested in getting into the volcano project,
Can I look into this ?, I think this will help me to understand some flows of the project.

@lowang-bh
Copy link
Member Author

Of cause, welcome!

@wangyang0616
Copy link
Member

Yes, each filter node will execute all configured plugins, and finally summarize the results, which will have a certain performance impact compared to the previous implementation logic.

The current modification is mainly to solve the plugin's predicate compatibility with allocate and preempt functions. If there is a better solution, look forward to communicating with you.

@lowang-bh
Copy link
Member Author

lowang-bh commented Jul 21, 2023

/good-first-issue

@lowang-bh
Copy link
Member Author

/close

@volcano-sh-bot
Copy link
Contributor

@lowang-bh: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants