<div dir="ltr">Hi Team,<div><br></div><div>I am trying to get the running/functional firmware version from BMC after uploading an image which errors out.</div><div><br></div><div><b>Platform:</b> Upstream
tiogapass (QEMU)</div><div><b>Commit:</b> Latest master</div><div><br></div><div><b>Repro Steps:</b></div><div>1. Upload an image:</div><div> curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/octet-stream" -X POST -T obmc-phosphor-image-tiogapass.static.mtd.tar https://${bmc}/redfish/v1/UpdateService</div><div><br></div><div>2. Get the firmware version:</div><div> curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/octet-stream" -X GET https://${bmc}/redfish/v1/Managers/bmc</div><div><b>Error:</b><br></div><div><i>{<br> "@<a href="http://odata.id">odata.id</a>": "/redfish/v1/Managers/bmc",<br> "@odata.type": "#Manager.v1_9_0.Manager",<br> "Actions": {<br> "#Manager.Reset": {<br> "@Redfish.ActionInfo": "/redfish/v1/Managers/bmc/ResetActionInfo",<br> "target": "/redfish/v1/Managers/bmc/Actions/Manager.Reset"<br> },<br> ...... skip lines .....<br> <font color="#ff0000">"error": {<br> "@Message.ExtendedInfo": [<br> {<br> "@odata.type": "#Message.v1_1_1.Message",<br> "Message": "The request failed due to an internal service error. The service is still operational.",<br> "MessageArgs": [],<br> "MessageId": "Base.1.8.1.InternalError",<br> "MessageSeverity": "Critical",<br> "Resolution": "Resubmit the request. If the problem persists, consider resetting the service."<br> }<br> ],<br> "code": "Base.1.8.1.InternalError",<br> "message": "The request failed due to an internal service error. The service is still operational."<br> }</font><br>}</i><br></div><div><br></div><div><b>Observations:</b></div><div>1. On uploading an image, the interface <span style="font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;font-variant-ligatures:none;white-space:pre-wrap"><b style=""><font color="#ff0000">/xyz/openbmc_project/software/functional </font></b></span>is getting removed<font color="#1d1c1d" face="Monaco, Menlo, Consolas, Courier New, monospace"><span style="font-size:12px;font-variant-ligatures:none;white-space:pre-wrap">.</span></font></div><div><b>Before upload:</b><br><i>root@tiogapass:~# busctl tree xyz.openbmc_project.ObjectMapper<br>`-/xyz<br> `-/xyz/openbmc_project<br> |-/xyz/openbmc_project/object_mapper<br> `-/xyz/openbmc_project/software<br> |-/xyz/openbmc_project/software/7b8b7a8b<br> | `-/xyz/openbmc_project/software/7b8b7a8b/software_version<br> |-/xyz/openbmc_project/software/active<br> |<font color="#ff0000">-/xyz/openbmc_project/software/functional</font><br> `-/xyz/openbmc_project/software/updateable</i></div><div><br><b>After upload:</b></div><div><i>root@tiogapass:/tmp/images# busctl tree xyz.openbmc_project.ObjectMapper<br>`-/xyz<br> `-/xyz/openbmc_project<br> |-/xyz/openbmc_project/object_mapper<br> `-/xyz/openbmc_project/software<br> |-/xyz/openbmc_project/software/2327e636<br> | `-/xyz/openbmc_project/software/2327e636/software_version<br> |-/xyz/openbmc_project/software/active<br> `-/xyz/openbmc_project/software/updateable</i><br></div><div><br></div><div>2. Respective failure is happening at:</div><div> <a href="https://github.com/openbmc/bmcweb/blob/master/redfish-core/include/utils/fw_utils.hpp#L46">https://github.com/openbmc/bmcweb/blob/master/redfish-core/include/utils/fw_utils.hpp#L46</a><font color="#1d1c1d" face="Monaco, Menlo, Consolas, Courier New, monospace"><span style="font-size:12px;font-variant-ligatures:none;white-space:pre-wrap"><br></span></font></div><div><br></div><div>Please share some pointers where it might be happening either in phosphor-software-manager or bmcweb.</div><div><br></div><div>Thanks,</div><div>Sharad</div><div><font color="#1d1c1d" face="Monaco, Menlo, Consolas, Courier New, monospace"><span style="font-size:12px;font-variant-ligatures:none;white-space:pre-wrap"><br></span></font></div><div><font color="#1d1c1d" face="Monaco, Menlo, Consolas, Courier New, monospace"><span style="font-size:12px;font-variant-ligatures:none;white-space:pre-wrap"><br></span></font></div><div><font color="#1d1c1d" face="Monaco, Menlo, Consolas, Courier New, monospace"><span style="font-size:12px;font-variant-ligatures:none;white-space:pre-wrap"><br></span></font></div><div><font color="#1d1c1d" face="Monaco, Menlo, Consolas, Courier New, monospace"><span style="font-size:12px;font-variant-ligatures:none;white-space:pre-wrap"><br></span></font></div><div><br></div></div>