metal-stack / go-hal

server hardware abstraction, tries to lower the burden of supporting different server vendors
GNU Affero General Public License v3.0
13 stars 3 forks source link

Refactor bootorder #55

Open majst01 opened 1 year ago

majst01 commented 1 year ago

Always use redfish api to set the bootorder on supermicro, get rid of hand made authentication for these calls also.

TODO:

@robertvolkmann this is the library which is responsible to manipulate the server OutOfBand and set the bootorder properly which does not work always for n1-medium machines.

This PR tries to change the way it is actually done from ipmi -> redfish. Unsure if all older BMC Versions especially on c1-xlarge machines at fi-ts.

majst01 commented 1 year ago

On n1-medium machine we always get this error:


{"level":"error","ts":1693740463.7540627,"caller":"ipmi/ipmitool.go:199","msg":"run ipmitool","args":["-I","lanplus","-H","10.1.1.22","-p","623","-U","metal","-E","lan","print"],"output":"Set in Progress         : Set in Progress\n

Recommendation is:

Bei der LAN-Konfiguration wird Set in Progress bei älteren ipmitool Versionen nicht automatisch auf Set Complete gesetzt. Dies kann manuell über ein raw-Kommando gemacht werden (siehe dazu auch http://www.mail-archive.com/ipmitool-devel@lists.sourceforge.net/msg00095.html)

[root@sr2500 ~]# ipmitool lan print 1
Set in Progress         : Set In Progress
[...]
[root@sr2500 ~]# ipmitool raw 0x0c 1 1 0 0