Issue:
Redundant values returned by Redfish GET request from /redfish/v1/UpdateService/FirmwareInventory
Description:
The Redfish GET request from /redfish/v1/UpdateService/FirmwareInventory is returning redundant values. This issue seems to be related to the phosphor-bmc-code-mgmt functionality.
During a BMC firmware update, a new object is created that includes the xyz.openbmc_project.Software.Version interface. This interface plays a crucial role in listing all the firmware inventory using the Redfish GET request.
However, when performing a firmware update and calling the GET request, the result list includes the new BMC firmware object, even though it should not be part of the firmware inventory list since the image is not yet active.
Related Code:
This issue is not BMCWEB issue , seems to me that the the fix should be at the phosphor-bmc-code-mgmt.
Redfish output Example:
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory",
"@odata.type": "#SoftwareInventoryCollection.SoftwareInventoryCollection",
"Members": [
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/bd850aa9" (This is the running BMC)
},
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/e2960819" (The new BMC FW, not running )
}
],
"Members@odata.count": 2,
"Name": "Software Inventory Collection"
}
Questions:
- Is this issue already known?
- What are your suggestions for an acceptable fix?
Issue:
Redundant values returned by Redfish GET request from
/redfish/v1/UpdateService/FirmwareInventoryDescription:
The Redfish GET request from
/redfish/v1/UpdateService/FirmwareInventoryis returning redundant values. This issue seems to be related to thephosphor-bmc-code-mgmtfunctionality.During a BMC firmware update, a new object is created that includes the
xyz.openbmc_project.Software.Versioninterface. This interface plays a crucial role in listing all the firmware inventory using the Redfish GET request.However, when performing a firmware update and calling the GET request, the result list includes the new BMC firmware object, even though it should not be part of the firmware inventory list since the image is not yet active.
Related Code:
phosphor-bmc-code-mgmtimage_manager.cppbmcwebupdate_service.hppThis issue is not BMCWEB issue , seems to me that the the fix should be at the phosphor-bmc-code-mgmt.
Redfish output Example:
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory",
"@odata.type": "#SoftwareInventoryCollection.SoftwareInventoryCollection",
"Members": [
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/bd850aa9" (This is the running BMC)
},
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/e2960819" (The new BMC FW, not running )
}
],
"Members@odata.count": 2,
"Name": "Software Inventory Collection"
}
Questions: