|
| 1 | +# LowReadyVirtHandlerCount |
| 2 | + |
| 3 | +## Meaning |
| 4 | + |
| 5 | +This alert fires when one or more `virt-handler` pods are running, but not |
| 6 | +all of them have been in a `Ready` state for the last 10 minutes. |
| 7 | + |
| 8 | +The `virt-handler` runs on every node that can schedule VMIs (as a |
| 9 | +DaemonSet). Each node typically has one `virt-handler` pod. |
| 10 | + |
| 11 | +## Impact |
| 12 | + |
| 13 | +Some nodes may have a running but not ready `virt-handler`. VMIs running on those |
| 14 | +nodes might not be fully managed (e.g. domain updates, network or storage |
| 15 | +changes). If the condition persists, it can lead to the `NoReadyVirtHandler` |
| 16 | +alert for affected nodes. |
| 17 | + |
| 18 | +## Diagnosis |
| 19 | + |
| 20 | +1. Set the `NAMESPACE` environment variable: |
| 21 | + |
| 22 | + ```bash |
| 23 | + $ export NAMESPACE="$(kubectl get kubevirt -A -o custom-columns="":.metadata.namespace)" |
| 24 | + ``` |
| 25 | + |
| 26 | +2. Check the status of the `virt-handler` pods: |
| 27 | + |
| 28 | + ```bash |
| 29 | + $ kubectl -n $NAMESPACE get pods -l kubevirt.io=virt-handler -o wide |
| 30 | + ``` |
| 31 | + |
| 32 | +3. For pods that are running but not ready, inspect pod conditions and events: |
| 33 | + |
| 34 | + ```bash |
| 35 | + $ kubectl -n $NAMESPACE describe pod -l kubevirt.io=virt-handler |
| 36 | + ``` |
| 37 | + |
| 38 | +4. If pods are in `CrashLoopBackOff` or to inspect runtime failures, check |
| 39 | + non-ready `virt-handler` pod logs and look for errors: |
| 40 | + |
| 41 | + ```bash |
| 42 | + $ kubectl -n $NAMESPACE logs -l kubevirt.io=virt-handler |
| 43 | + ``` |
| 44 | + |
| 45 | + Note: With multiple pods (DaemonSet), `-l` streams one pod's logs; use a |
| 46 | + pod name from step 2 to target a specific non-ready pod. |
| 47 | + |
| 48 | +5. If needed, check the `virt-handler` DaemonSet and its events: |
| 49 | + |
| 50 | + ```bash |
| 51 | + $ kubectl -n $NAMESPACE describe daemonset virt-handler |
| 52 | + ``` |
| 53 | + |
| 54 | +6. Check for node issues on nodes where `virt-handler` is not ready: |
| 55 | + |
| 56 | + ```bash |
| 57 | + $ kubectl get nodes |
| 58 | + ``` |
| 59 | + |
| 60 | +## Mitigation |
| 61 | + |
| 62 | +Identify why some `virt-handler` pods are not ready (e.g. failed readiness |
| 63 | +probe, resource pressure, node issues) and resolve the underlying cause so |
| 64 | +all schedulable nodes have a ready `virt-handler`. |
| 65 | + |
| 66 | +<!--DS: If you cannot resolve the issue, log in to the |
| 67 | +link:https://access.redhat.com[Customer Portal] and open a support case, |
| 68 | +attaching the artifacts gathered during the diagnosis procedure.--> |
| 69 | +<!--USstart--> |
| 70 | +If you cannot resolve the issue, see the following resources: |
| 71 | + |
| 72 | +- [OKD Help](https://okd.io/docs/community/help/) |
| 73 | +- [#virtualization Slack channel](https://kubernetes.slack.com/channels/virtualization) |
| 74 | +<!--USend--> |
0 commit comments