DMTF/Redfish-Mockup-Server

Version of Redfish Transport returns None

tomasg2012 opened this issue · 1 comments

Call to redfishTransport on line 703 returns None on a specific condition involving paged payloads, appearing to miss a fallback condition and returning absolutely nothing, which normally always returns a tuple, causing an exception.

#DB5: Transport.ProcessRequest: url=https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog?$skip=50
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog?$skip=100
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog?$skip=150
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog?$skip=200
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog?$skip=250
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog?$skip=300
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog?$skip=350
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog?$skip=400
#REQUEST: Transport:SendRecv:    GET https://10.36.0.117/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog?$skip=450
... [[[Normally crashes here]]]
redfishMockupCreate: ERROR:readResourceMkdirCreateIndxFile: Error reading resource: link:{'@odata.id': '/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog'}

Patch on line 703 to allow progress past this pt and print this line, but requires updating the transport, see if this bug exists in the original codebase.

Wrong tool, migrating to Mockup-Creator