Skip to content
Merged
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{"toolset_name": "kubernetes/core", "tool_name": "kubectl_describe", "match_params": {"kind": "pod", "name": "user-profile-import", "namespace": "default"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "url": null, "invocation": "kubectl_describe command", "params": {"kind": "pod", "name": "user-profile-import", "namespace": "default"}}
{"toolset_name": "kubernetes/core", "tool_name": "kubectl_describe", "match_params": {"kind": "pod", "name": "user-profile-import", "namespace": "app-13a"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "url": null, "invocation": "kubectl_describe command", "params": {"kind": "pod", "name": "user-profile-import", "namespace": "app-13a"}}
stdout:
Name: user-profile-import
Namespace: default
Namespace: app-13a
Priority: 0
Service Account: default
Node: <none>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
user_prompt: "What is the issue with user-profile-import"
expected_output: "node selector mismatch"
Comment thread
aantn marked this conversation as resolved.
Resolved
before_test: |
kubectl apply -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pending_pods/pending_pod_node_selector.yaml
kubectl create namespace app-13a || true
kubectl apply -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pending_pods/pending_pod_node_selector.yaml -n app-13a
Comment thread
aantn marked this conversation as resolved.
Resolved
sleep 30
after_test: |
kubectl delete -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pending_pods/pending_pod_node_selector.yaml
kubectl delete -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pending_pods/pending_pod_node_selector.yaml -n app-13a || true
kubectl delete namespace app-13a || true
tags:
- easy
- kubernetes
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{"toolset_name": "kubernetes/core", "tool_name": "kubectl_describe", "match_params": {"kind": "pod", "name": "user-profile-import", "namespace": "app-13b"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "url": null, "invocation": "kubectl_describe command", "params": {"kind": "pod", "name": "user-profile-import", "namespace": "app-13b"}}
stdout:
Name: user-profile-import
Namespace: app-13b
Priority: 0
Service Account: default
Node: <none>
Labels: <none>
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Containers:
nginx:
Image: nginx
Port: <none>
Host Port: <none>
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-pk5lt (ro)
Conditions:
Type Status
PodScheduled False
Volumes:
kube-api-access-pk5lt:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors: label=someLabel
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 38s default-scheduler 0/1 nodes are available: 1 node(s) didn't match Pod's node affinity/selector. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.

stderr:
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{"toolset_name": "kubernetes/core", "tool_name": "kubectl_find_resource", "match_params": {"kind": "pod", "keyword": "user-profile-import"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "url": null, "invocation": "kubectl_find_resource command", "params": {"kind": "pod", "keyword": "user-profile-import"}}
stdout:
default user-profile-import 0/1 Pending 0 36s <none> <none> <none> <none> <none>

Comment thread
aantn marked this conversation as resolved.
Resolved
stderr:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_get_by_kind_in_cluster","match_params":{"kind":"node"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl get -A --show-labels -o wide node", "params": {"kind": "node"}}
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME LABELS
kind-double-node-control-plane Ready control-plane 28d v1.31.2 172.18.0.2 <none> Debian GNU/Linux 12 (bookworm) 6.10.4-linuxkit containerd://1.7.18 beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=kind-double-node-control-plane,kubernetes.io/os=linux,node-role.kubernetes.io/control-plane=,node.kubernetes.io/exclude-from-external-load-balancers=
kind-double-node-worker Ready <none> 28d v1.31.2 172.18.0.3 <none> Debian GNU/Linux 12 (bookworm) 6.10.4-linuxkit containerd://1.7.18 beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=kind-double-node-worker,kubernetes.io/os=linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
user_prompt: "What is the issue with user-profile-import"
expected_output:
- The pod user-profile-import is pending because its nodeSelector "label=someLabel" doesn't match any nodes
- The pod requires a node with label "label=someLabel" but neither node has this label
- To fix, either remove the nodeSelector from the pod or add the label "label=someLabel" to a node
tags:
- medium # requires citing exact labels and node information
- kubernetes
before_test: |
kubectl create namespace app-13b || true
kubectl apply -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pending_pods/pending_pod_node_selector.yaml -n app-13b
sleep 30
after_test: |
kubectl delete -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pending_pods/pending_pod_node_selector.yaml -n app-13b || true
kubectl delete namespace app-13b || true
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_describe","match_params":{"kind":"PersistentVolumeClaim","name":"redis-standard-pvc","namespace":"app-24a"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl describe PersistentVolumeClaim redis-standard-pvc -n app-24a", "params": {"kind": "PersistentVolumeClaim", "name": "redis-standard-pvc", "namespace": "app-24a"}}
Name: redis-standard-pvc
Namespace: app-24a
StorageClass: standard-v2
Status: Pending
Volume:
Labels: <none>
Annotations: <none>
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Used By: redis-747ffc844f-f9ghd
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ProvisioningFailed 21s (x26 over 6m35s) persistentvolume-controller storageclass.storage.k8s.io "standard-v2" not found
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_describe","match_params":{"kind":"persistentvolumeclaim","name":"redis-standard-pvc","namespace":"app-24a"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl describe persistentvolumeclaim redis-standard-pvc -n app-24a", "params": {"kind": "persistentvolumeclaim", "name": "redis-standard-pvc", "namespace": "app-24a"}}
Name: redis-standard-pvc
Namespace: app-24a
StorageClass: standard-v2
Status: Pending
Volume:
Labels: <none>
Annotations: <none>
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Used By: redis-747ffc844f-f9ghd
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ProvisioningFailed 2m12s (x42 over 12m) persistentvolume-controller storageclass.storage.k8s.io "standard-v2" not found
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_describe","match_params":{"kind":"pod","name":"redis-747ffc844f-f9ghd","namespace":"default"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl describe pod redis-747ffc844f-f9ghd -n default", "params": {"kind": "pod", "name": "redis-747ffc844f-f9ghd", "namespace": "default"}}
{"toolset_name":"kubernetes/core","tool_name":"kubectl_describe","match_params":{"kind":"pod","name":"redis-747ffc844f-f9ghd","namespace":"app-24a"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl describe pod redis-747ffc844f-f9ghd -n app-24a", "params": {"kind": "pod", "name": "redis-747ffc844f-f9ghd", "namespace": "default"}}
Name: redis-747ffc844f-f9ghd
Namespace: default
Namespace: app-24a
Priority: 0
Service Account: default
Node: <none>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_get_by_name","match_params":{"kind":"PersistentVolumeClaim","name":"redis-standard-pvc","namespace":"default"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl get --show-labels -o wide PersistentVolumeClaim redis-standard-pvc -n default", "params": {"kind": "PersistentVolumeClaim", "name": "redis-standard-pvc", "namespace": "default"}}
{"toolset_name":"kubernetes/core","tool_name":"kubectl_get_by_name","match_params":{"kind":"PersistentVolumeClaim","name":"redis-standard-pvc","namespace":"app-24a"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl get --show-labels -o wide PersistentVolumeClaim redis-standard-pvc -n app-24a", "params": {"kind": "PersistentVolumeClaim", "name": "redis-standard-pvc", "namespace": "app-24a"}}
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE VOLUMEMODE LABELS
redis-standard-pvc Pending standard-v2 <unset> 6m58s Filesystem <none>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_get_by_name","match_params":{"kind":"persistentvolumeclaim","name":"redis-standard-pvc","namespace":"app-24a"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl get --show-labels -o wide persistentvolumeclaim redis-standard-pvc -n app-24a", "params": {"kind": "persistentvolumeclaim", "name": "redis-standard-pvc", "namespace": "app-24a"}}
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE VOLUMEMODE LABELS
redis-standard-pvc Pending standard-v2 <unset> 12m Filesystem <none>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
user_prompt: "What is the issue with redis?"
expected_output:
- The PersistentVolumeClaim (pvc) is misconfigured
tags:
- easy # although it failed 1/20 runs and the failure was asking the user for more information and not trying to investigate at all first - see https://www.braintrust.dev/app/robustadev/p/HolmesGPT/experiments/natan-all-easy-ask3?c=github-16532477432.2600.1&r=9ab9ed06-1db1-45f1-a98c-119160af79c3&s=c6b3795a-8984-4537-830b-76a8e4a932a0
- kubernetes
before_test: |
kubectl create namespace app-24a || true
kubectl apply -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pvc-misconfiguration/redis-deployment.yaml -n app-24a
after_test: |
kubectl delete -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pvc-misconfiguration/redis-deployment.yaml -n app-24a
kubectl delete namespace app-24a || true
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_describe","match_params":{"kind":"PersistentVolumeClaim","name":"redis-standard-pvc","namespace":"default"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl describe PersistentVolumeClaim redis-standard-pvc -n default", "params": {"kind": "PersistentVolumeClaim", "name": "redis-standard-pvc", "namespace": "default"}}
{"toolset_name":"kubernetes/core","tool_name":"kubectl_describe","match_params":{"kind":"PersistentVolumeClaim","name":"redis-standard-pvc","namespace":"app-24b"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl describe PersistentVolumeClaim redis-standard-pvc -n app-24b", "params": {"kind": "PersistentVolumeClaim", "name": "redis-standard-pvc", "namespace": "default"}}
Name: redis-standard-pvc
Namespace: default
Namespace: app-24b
StorageClass: standard-v2
Status: Pending
Volume:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_describe","match_params":{"kind":"persistentvolumeclaim","name":"redis-standard-pvc","namespace":"default"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl describe persistentvolumeclaim redis-standard-pvc -n default", "params": {"kind": "persistentvolumeclaim", "name": "redis-standard-pvc", "namespace": "default"}}
{"toolset_name":"kubernetes/core","tool_name":"kubectl_describe","match_params":{"kind":"persistentvolumeclaim","name":"redis-standard-pvc","namespace":"app-24b"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl describe persistentvolumeclaim redis-standard-pvc -n app-24b", "params": {"kind": "persistentvolumeclaim", "name": "redis-standard-pvc", "namespace": "default"}}
Name: redis-standard-pvc
Namespace: default
Namespace: app-24b
StorageClass: standard-v2
Status: Pending
Volume:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_describe","match_params":{"kind":"pod","name":"redis-747ffc844f-f9ghd","namespace":"app-24b"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl describe pod redis-747ffc844f-f9ghd -n app-24b", "params": {"kind": "pod", "name": "redis-747ffc844f-f9ghd", "namespace": "default"}}
Name: redis-747ffc844f-f9ghd
Namespace: app-24b
Priority: 0
Service Account: default
Node: <none>
Labels: app=redis
pod-template-hash=747ffc844f
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Controlled By: ReplicaSet/redis-747ffc844f
Containers:
redis:
Image: redis:6.2.6
Port: 6379/TCP
Host Port: 0/TCP
Command:
redis-server
--save
60
1
--stop-writes-on-bgsave-error
no
--dir
/data
Limits:
cpu: 500m
memory: 2Gi
Requests:
cpu: 100m
memory: 256Mi
Environment: <none>
Mounts:
/data from redis-storage (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-vdbtm (ro)
Conditions:
Type Status
PodScheduled False
Volumes:
redis-storage:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: redis-standard-pvc
ReadOnly: false
kube-api-access-vdbtm:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 100s (x2 over 6m45s) default-scheduler 0/2 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_find_resource","match_params":{"kind":"pod","keyword":"redis"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl get -A --show-labels -o wide pod | grep redis", "params": {"kind": "pod", "keyword": "redis"}}
default redis-747ffc844f-f9ghd 0/1 Pending 0 6m44s <none> <none> <none> <none> app=redis,pod-template-hash=747ffc844f
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_get_by_name","match_params":{"kind":"PersistentVolumeClaim","name":"redis-standard-pvc","namespace":"app-24b"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl get --show-labels -o wide PersistentVolumeClaim redis-standard-pvc -n app-24b", "params": {"kind": "PersistentVolumeClaim", "name": "redis-standard-pvc", "namespace": "app-24b"}}
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE VOLUMEMODE LABELS
redis-standard-pvc Pending standard-v2 <unset> 6m58s Filesystem <none>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"toolset_name":"kubernetes/core","tool_name":"kubectl_get_by_name","match_params":{"kind":"persistentvolumeclaim","name":"redis-standard-pvc","namespace":"default"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl get --show-labels -o wide persistentvolumeclaim redis-standard-pvc -n default", "params": {"kind": "persistentvolumeclaim", "name": "redis-standard-pvc", "namespace": "default"}}
{"toolset_name":"kubernetes/core","tool_name":"kubectl_get_by_name","match_params":{"kind":"persistentvolumeclaim","name":"redis-standard-pvc","namespace":"app-24b"}}
{"schema_version": "robusta:v1.0.0", "status": "success", "error": null, "return_code": 0, "data": null, "url": null, "invocation": "kubectl get --show-labels -o wide persistentvolumeclaim redis-standard-pvc -n app-24b", "params": {"kind": "persistentvolumeclaim", "name": "redis-standard-pvc", "namespace": "default"}}
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE VOLUMEMODE LABELS
redis-standard-pvc Pending standard-v2 <unset> 12m Filesystem <none>
Loading