mirror of https://github.com/microsoft/WSL
Add WTI logic to catch init crashes (#11764)
* Add WTI logic to catch HcnCreateNetwork failures * Add wti logic to catch crashes in init
This commit is contained in:
parent
12a571d588
commit
96fac96088
|
|
@ -85,6 +85,16 @@ rules:
|
||||||
regex: 'WSL (.*) ERROR'
|
regex: 'WSL (.*) ERROR'
|
||||||
set: init-error
|
set: init-error
|
||||||
|
|
||||||
|
- logline:
|
||||||
|
provider: Microsoft.Windows.Lxss.Manager
|
||||||
|
task: GuestLog
|
||||||
|
field1:
|
||||||
|
regex: 'init(.*) segfault'
|
||||||
|
set:
|
||||||
|
name: init-crash
|
||||||
|
capture:
|
||||||
|
field1: error
|
||||||
|
|
||||||
- logline:
|
- logline:
|
||||||
provider: Microsoft.Windows.Subsystem.Lxss
|
provider: Microsoft.Windows.Subsystem.Lxss
|
||||||
task: UserVisibleError
|
task: UserVisibleError
|
||||||
|
|
@ -129,6 +139,16 @@ rules:
|
||||||
capture:
|
capture:
|
||||||
field8: error
|
field8: error
|
||||||
|
|
||||||
|
- logline:
|
||||||
|
provider: Microsoft.Windows.Lxss.Manager
|
||||||
|
task: Error
|
||||||
|
field9: {contains: HcnCreateNetwork}
|
||||||
|
set:
|
||||||
|
name: hns-create-network-error
|
||||||
|
capture:
|
||||||
|
field9: error
|
||||||
|
field8: hresult
|
||||||
|
|
||||||
- logline:
|
- logline:
|
||||||
provider: Microsoft.Windows.Lxss.Manager
|
provider: Microsoft.Windows.Lxss.Manager
|
||||||
set: service-running
|
set: service-running
|
||||||
|
|
@ -212,6 +232,10 @@ actions:
|
||||||
debug_message: 'Detected user visible error: $error'
|
debug_message: 'Detected user visible error: $error'
|
||||||
skip_similar_issues: false
|
skip_similar_issues: false
|
||||||
|
|
||||||
|
- when:
|
||||||
|
condition: 'init-crash'
|
||||||
|
debug_message: 'Found evidence of init crash: $error'
|
||||||
|
tag: init-crash
|
||||||
|
|
||||||
- when:
|
- when:
|
||||||
condition: 'kernel-panic'
|
condition: 'kernel-panic'
|
||||||
|
|
@ -233,6 +257,16 @@ actions:
|
||||||
tag: needs-author-feedback
|
tag: needs-author-feedback
|
||||||
skip_similar_issues: true
|
skip_similar_issues: true
|
||||||
|
|
||||||
|
- when:
|
||||||
|
condition: 'hns-create-network-error'
|
||||||
|
debug_message: 'Found evidence of HcnCreateNetwork failure: $error. HResult: $hresult'
|
||||||
|
|
||||||
|
- when:
|
||||||
|
condition:
|
||||||
|
and: ['vm-failed-to-start', 'hns-create-network-error']
|
||||||
|
user_message: "The logs show that the VM failed to start because the HNS network couldn't be created. Adding network tag"
|
||||||
|
tag: network
|
||||||
|
skip_similar_issues: true
|
||||||
|
|
||||||
- when:
|
- when:
|
||||||
condition:
|
condition:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue