diff --git a/confluent_server/confluent/firmwaremanager.py b/confluent_server/confluent/firmwaremanager.py index 6f819061..a1168935 100644 --- a/confluent_server/confluent/firmwaremanager.py +++ b/confluent_server/confluent/firmwaremanager.py @@ -43,7 +43,7 @@ def execupdate(handler, filename, updateobj, type, owner, node): 'detail': errstr}) return if type == 'ffdc' and os.path.isdir(filename): - filename += '/' + node + '.svcdata' + filename += '/' + node try: if type == 'firmware': completion = handler(filename, progress=updateobj.handle_progress, diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index e6c90faf..e25206c2 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -584,9 +584,13 @@ class IpmiHandler(object): self.output.put(msg.CreatedResource( 'nodes/{0}/media/uploads/{1}'.format(self.node, u.name))) + def get_diags(self, savefile, progress): + return self.ipmicmd.get_diagnostic_data( + savefile, progress=progress, autosuffix=True) + def handle_servicedata_fetch(self): u = firmwaremanager.Updater( - self.node, self.ipmicmd.get_diagnostic_data, + self.node, self.get_diags, self.inputdata.nodefile(self.node), self.tenant, type='ffdc', owner=self.current_user) self.output.put(msg.CreatedResource( diff --git a/confluent_server/confluent/plugins/hardwaremanagement/redfish.py b/confluent_server/confluent/plugins/hardwaremanagement/redfish.py index f9b609ec..cb62de95 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/redfish.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/redfish.py @@ -462,9 +462,13 @@ class IpmiHandler(object): self.output.put(msg.CreatedResource( 'nodes/{0}/media/uploads/{1}'.format(self.node, u.name))) + def get_diags(self, savefile, progress): + return self.ipmicmd.get_diagnostic_data( + savefile, progress=progress, autosuffix=True) + def handle_servicedata_fetch(self): u = firmwaremanager.Updater( - self.node, self.ipmicmd.get_diagnostic_data, + self.node, self.get_diags, self.inputdata.nodefile(self.node), self.tenant, type='ffdc', owner=self.current_user) self.output.put(msg.CreatedResource(