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
ResourceModel: panic: runtime error #3472
Comments
We can analyze the possible reasons from this log file: The panic occurs at modeling.go line 90, which means that initializes the modelSortings dictionary. If this line panics, it may be that rsList[index][name] does not exist. In line 78, I judged that if (len(rsName) != len(rsList[0]), then an error will be thrown. Can you reproduce this panic in the test environment? I can added a log here like this commit. If you can be reproduced, you will see this log.
|
The same panic occurs with release-1.5. But I find that I have adjust the resource model to a limited range level: resourceModels:
- grade: 0
ranges:
- max: "9223372036854775807"
min: "0"
name: cpu
- max: "9223372036854775807"
min: "0"
name: memory If a add a grade 1, everything is fine. the resourceMoels list should not less than 2(which means for cpu and memory). |
Thank you @sunbinnnnn. @chaunceyjiang could you please try to reproduce it and take a look #3591? |
/assign @sunbinnnnn |
What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
I don't know how to reproduce it. It's default resource models.
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: