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

在使用k8s的配额能力的时候,创建vcjob时配额不足不会重试排队,会直接Terminated #3456

Open
X5207 opened this issue May 8, 2024 · 6 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@X5207
Copy link

X5207 commented May 8, 2024

在使用k8s的配额能力的时候,创建vcjob时配额不足不会重试排队,会直接Terminated
期待效果是重试,等配额满足时调度

报错信息:Failed to create pod job-lhjob4-20240508150346338940-task-0 for Job job-lhjob4-20240508150346338940, err &errors.StatusError{ErrStatus:v1.Status{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ListMeta:v1.ListMeta{SelfLink:"", ResourceVersion:"", Continue:"", RemainingItemCount:(*int64)(nil)}, Status:"Failure", Message:"pods "job-lhjob4-20240508150346338940-task-0" is forbidden: exceeded quota: naie-resource-job-quota, requested: requests.huawei.com/Ascend910=1, used: requests.huawei.com/Ascend910=1, limited: requests.huawei.com/Ascend910=1", Reason:"Forbidden", Details:(*v1.StatusDetails)(0x400057cde0), Code:403}}

@X5207 X5207 added the kind/bug Categorizes issue or PR as related to a bug. label May 8, 2024
@googs1025
Copy link
Contributor

hi! Do you have any relevant examples? Or yaml file?
This way we can better investigate the reasons

@Monokaix
Copy link
Member

Monokaix commented May 9, 2024

You should check who deleted the vcjob first: )

@X5207
Copy link
Author

X5207 commented May 9, 2024

是参考这个进行的资源配额使用,发现的问题。https://kubernetes.io/zh-cn/docs/concepts/policy/resource-quotas/

@Monokaix
Copy link
Member

Monokaix commented May 9, 2024

是参考这个进行的资源配额使用,发现的问题。https://kubernetes.io/zh-cn/docs/concepts/policy/resource-quotas/

yeah, you mean the vcjob will be deleted?

@X5207
Copy link
Author

X5207 commented May 9, 2024

是参考这个进行的资源配额使用,发现的问题。https://kubernetes.io/zh-cn/docs/concepts/policy/resource-quotas/

yeah, you mean the vcjob will be deleted?

不是deleted,超出配额不会重试排队,会直接Terminated

@lowang-bh
Copy link
Member

You can not use k8s's resource quota at the same time, it will reject pod creating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants