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
@@ -82,3 +82,64 @@ func TestRenderHTMLIsStaticAndEscapesLabels(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// HPE ProLiant DL380 Gen11 (BEE-SP v14.23): DIMM locators read "PROC 1 DIMM 10",
|
||||
// the MegaRAID controller is not part of the Reanimator projection, and its
|
||||
// physical drives carry storcli "EID:Slt" slots instead of an HCTL.
|
||||
func TestBuildAttachesHPEMemoryAndRAIDMemberDisks(t *testing.T) {
|
||||
snapshot := &exporter.ReanimatorExport{Hardware: exporter.ReanimatorHardware{
|
||||
Board: exporter.ReanimatorBoard{SerialNumber: "SN1"},
|
||||
CPUs: []exporter.ReanimatorCPU{{Socket: 1}},
|
||||
Memory: []exporter.ReanimatorMemory{{Slot: "PROC 1 DIMM 10", SizeMB: 32768}},
|
||||
Storage: []exporter.ReanimatorStorage{
|
||||
{Slot: "252:1", Model: "Micron_7450"},
|
||||
{Slot: "252:2", Model: "Micron_7450"},
|
||||
{Slot: "252:3", Model: "Micron_7450"},
|
||||
},
|
||||
PCIeDevices: []exporter.ReanimatorPCIe{
|
||||
{Slot: "0000:01:00.1", VendorID: 0x102b, DeviceClass: "VideoController", Model: "MGA G200eH3", NUMANode: intp(0)},
|
||||
{Slot: "0000:6c:00.0", DeviceClass: "NetworkController", NUMANode: intp(0)},
|
||||
},
|
||||
}}
|
||||
e := &models.TopologyEvidence{
|
||||
StorageMap: "sda hctl=0:3:111:0 ctrl=0000:6d:00.0\nsdb hctl=1:0:0:0 ctrl=0000:00:14.0\n",
|
||||
StorcliVDs: `{"Controllers":[{"Command Status":{"Controller":0},"Response Data":{
|
||||
"/c0/v239":[{"DG/VD":"0/239","TYPE":"RAID1"}],
|
||||
"PDs for VD 239":[{"EID:Slt":"252:1"},{"EID:Slt":"252:2"}],
|
||||
"VD239 Properties":{"OS Drive Name":"/dev/sda"}}}]}`,
|
||||
StorcliDrives: `{"Controllers":[{"Command Status":{"Controller":0},"Response Data":{
|
||||
"Drive /c0/e252/s1":[{"EID:Slt":"252:1"}],
|
||||
"Drive /c0/e252/s3":[{"EID:Slt":"252:3"}],
|
||||
"Drive /c0/e252/s3 - Detailed Information":{}}}]}`,
|
||||
}
|
||||
controllers := []exporter.ReanimatorPCIe{
|
||||
{Slot: "0000:6d:00.0", DeviceClass: "MassStorageController", Model: "MegaRAID", NUMANode: intp(0)},
|
||||
{Slot: "0000:00:17.0", DeviceClass: "SATAController", Model: "AHCI", NUMANode: intp(0)},
|
||||
}
|
||||
doc := Build(snapshot, e, controllers...)
|
||||
|
||||
edges := map[string]string{}
|
||||
for _, edge := range doc.Edges {
|
||||
edges[edge.To] = edge.From
|
||||
}
|
||||
want := map[string]string{
|
||||
"memory:PROC 1 DIMM 10": "cpu:1",
|
||||
"raid:0000:6d:00.0": "cpu:1",
|
||||
"storage:252:1": "raid:0000:6d:00.0",
|
||||
"storage:252:2": "raid:0000:6d:00.0",
|
||||
"storage:252:3": "raid:0000:6d:00.0",
|
||||
}
|
||||
for to, from := range want {
|
||||
if edges[to] != from {
|
||||
t.Errorf("edge to %s: got from %q, want %q", to, edges[to], from)
|
||||
}
|
||||
}
|
||||
for _, n := range doc.Nodes {
|
||||
if n.Kind == "gpu" {
|
||||
t.Errorf("BMC VGA rendered as a GPU: %+v", n)
|
||||
}
|
||||
if n.BDF == "0000:00:17.0" {
|
||||
t.Errorf("diskless onboard controller must stay hidden: %+v", n)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user