Question about Redfish code update with multiple firmware

Tony Lee (李文富) Tony.Lee at quantatw.com
Wed Dec 23 20:54:16 AEDT 2020


Hi Andrew,

I did the Redfish code update with multiple firmware at my environment.
Steps as follows:

There are two different image A and B. 

curl -k -H "X-Auth-Token: $bmc_token" -H "Content-Type: application/octet-stream" -X POST -T <imageA> https://${bmc}/redfish/v1/UpdateService

curl -k -H "X-Auth-Token: $bmc_token" -X GET https://${bmc}/redfish/v1/UpdateService/FirmwareInventory
{
  "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory",
  "@odata.type": "#SoftwareInventoryCollection.SoftwareInventoryCollection",
  "Members": [
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/5805e80e"
    }
  ],
  "Members at odata.count": 1,
  "Name": "Software Inventory Collection"
}

curl -k -H "X-Auth-Token: $bmc_token" -H "Content-Type: application/octet-stream" -X POST -T <imageB> https://${bmc}/redfish/v1/UpdateService

curl -k -H "X-Auth-Token: $bmc_token" X GET https://${bmc}/redfish/v1/UpdateService/FirmwareInventory
{
  "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory",
  "@odata.type": "#SoftwareInventoryCollection.SoftwareInventoryCollection",
  "Members": [
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/dce3bf32"
    }
  ],
  "Members at odata.count": 1,
  "Name": "Software Inventory Collection"
}

You can tell that first image will be replaced by the second one.
Does it match the situation described in the "Delete an Image" section of firmware-update-over-redfish.md?
What is the expected behavior when doing Redfish code update with multiple firmware?

Thanks
Best Regards,
Tony



More information about the openbmc mailing list