krr: value is not a valid dict (type=type_error.dict)
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)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 15 (13 by maintainers)
Hi @patsevanton, is this fixed for you on master? I suspect this is the issue that was fixed by https://github.com/robusta-dev/krr/pull/377