From e21fdbf1f367c22efa7eeab232f1ccfaef101b2e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 16 May 2018 16:53:37 -0400 Subject: [PATCH] Fix SMM updates on newer SMM firmware versions Must explicitly declare the type of firmware now, accomodate that with the request. Older SMMs will return error that we will ignore. Change-Id: I8911da94ccbfc5447c2d4902cbbcbd48c87605cf --- pyghmi/ipmi/oem/lenovo/nextscale.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index 9314d649..a795a8e3 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -400,6 +400,9 @@ class SMMClient(object): break progress({'phase': 'upload', 'progress': 0.0}) url = self.wc # this is just to get self.st1 initted + self.wc.request('POST', '/data', 'set=fwType:10') # SMM firmware + rsp = self.wc.getresponse() + rsp.read() url = '/fwupload/fwupload.esp?ST1={0}'.format(self.st1) self.wc.upload(url, filename, data, formname='fileUpload', otherfields={'preConfig': 'on'})