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:
Mikhail ChusavitinandClaude Opus 5.5 committed 2026-10-01 12:49:08 +03:00
1 parent 9f5f7a98be
commit ff5b99fa5c
15 files changed
+349 -42

No files matched your search

+25
View File
@@ -293,3 +293,28 @@ func TestNormalizePSUSlots(t *testing.T) {
t.Errorf("non-numeric slot must be untouched, got %q", got[0].Slot)
}
}
// Real BEE-SP v14.23 event_logs pass the source-native timestamps through:
// ipmitool SEL, `dmesg -T`, and SEL "Pre-Init" records with no wall-clock time.
func TestConvertEventLogsParsesSourceNativeTimes(t *testing.T) {
events := convertEventLogs([]beeEventLog{
{Source: "ipmi-sel", EventTime: "04/01/25 18:59:45 UTC", Severity: "Critical", MessageID: "6", Message: "Transition to Non-recoverable from less severe", ComponentRef: "Chassis #0xac"},
{Source: "dmesg", EventTime: "Thu Oct 1 09:33:18 2026", Severity: "Critical", Message: "usb 1-1: device not accepting address 3, error -71"},
{Source: "ipmi-sel", EventTime: "Pre-Init 0000000270", Severity: "info", MessageID: "1", Message: "S0/G0: working"},
})
if len(events) != 3 {
t.Fatalf("expected 3 events, got %d", len(events))
}
if want := time.Date(2025, 4, 1, 18, 59, 45, 0, time.UTC); !events[0].Timestamp.Equal(want) {
t.Errorf("SEL time = %v, want %v", events[0].Timestamp, want)
}
if events[0].ID != "6" || events[0].SensorName != "Chassis #0xac" || events[0].Severity != models.SeverityCritical {
t.Errorf("SEL event fields lost: %+v", events[0])
}
if want := time.Date(2026, 10, 1, 9, 33, 18, 0, time.UTC); !events[1].Timestamp.Equal(want) {
t.Errorf("dmesg time = %v, want %v", events[1].Timestamp, want)
}
if !events[2].Timestamp.IsZero() {
t.Errorf("Pre-Init SEL record must stay undated, got %v", events[2].Timestamp)
}
}