Skip to content

Commit 96fac96

Browse files
authored
Add WTI logic to catch init crashes (#11764)
* Add WTI logic to catch HcnCreateNetwork failures * Add wti logic to catch crashes in init
1 parent 12a571d commit 96fac96

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

triage/config.yml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,17 @@ rules:
8484
field1:
8585
regex: 'WSL (.*) ERROR'
8686
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+
8898
- logline:
8999
provider: Microsoft.Windows.Subsystem.Lxss
90100
task: UserVisibleError
@@ -129,6 +139,16 @@ rules:
129139
capture:
130140
field8: error
131141

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+
132152
- logline:
133153
provider: Microsoft.Windows.Lxss.Manager
134154
set: service-running
@@ -143,7 +163,7 @@ rules:
143163

144164
- logline:
145165
provider: Microsoft.Windows.Subsystem.Lxss
146-
task: UserVisibleError
166+
task: UserVisible Error
147167
field3: {regex: '.*/ConfigureNetworking/HNS/.*'}
148168
set:
149169
name: hns-fatal-error
@@ -212,7 +232,11 @@ actions:
212232
debug_message: 'Detected user visible error: $error'
213233
skip_similar_issues: false
214234

215-
235+
- when:
236+
condition: 'init-crash'
237+
debug_message: 'Found evidence of init crash: $error'
238+
tag: init-crash
239+
216240
- when:
217241
condition: 'kernel-panic'
218242
debug_message: 'Found evidence of kernel panic: $kmsg'
@@ -232,8 +256,18 @@ actions:
232256
user_message: 'The logs show that your Hyper-V firmware is expired. Please update your Windows build and see if that solves the issue'
233257
tag: needs-author-feedback
234258
skip_similar_issues: true
235-
236259

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+
237271
- when:
238272
condition:
239273
and: ['vm-failed-to-start', 'corrupted-initramfs']

0 commit comments

Comments
 (0)