Error in getting running/functional firmware version.
sharad yadav
sharad.openbmc at gmail.com
Tue Feb 2 02:32:04 AEDT 2021
Hi Team,
I am trying to get the running/functional firmware version from BMC after
uploading an image which errors out.
*Platform:* Upstream tiogapass (QEMU)
*Commit:* Latest master
*Repro Steps:*
1. Upload an image:
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
2. Get the firmware version:
curl -k -H "X-Auth-Token: $token" -H "Content-Type:
application/octet-stream" -X GET https://${bmc}/redfish/v1/Managers/bmc
*Error:*
*{ "@odata.id <http://odata.id>": "/redfish/v1/Managers/bmc",
"@odata.type": "#Manager.v1_9_0.Manager", "Actions": {
"#Manager.Reset": { "@Redfish.ActionInfo":
"/redfish/v1/Managers/bmc/ResetActionInfo", "target":
"/redfish/v1/Managers/bmc/Actions/Manager.Reset" }, ...... skip lines
..... "error": { "@Message.ExtendedInfo": [ {
"@odata.type": "#Message.v1_1_1.Message", "Message": "The request
failed due to an internal service error. The service is still
operational.", "MessageArgs": [], "MessageId":
"Base.1.8.1.InternalError", "MessageSeverity": "Critical",
"Resolution": "Resubmit the request. If the problem persists, consider
resetting the service." } ], "code":
"Base.1.8.1.InternalError", "message": "The request failed due to an
internal service error. The service is still operational." }}*
*Observations:*
1. On uploading an image, the interface
*/xyz/openbmc_project/software/functional
*is getting removed.
*Before upload:*
*root at tiogapass:~# busctl tree xyz.openbmc_project.ObjectMapper`-/xyz
`-/xyz/openbmc_project |-/xyz/openbmc_project/object_mapper
`-/xyz/openbmc_project/software
|-/xyz/openbmc_project/software/7b8b7a8b |
`-/xyz/openbmc_project/software/7b8b7a8b/software_version
|-/xyz/openbmc_project/software/active
|-/xyz/openbmc_project/software/functional
`-/xyz/openbmc_project/software/updateable*
*After upload:*
*root at tiogapass:/tmp/images# busctl tree
xyz.openbmc_project.ObjectMapper`-/xyz `-/xyz/openbmc_project
|-/xyz/openbmc_project/object_mapper `-/xyz/openbmc_project/software
|-/xyz/openbmc_project/software/2327e636 |
`-/xyz/openbmc_project/software/2327e636/software_version
|-/xyz/openbmc_project/software/active
`-/xyz/openbmc_project/software/updateable*
2. Respective failure is happening at:
https://github.com/openbmc/bmcweb/blob/master/redfish-core/include/utils/fw_utils.hpp#L46
Please share some pointers where it might be happening either in
phosphor-software-manager or bmcweb.
Thanks,
Sharad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20210201/cefb5137/attachment.htm>
More information about the openbmc
mailing list