-
Notifications
You must be signed in to change notification settings - Fork 83
0XV2 serial numbers in ereports tragically end with \0\0\0 #10437
Copy link
Copy link
Labels
DebuggingFor when you want better data in debugging an issue (log messages, post mortem debugging, and more)For when you want better data in debugging an issue (log messages, post mortem debugging, and more)developmentBugs, paper cuts, feature requests, or other thoughts on making omicron development betterBugs, paper cuts, feature requests, or other thoughts on making omicron development betterfault-managementEverything related to the fault-management initiative (RFD480 and others)Everything related to the fault-management initiative (RFD480 and others)
Milestone
Metadata
Metadata
Assignees
Labels
DebuggingFor when you want better data in debugging an issue (log messages, post mortem debugging, and more)For when you want better data in debugging an issue (log messages, post mortem debugging, and more)developmentBugs, paper cuts, feature requests, or other thoughts on making omicron development betterBugs, paper cuts, feature requests, or other thoughts on making omicron development betterfault-managementEverything related to the fault-management initiative (RFD480 and others)Everything related to the fault-management initiative (RFD480 and others)
Type
Fields
Give feedbackNo fields configured for Bug.
The
--serialflag toomdb db ereport listworks fine with V1 serials, which use the full length of theserial_numberfield in theereporttable:However, if fails to find matches for V2 serial numbers:
Examining a record in the DB console, we see the serial is NUL padded to match the length of V1 serials:
I don't think we have a way of passing in a NUL-padded string from a shell, even with shenanigans like this:
We should probably check if the provided serials are V2 and NUL-pad them to match the expected format.