Skip to content

[Bug]: Always QOSGrpCpuLimit, qos doesn't work #10

Closed

Description

@Zhangxiurui520

Description

here is my yaml:
qos.yaml

apiVersion: batch/v1
kind: Job
metadata:
name: qos
namespace: slurm-bridge

slurm-bridge annotations on parent object

annotations:
slinky.slurm.net/user-id: "1001"
slinky.slurm.net/group-id: "1001"
slinky.slurm.net/job-name: qos
slinky.slurm.net/timelimit: "5"
slinky.slurm.net/account: 0104test
slinky.slurm.net/qos: 0110-3_tx
slinky.slurm.net/cpu-per-task: "1"
#slinky.slurm.net/mem-per-node: "2000M"
spec:
completions: 1
parallelism: 1
template:
spec:
schedulerName: slurm-bridge-scheduler
containers:
- name: sleep
image: busybox:stable
command: [sh, -c, sleep 30000]
resources:
#requests:
#cpu: '1'
#memory: 100Mi
#limits:
#cpu: '1'
#memory: 100Mi
restartPolicy: Never

And the qos of account 0104test is 0110-3_tx, MaxTRES=cpu=4

when i apply the qos yaml. the result below:
squeue
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
282 slurm-bri qos 0104test PD 0:00 1 (QOSGrpCpuLimit)

scontrol show job 282
JobId=282 JobName=qos
UserId=0104test(1001) GroupId=0104test(1001) MCS_label=kubernetes
Priority=1 Nice=0 Account=0104test QOS=0110-3_tx
JobState=PENDING Reason=QOSGrpCpuLimit Dependency=(null)
Requeue=1 Restarts=0 BatchFlag=0 Reboot=0 ExitCode=0:0
RunTime=00:00:00 TimeLimit=00:05:00 TimeMin=N/A
SubmitTime=2026-01-10T22:04:05 EligibleTime=2026-01-10T22:04:05
AccrueTime=2026-01-10T22:04:05
StartTime=Unknown EndTime=Unknown Deadline=N/A
SuspendTime=None SecsPreSuspend=0 LastSchedEval=2026-01-10T22:11:42 Scheduler=Backfill:*
Partition=slurm-bridge AllocNode:Sid=mn0:1182
ReqNodeList=(null) ExcNodeList=(null)
NodeList=
NumNodes=1 NumCPUs=1 NumTasks=1 CPUs/Task=1 ReqB:S:C:T=0:0::
ReqTRES=cpu=1,mem=11444M,node=1,billing=1
AllocTRES=(null)
Socks/Node=* NtasksPerN:B:S:C=0:0:: CoreSpec=*
MinCPUsNode=1 MinMemoryNode=0 MinTmpDiskNode=0
Features=(null) DelayBoot=00:00:00
OverSubscribe=NO Contiguous=0 Licenses=(null) LicensesAlloc=(null) Network=(null)
Command=(null)
WorkDir=/tmp
AdminComment={"pods":["slurm-bridge/qos-mw7zh"]}
OOMKillStep=0

a bug? thanks ~~~

Activity

  1. vivian-hafener commented on Feb 17, 2026

    @vivian-hafener
    Contributor

    Hello,

    The Slinky Project provides a default template for bug reports. This format provides me with useful information, that is necessary for me to help you debug this issue. Please edit your issue to utilize the provided format:

    <!--
    Feature requests, code contributions, and bug reports are welcome!
    Github/Gitlab submitted issues and PRs/MRs are handled on a best effort basis.
    The SchedMD official issue tracker is at <https://support.schedmd.com/>.
    -->
    
    ## Description
    
    <!--
    Describe the problem being encountered.
    -->
    
    ## Steps to Reproduce
    
    <!--
    Provide step to reproduce the bug.
    What environment/version does this occur?
    -->
    
    ## Expected Behavior
    
    <!--
    Describe what you expect should happen.
    -->
    
    ## Additional Context
    
    <!--
    Provide any other additional information here.
    (e.g. source code snippets/links; conjecture of root cause)
    -->
    

    Issues in the Slinky Project are reviewed by Humans, not LLMs. As such, the use of code formatting such as backticks to distinguish and provide context for text, yaml, and the output of commands is greatly appreciated. It helps me to more clearly understand the issue you are encountering, so that I can help you to resolve the issue you are seeing, and is the courteous thing to do.

    Best regards,
    Vivian Hafener

  2. vivian-hafener commented on Apr 23, 2026

    @vivian-hafener
    Contributor

    Good afternoon @Zhangxiurui520,

    As I have not heard from you for some time I will be closing this issue. If you have any further details on this bug, please feel free to re-open this issue.

    Best,
    Vivian Hafener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions