Skip to content

bug: scheduler does not bind pods even when plugins permit allocation #4420

@sancheet230

Description

@sancheet230

Description

When running unit tests for the Volcano scheduler’s capacity plugin, pods are not being bound even though the plugin’s allocatable logic returns true and all resource checks pass. This occurs even in a minimal test case with only one node, one queue, one PodGroup, and one pod. The plugin’s logic is invoked, but the scheduler never issues a bind request, causing the test to fail with failed to get Bind request

Steps to reproduce the issue

1.Create a minimal test file(place in pkg/scheduler/plugins/capacity/capacity_minimal_test.go)
2.Run the test

Describe the results you received and expected

expected: The pod should be scheduled and bound to the node, and the test should pass
received: the test fails with

  failed to get Bind request in case 0(minimal: one pod should be scheduled)

What version of Volcano are you using?

1.12.1

Any other relevant information

The same issue occurs in more complex tests (e.g., TestEnqueueAndAllocatable).
The session’s Jobs map, PodGroups, and pods are all set up correctly.
The plugin’s logic is invoked, but the scheduler never issues a bind request.
This may indicate a bug in the test harness (uthelper), the FakeBinder, or the scheduler’s action execution

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions