Skip to content

Commit a7aa600

Browse files
MGMT-13946: Ignore Proliant Gen 11 serial (#524)
We have seen different hosts with the same motherboard serial on this type of hardware, so we should ignore it and fallback to other methods of generating the host UUID. Co-authored-by: Avishay Traeger <avishay@redhat.com>
1 parent d0c1b7d commit a7aa600

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/scanners/machine_uuid_scanner.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const (
2323
SerialUnspecifiedBaseBoardString = "unspecified base board serial number" // BF cards
2424
SerialUnspecifiedSystemString = "unspecified system serial number" // BF cards
2525
SerialNotSpecified = "not specified" // Linode
26+
SerialProliantGen11 = "PCA_number.ACC" // Proliant Gen 11
2627
ZeroesUUID = "00000000-0000-0000-0000-000000000000"
2728
KaloomUUID = "03000200-0400-0500-0006-000700080009" // All hosts of this type have the same UUID
2829
)
@@ -33,7 +34,7 @@ var (
3334

3435
var unknownSerialCases = []string{"", util.UNKNOWN, "none",
3536
SerialUnspecifiedBaseBoardString, SerialUnspecifiedSystemString,
36-
SerialDefaultString, SerialNotSpecified}
37+
SerialDefaultString, SerialNotSpecified, strings.ToLower(SerialProliantGen11)}
3738
var unknownUuidCases = []string{"", util.UNKNOWN, ZeroesUUID, KaloomUUID}
3839

3940
func disableGHWWarnings() {

‎src/scanners/machine_uuid_scanner_test.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ var _ = Describe("Machine uuid test", func() {
7272
uuid string
7373
}{
7474
{useCase: "kaloom", mbSerial: SerialDefaultString, uuid: KaloomUUID},
75+
{useCase: "proliantgen11", mbSerial: SerialProliantGen11, uuid: ZeroesUUID},
7576
{useCase: "zeroes", mbSerial: SerialDefaultString, uuid: ZeroesUUID},
7677
{useCase: "linode", mbSerial: SerialNotSpecified, uuid: "Not Settable"},
7778
}

0 commit comments

Comments
 (0)