Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WTI logic to catch init crashes #11764

Merged
merged 2 commits into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 38 additions & 4 deletions triage/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,17 @@ rules:
field1:
regex: 'WSL (.*) ERROR'
set: init-error


- logline:
provider: Microsoft.Windows.Lxss.Manager
task: GuestLog
field1:
regex: 'init(.*) segfault'
set:
name: init-crash
capture:
field1: error

- logline:
provider: Microsoft.Windows.Subsystem.Lxss
task: UserVisibleError
Expand Down Expand Up @@ -122,6 +132,16 @@ rules:
capture:
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:
provider: Microsoft.Windows.Lxss.Manager
set: service-running
Expand All @@ -136,7 +156,7 @@ rules:

- logline:
provider: Microsoft.Windows.Subsystem.Lxss
task: UserVisibleError
task: UserVisible Error
field3: {regex: '.*/ConfigureNetworking/HNS/.*'}
set:
name: hns-fatal-error
Expand Down Expand Up @@ -205,7 +225,11 @@ actions:
debug_message: 'Detected user visible error: $error'
skip_similar_issues: false


- when:
condition: 'init-crash'
debug_message: 'Found evidence of init crash: $error'
tag: init-crash

- when:
condition: 'kernel-panic'
debug_message: 'Found evidence of kernel panic: $kmsg'
Expand All @@ -225,8 +249,18 @@ actions:
user_message: 'The logs show that your Hyper-V firmware is expired. Please update your Windows build and see if that solves the issue'
tag: needs-author-feedback
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:
condition:
and: ['vm-failed-to-start', 'corrupted-initramfs']
Expand Down