fix(topology): attach HPE DIMMs and RAID member disks; import easy-bee event logs
HPE DL380 Gen11 BEE-SP v14.23 blackbox bundle (ADL-077): - topology: accept "PROC n" DIMM locators, show the storage controller filtered from the export by ADL-062 when disks resolve to it, resolve storcli EID:Slt drives via VD -> OS drive -> controller BDF, hide BMC VGA, label numeric PSU slots "PSU n" - easy_bee: parse SEL / dmesg -T event times, keep message_id and component_ref, pass platform_config through - exporter: map ipmi-sel -> bmc and dmesg/kernel -> host in event_logs - privacy: treat journald/syslog kernel lines as noise (linux.it false positive) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9f5f7a98be
commit
ff5b99fa5c
15 files changed
+349
-42
No files matched your search
@@ -171,6 +171,7 @@ func TestScan_OSConfigNoise(t *testing.T) {
|
||||
`serial-getty@ttyAMA0.service`,
|
||||
`Copyright (C) 2002-22, www.smartmontools.org`,
|
||||
`OpenIB.org BSD license (FreeBSD Variant)`,
|
||||
`Oct 01 09:32:18 easy-bee-nogpu-v14-23 kernel: pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>`,
|
||||
}, "\n")
|
||||
rep := Scan([]File{{Path: "onekeylog/log/sollog/SOLHostCapture.log", Content: []byte(noise)}})
|
||||
if rep != nil && len(rep.Findings) > 0 {
|
||||
|
||||
@@ -77,6 +77,9 @@ var (
|
||||
// Kernel ring-buffer line: "[ 12.345678] ..." or "[ 12.34][ T1] ...".
|
||||
// These carry driver/copyright strings (emails, versions), never customer id.
|
||||
reKernelTimestamp = regexp.MustCompile(`^\[\s*\d+\.\d+\]`)
|
||||
// The same kernel messages as journald/syslog renders them:
|
||||
// "Oct 01 09:32:18 host kernel: pps_core: ... <giometti@linux.it>".
|
||||
reSyslogKernel = regexp.MustCompile(`^(?:\S+\s+){1,5}kernel:\s`)
|
||||
// Go panic / stack-trace lines: module-cache paths and "file.go:123" frames.
|
||||
reGoRuntime = regexp.MustCompile(`/go-mod/|\bgoroutine \d|\.go:\d+`)
|
||||
// A dotted quad sitting on a line that is talking about a version or a spec
|
||||
@@ -123,7 +126,7 @@ var (
|
||||
func findMatches(line string, certFile bool) []matchSpan {
|
||||
var out []matchSpan
|
||||
specific := map[string]struct{}{}
|
||||
noiseLine := reKernelTimestamp.MatchString(line) || reGoRuntime.MatchString(line)
|
||||
noiseLine := reKernelTimestamp.MatchString(line) || reSyslogKernel.MatchString(line) || reGoRuntime.MatchString(line)
|
||||
|
||||
add := func(cat, sev, hint string, s, e int) {
|
||||
if s < 0 || e > len(line) || s >= e {
|
||||
|
||||
Reference in new issue
Block a user