sidero icon indicating copy to clipboard operation
sidero copied to clipboard

Add baseboard info to server resource

Open miragecentury opened this issue 2 years ago • 3 comments

Hi, I have a Dell C6100 ( 2U 4 Nodes ) and 2 of my node have the same serial number but not the same board Number. Sidero is not able to distinguish both.

How can i force the distinguish ?

  system:
    family: Server
    manufacturer: Dell
    productName: C6100
    serialNumber: C91S85J
    skuNumber: Unknown
    version: A00

miragecentury avatar Aug 22 '22 20:08 miragecentury

Thx for the report @miragecentury. We can see if there's a way to grab the board number with the smbios library. Will create an issue for that. In the meantime, one thing you could do is set labels on the server resources and use label selectors on your server classes.

rsmitty avatar Aug 22 '22 23:08 rsmitty

Actually, I'm going to update this issue. It's something that needs to be done on the sidero side, not in our library.

This is already implemented in the go-smbios library here: https://github.com/siderolabs/go-smbios/blob/master/smbios/baseboard_information.go. So we just need to add this info into the server resource it seems.

rsmitty avatar Aug 22 '22 23:08 rsmitty

I find that also my system uuid is the same due to the fact that is generate base on the s/n. ( that why sidero don t create the second server object, my issue is not only for serverclass matching ). But i find this Blog with a solution.

miragecentury avatar Aug 23 '22 04:08 miragecentury