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

[Hierarchical Queues]When creating a hierarchical sub-queue, it will be rejected by the Validating Webhook #4031

Open
JesseStutler opened this issue Feb 21, 2025 · 3 comments
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.

Comments

@JesseStutler
Copy link
Member

Description

  A
 /
B

For example, there are two queues to build the hierarchical queues, B is the child queue of A, and then B commits some podgroups, then queue B will update its allocated field in status, also its parent queue A. Then we try to create a sub-queue under A called C, then the creation of C will be rejected because of these codes:

   A
 /    \
B      C

if allocated, ok := parentQueue.Status.Allocated[v1.ResourcePods]; ok && !allocated.IsZero() {
return fmt.Errorf("queue %s cannot be the parent queue of queue %s because it has allocated Pods: %d",
parentQueue.Name, queue.Name, allocated.Value())
}

Steps to reproduce the issue

Describe the results you received and expected

We may not depend only on allocated field in queue status to check whether we can create a sub-queue under the existing queue, we may combine to check whether a queue is a leaf queue. Only leaf queue without pods inside can create sub-queues, there is no check of non-leaf queues.

What version of Volcano are you using?

v1.11

Any other relevant information

No response

@JesseStutler JesseStutler added the kind/bug Categorizes issue or PR as related to a bug. label Feb 21, 2025
@JesseStutler JesseStutler changed the title [Network Topology]When creating a hierarchical sub-queue, it will be rejected by the Validating Webhook [Hierarchical Queues]When creating a hierarchical sub-queue, it will be rejected by the Validating Webhook Feb 21, 2025
@Monokaix
Copy link
Member

/good-first-issue

@volcano-sh-bot
Copy link
Contributor

@Monokaix:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue

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.

@volcano-sh-bot volcano-sh-bot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Feb 21, 2025
@tanberBro
Copy link

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants