Add WTI logic to catch init crashes (#11764)
* Add WTI logic to catch HcnCreateNetwork failures * Add wti logic to catch crashes in init
Blue committed
Jul 12, 2024 at 15:29 UTC
96fac9608886d2a03a39e7a2311f24cabf8cc73c
1 file changed
+38
-4
triage/config.yml
+38
-4
@@ -84,7 +84,17 @@ rules:
84
field1:
85
regex: 'WSL (.*) ERROR'
86
set: init-error
87
-
87
+
88
+ - logline:
89
+ provider: Microsoft.Windows.Lxss.Manager
90
+ task: GuestLog
91
+ field1:
92
+ regex: 'init(.*) segfault'
93
+ set:
94
+ name: init-crash
95
+ capture:
96
+ field1: error
97
+
98
- logline:
99
provider: Microsoft.Windows.Subsystem.Lxss
100
task: UserVisibleError
@@ -129,6 +139,16 @@ rules:
139
capture:
140
field8: error
141
142
+ - logline:
143
+ provider: Microsoft.Windows.Lxss.Manager
144
+ task: Error
145
+ field9: {contains: HcnCreateNetwork}
146
+ set:
147
+ name: hns-create-network-error
148
+ capture:
149
+ field9: error
150
+ field8: hresult
151
+
152
- logline:
153
provider: Microsoft.Windows.Lxss.Manager
154
set: service-running
@@ -143,7 +163,7 @@ rules:
163
164
- logline:
165
provider: Microsoft.Windows.Subsystem.Lxss
146
- task: UserVisibleError
166
+ task: UserVisible Error
167
field3: {regex: '.*/ConfigureNetworking/HNS/.*'}
168
set:
169
name: hns-fatal-error
@@ -212,7 +232,11 @@ actions:
232
debug_message: 'Detected user visible error: $error'
233
skip_similar_issues: false
234
215
-
235
+ - when:
236
+ condition: 'init-crash'
237
+ debug_message: 'Found evidence of init crash: $error'
238
+ tag: init-crash
239
+
240
- when:
241
condition: 'kernel-panic'
242
debug_message: 'Found evidence of kernel panic: $kmsg'
@@ -232,8 +256,18 @@ actions:
256
user_message: 'The logs show that your Hyper-V firmware is expired. Please update your Windows build and see if that solves the issue'
257
tag: needs-author-feedback
258
skip_similar_issues: true
235
-
259
260
+ - when:
261
+ condition: 'hns-create-network-error'
262
+ debug_message: 'Found evidence of HcnCreateNetwork failure: $error. HResult: $hresult'
263
+
264
+ - when:
265
+ condition:
266
+ and: ['vm-failed-to-start', 'hns-create-network-error']
267
+ user_message: "The logs show that the VM failed to start because the HNS network couldn't be created. Adding network tag"
268
+ tag: network
269
+ skip_similar_issues: true
270
+
271
- when:
272
condition:
273
and: ['vm-failed-to-start', 'corrupted-initramfs']