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

fix: if the capability cpu or memory is not specified in the hierarchical queue, it will be set to the corresponding value of the parent queue #3917

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JesseStutler
Copy link
Member

fix #3914

validation

  1. Set the log level of volcano-scheduler to 4
  2. Create a parent-queue, with capability CPU 100, memory 10Gi
  3. Create a child-queue, with capability memory 5Gi
  4. Check if there are any logs related with Failed to check queue's hierarchical structure

Results:
Hierarchical structure can be successfully checked in capacity plugin, without Failed to check queue's hierarchical structure log:
image

@volcano-sh-bot volcano-sh-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 24, 2024
@JesseStutler
Copy link
Member Author

/cc @Monokaix @hwdef @lowang-bh @googs1025 @archlitchi , please have a review thanks

@JesseStutler JesseStutler changed the title fix: if the capability cpu or memory is not specified in the hierarch… fix: if the capability cpu or memory is not specified in the hierarchical queue, it will be set to the corresponding value of the parent queue Dec 24, 2024
@volcano-sh-bot volcano-sh-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 25, 2024
@JesseStutler JesseStutler force-pushed the fix_3914 branch 3 times, most recently from 3ee8eda to 08dcdb4 Compare December 25, 2024 15:32
if len(memory) > 0 {
resourceList[v1.ResourceMemory] = resource.MustParse(memory)
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does scalarResources has same issue?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The modification here is just for the convenience of using in UT without passing cpu or memory. You can see that scalarResources is a slice. If it is an empty slice or nil, resourceList will not be assigned.

@lowang-bh
Copy link
Member

/ok-to-test

Copy link
Member

@hwdef hwdef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 2, 2025
@JesseStutler
Copy link
Member Author

cc @Monokaix

…ical queue, it will be set to the corresponding value of the parent queue

Signed-off-by: JesseStutler <[email protected]>
@volcano-sh-bot volcano-sh-bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 7, 2025
@volcano-sh-bot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign hwdef
You can assign the PR to them by writing /assign @hwdef in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
4 participants