Scheduler crashes if node.Others[api.GPUSharingDevice] is nil #2738
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
In pkg/scheduler/plugins/predicates/predicates.go
link
What happened:
fit, err = node.Others[api.GPUSharingDevice].(api.Devices).FilterNode(task.Pod)
If node.Others[api.GPUSharingDevice] is nil it causes volcano to crash as nil is trying run FilterNode(task.Pod)
What you expected to happen:
A check for if node.Others[api.GPUSharingDevice] is nil should be done before FilterNode(task.Pod) is executed
Environment:
The text was updated successfully, but these errors were encountered: