sidero
sidero copied to clipboard
Add baseboard info to server resource
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
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.
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.
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.