Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

value is not a valid dict (type=type_error.dict) #386

Open
patsevanton opened this issue Dec 26, 2024 · 1 comment
Open

value is not a valid dict (type=type_error.dict) #386

patsevanton opened this issue Dec 26, 2024 · 1 comment

Comments

@patsevanton
Copy link

Hello! I download 1.18 release and get error.

./krr simple -p http://victoria-metrics-01:8428 --prometheus-label=cluster -l prod -n xxxxxx  --allow-hpa

 _____       _               _          _  _______  _____
|  __ \     | |             | |        | |/ /  __ \|  __ \
| |__) |___ | |__  _   _ ___| |_ __ _  | ' /| |__) | |__) |
|  _  // _ \| '_ \| | | / __| __/ _` | |  < |  _  /|  _  /
| | \ \ (_) | |_) | |_| \__ \ || (_| | | . \| | \ \| | \ \
|_|  \_\___/|_.__/ \__,_|___/\__\__,_| |_|\_\_|  \_\_|  \_\


Thanks for using Robusta KRR. If you have any questions or feedback, please feel free to reach out to us at
https://github.com/robusta-dev/krr/issues

Watch our latest video to optimize your workloads and save costs: https://www.youtube.com/watch?v=TYRA2QcDIuI



Running Robusta's KRR (Kubernetes Resource Recommender) v1.18.0
Using strategy: Simple
Using formatter: table

[13:17:07] INFO     Using clusters: ['yc-core-prod-v2']                                                                                                            runner.py:280
           INFO     Prometheus URL is specified, will not auto-detect a metrics service                                                                             loader.py:55
           INFO     Trying to connect to Prometheus for yc-prod-v2 cluster                                                                 prometheus_metrics_service.py:68
           INFO     Using Prometheus at http://victoria-metrics-01:8428 for cluster yc-prod-v2                                prometheus_metrics_service.py:97
           INFO     Prometheus found                                                                                                                                loader.py:74
           INFO     Prometheus connected successfully for yc-prod-v2 cluster                                                                                   loader.py:47
           INFO     Listing scannable objects in yc-prod-v2                                                                                                  __init__.py:96
[13:17:08] 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 579, in list_scannable_objects                                                          
                      File "robusta_krr/core/integrations/kubernetes/__init__.py", line 582, in <listcomp>                                                                      
                      File "robusta_krr/core/integrations/kubernetes/__init__.py", line 101, in list_scannable_objects                                                          
                      File "robusta_krr/core/integrations/kubernetes/__init__.py", line 297, in _list_scannable_objects                                                         
                      File "robusta_krr/core/integrations/kubernetes/__init__.py", line 297, in <genexpr>                                                                       
                      File "robusta_krr/core/integrations/kubernetes/__init__.py", line 212, in __build_scannable_object                                                        
                      File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__                                                                                    
                    pydantic.error_wrappers.ValidationError: 2 validation errors for K8sObjectData                                                                              
                    labels                                                                                                                                                      
                      value is not a valid dict (type=type_error.dict)                                                                                                          
                    annotations                                                                                                                                                 
                      value is not a valid dict (type=type_error.dict)          
@aantn
Copy link
Contributor

aantn commented Dec 31, 2024

Hi @patsevanton, is this fixed for you on master? I suspect this is the issue that was fixed by #377

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants