|
1 |
| -# KubeVirtVMStuckInErrorState |
| 1 | +# KubeVirtVMStuckInErrorState [Deprecated] |
2 | 2 |
|
3 |
| -## Meaning |
4 |
| - |
5 |
| -The `KubeVirtVMStuckInErrorState` alert means that a VirtualMachine has been in |
6 |
| -an error state for more than 5 minutes. VirtualMachines are in error state when |
7 |
| -they are in one of the following status: |
8 |
| - |
9 |
| -1. CrashLoopBackOff |
10 |
| -2. Unknown |
11 |
| -3. Unschedulable |
12 |
| -4. ErrImagePull |
13 |
| -5. ImagePullBackOff |
14 |
| -6. PvcNotFound |
15 |
| -7. DataVolumeError |
16 |
| - |
17 |
| -This alert can suggest an issue in the VirtualMachine configuration, e.g. a |
18 |
| -missing PVC, or a problem in the cluster's underlying infrastructure, e.g. |
19 |
| -network disruptions, node resource shortage, etc. |
20 |
| - |
21 |
| -## Impact |
22 |
| - |
23 |
| -There is no immediate impact. However, if there are multiple machines in an |
24 |
| -error state, it might indicate that something is not working as planned, for |
25 |
| -example, a script may be consistently creating incorrect VirtualMachines |
26 |
| -configurations, or there might be a problem in the cluster's underlying |
27 |
| -infrastructure. |
28 |
| - |
29 |
| -## Diagnosis |
30 |
| - |
31 |
| -Check the VirtualMachine's status and conditions, and VM logs and configuration |
32 |
| -to find out what is causing the error state. |
33 |
| - |
34 |
| -```bash |
35 |
| -$ kubectl describe vmi testvmi-hxghp -n kubevirt-test-default1 |
36 |
| - |
37 |
| -Name: testvmi-hxghp |
38 |
| -Namespace: kubevirt-test-default1 |
39 |
| -Labels: name=testvmi-hxghp |
40 |
| -Annotations: kubevirt.io/latest-observed-api-version: v1 |
41 |
| - kubevirt.io/storage-observed-api-version: v1alpha3 |
42 |
| -API Version: kubevirt.io/v1 |
43 |
| -Kind: VirtualMachineInstance |
44 |
| -Metadata: |
45 |
| - ... |
46 |
| -Spec: |
47 |
| - Domain: |
48 |
| - ... |
49 |
| - Resources: |
50 |
| - Requests: |
51 |
| - Cpu: 5000000Gi |
52 |
| - Memory: 5130000240Mi |
53 |
| - ... |
54 |
| -Status: |
55 |
| - Active Pods: |
56 |
| - acbc8143-c1da-45e8-b498-3f0dafcd1383: |
57 |
| - Conditions: |
58 |
| - Last Probe Time: 2022-10-03T11:11:07Z |
59 |
| - Last Transition Time: 2022-10-03T11:11:07Z |
60 |
| - Message: Guest VM is not reported as running |
61 |
| - Reason: GuestNotRunning |
62 |
| - Status: False |
63 |
| - Type: Ready |
64 |
| - Last Probe Time: <nil> |
65 |
| - Last Transition Time: 2022-10-03T11:11:07Z |
66 |
| - Message: 0/2 nodes are available: 2 Insufficient cpu, 2 Insufficient memory. |
67 |
| - Reason: Unschedulable |
68 |
| - Status: False |
69 |
| - Type: PodScheduled |
70 |
| - Guest OS Info: |
71 |
| - Phase: Scheduling |
72 |
| - Phase Transition Timestamps: |
73 |
| - Phase: Pending |
74 |
| - Phase Transition Timestamp: 2022-10-03T11:11:07Z |
75 |
| - Phase: Scheduling |
76 |
| - Phase Transition Timestamp: 2022-10-03T11:11:07Z |
77 |
| - Qos Class: Burstable |
78 |
| - Runtime User: 0 |
79 |
| - Virtual Machine Revision Name: revision-start-vm-3503e2dc-27c0-46ef-9167-7ae2e7d93e6e-1 |
80 |
| -Events: |
81 |
| - Type Reason Age From Message |
82 |
| - ---- ------ ---- ---- ------- |
83 |
| - Normal SuccessfulCreate 27s virtualmachine-controller Created virtual machine pod virt-launcher-testvmi-hxghp-xh9qn |
84 |
| - |
85 |
| - |
86 |
| -``` |
87 |
| - |
88 |
| -Also, check the nodes statuses and conditions. |
89 |
| - |
90 |
| -```bash |
91 |
| -$ kubectl get nodes -l node-role.kubernetes.io/worker= -o json | jq '.items | .[].status.allocatable' |
92 |
| - |
93 |
| -{ |
94 |
| - "cpu": "5", |
95 |
| - "devices.kubevirt.io/kvm": "1k", |
96 |
| - "devices.kubevirt.io/sev": "0", |
97 |
| - "devices.kubevirt.io/tun": "1k", |
98 |
| - "devices.kubevirt.io/vhost-net": "1k", |
99 |
| - "ephemeral-storage": "33812468066", |
100 |
| - "hugepages-1Gi": "0", |
101 |
| - "hugepages-2Mi": "128Mi", |
102 |
| - "memory": "3783496Ki", |
103 |
| - "pods": "110" |
104 |
| -} |
105 |
| -``` |
106 |
| - |
107 |
| -```bash |
108 |
| -$ kubectl get nodes -l node-role.kubernetes.io/worker= -o json | jq '.items | .[].status.conditions' |
109 |
| - |
110 |
| -[ |
111 |
| - { |
112 |
| - "lastHeartbeatTime": "2022-10-03T11:13:34Z", |
113 |
| - "lastTransitionTime": "2022-10-03T10:14:20Z", |
114 |
| - "message": "kubelet has sufficient memory available", |
115 |
| - "reason": "KubeletHasSufficientMemory", |
116 |
| - "status": "False", |
117 |
| - "type": "MemoryPressure" |
118 |
| - }, |
119 |
| - { |
120 |
| - "lastHeartbeatTime": "2022-10-03T11:13:34Z", |
121 |
| - "lastTransitionTime": "2022-10-03T10:14:20Z", |
122 |
| - "message": "kubelet has no disk pressure", |
123 |
| - "reason": "KubeletHasNoDiskPressure", |
124 |
| - "status": "False", |
125 |
| - "type": "DiskPressure" |
126 |
| - }, |
127 |
| - { |
128 |
| - "lastHeartbeatTime": "2022-10-03T11:13:34Z", |
129 |
| - "lastTransitionTime": "2022-10-03T10:14:20Z", |
130 |
| - "message": "kubelet has sufficient PID available", |
131 |
| - "reason": "KubeletHasSufficientPID", |
132 |
| - "status": "False", |
133 |
| - "type": "PIDPressure" |
134 |
| - }, |
135 |
| - { |
136 |
| - "lastHeartbeatTime": "2022-10-03T11:13:34Z", |
137 |
| - "lastTransitionTime": "2022-10-03T10:14:30Z", |
138 |
| - "message": "kubelet is posting ready status", |
139 |
| - "reason": "KubeletReady", |
140 |
| - "status": "True", |
141 |
| - "type": "Ready" |
142 |
| - } |
143 |
| -] |
144 |
| -``` |
145 |
| - |
146 |
| -## Mitigation |
147 |
| - |
148 |
| -First, ensure that the VirtualMachine configuration is correct and all necessary |
149 |
| -resources exist. For example, if a PVC is missing, it should be created. Also, |
150 |
| -verify that the cluster's infrastructure is healthy and there are enough |
151 |
| -resources to run the VirtualMachine. |
152 |
| - |
153 |
| -This problem can be caused by several reasons. Therefore, we advise you to try |
154 |
| -to identify and fix the root cause. If you cannot resolve this issue, please |
155 |
| -open an issue and attach the artifacts gathered in the Diagnosis section. |
| 3 | +This alert has been deprecated; it does not indicate a genuine issue. If |
| 4 | +triggered, it may be safely ignored and silenced. |
0 commit comments