-
Notifications
You must be signed in to change notification settings - Fork 159
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
AWS EKS Prometheus and value_error #346
Comments
Weird, I'm not sure what the problem is. The limits field is not an integer, it's a float field which makes the error especially weird. Do you see any more information when running with --verbose? |
Nothing new when running with --verbose ``Running Robusta's KRR (Kubernetes Resource Recommender) v.1.15.0 [10:48:30] DEBUG Creating kubernetes python cli monkey patches patch.py:10 |
I am running Krr on ubuntu 22.04.5 in WSL, I installed it via brew, and just updated to 1.16.0.. Still getting the same issue. |
Issue was fixed in #361 |
Describe the bug
Running
krr simple --history-duration X
I get the same output regardless.WARNING Not enough history available for cluster arn:aws:eks:us-east-1:{ACCOUNT}:cluster/staging-karpenter. runner.py:235
WARNING If the cluster is freshly installed, it might take some time for the enough data to be available. runner.py:238
WARNING Enough data is estimated to be available after 2024-10-04 02:22:55, but will try to calculate recommendations anyway. runner.py:241
INFO Listing scannable objects in arn:aws:eks:us-east-1:{ACCOUNT}:cluster/staging-karpenter init.py:58
ERROR An unexpected error occurred runner.py:349
Traceback (most recent call last):
File "robusta_krr/core/runner.py", line 342, in run
File "robusta_krr/core/runner.py", line 288, in _collect_result
File "robusta_krr/core/integrations/kubernetes/init.py", line 531, in list_scannable_objects
File "robusta_krr/core/integrations/kubernetes/init.py", line 534, in
File "robusta_krr/core/integrations/kubernetes/init.py", line 63, in list_scannable_objects
File "robusta_krr/core/integrations/kubernetes/init.py", line 249, in _list_scannable_objects
File "robusta_krr/core/integrations/kubernetes/init.py", line 249, in
File "robusta_krr/core/integrations/kubernetes/init.py", line 172, in __build_scannable_object
File "robusta_krr/core/models/allocations.py", line 89, in from_container
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for ResourceAllocations
limits
invalid literal for int() with base 10: '3200e6' (type=value_error)
To Reproduce
run any command such as
krr simple --history-duration X
Expected behavior
Output Provided
Screenshots
If applicable, add screenshots to help explain your problem.
Are you interested in contributing a fix for this?
Yes/no. If yes, we will provide guidance what parts of the code to modify and help you.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: