2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Fix XCC preconfig with SSDP change

The SSDP unfortunately changes
some structure, change XCC
preconfig to expect the SSDP structure.
This commit is contained in:
Jarrod Johnson 2022-01-05 12:10:34 -05:00
parent b90756d2a6
commit b3c0810574

View File

@ -105,16 +105,18 @@ class NodeHandler(immhandler.NodeHandler):
if ff not in ('dense-computing', [u'dense-computing']):
# skip preconfig for non-SD530 servers
return
currfirm = self.info.get('attributes', {}).get('firmware-image-info', [''])[0]
if not currfirm.startswith('TEI'):
currfirm = self.info.get('attributes', {}).get('firmware-image-info', [{}])[0]
if not currfirm.get('build', '').startswith('TEI'):
return
self.trieddefault = None # Reset state on a preconfig attempt
# attempt to enable SMM
#it's normal to get a 'not supported' (193) for systems without an SMM
# need to branch on 3.00+ firmware
currfirm = currfirm.split(':')
if len(currfirm) > 1:
currfirm = float(currfirm[1])
currfirm = currfirm.get('version', '0.0')
if currfirm:
currfirm = float(currfirm)
else:
currfirm = 0
disableipmi = False
if currfirm >= 3:
# IPMI is disabled and we need it, also we need to go to *some* password