-
Notifications
You must be signed in to change notification settings - Fork 32
Description
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:
phosphor-bmc-code-mgmtimage_manager.cppbmcwebupdate_service.hpp
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?