Skip to content

bmcweb: Fix Storage URI Endpoint Failure#62

Open
ankitaprasad2206 wants to merge 1 commit intointeg_sp8from
Fix-Storage-URI-Endpoint-Issue
Open

bmcweb: Fix Storage URI Endpoint Failure#62
ankitaprasad2206 wants to merge 1 commit intointeg_sp8from
Fix-Storage-URI-Endpoint-Issue

Conversation

@ankitaprasad2206
Copy link
Copy Markdown
Collaborator

During BMC Upstream sync from 2.16 to 2.18, lead to failure of logic to read Type property for Drive URI. Moved the code to be similar as before where Type property is read directly from the string literal exposed on dbus by iodevices-inventory.

Tested: tested On congo UI. Storage info is populated without any internal error.

'''
{
"@odata.id": "/redfish/v1/Systems/system/Storage/1/Drives/Drive0", "@odata.type": "#Drive.v1_7_0.Drive",
"CapacityBytes": 1000204886016,
"Id": "Drive0",
"Links": {
"Chassis": {
"@odata.id": "/redfish/v1/Chassis/HPM"
}
},
"Manufacturer": "Samsung SSD 990 EVO 1TB ",
"MediaType": "NVMe",
"Model": "Samsung SSD 990 EVO 1TB ",
"Name": "Drive0",
"SerialNumber": "S7M3NS0Y215061W ",
"Status": {
"State": "Enabled"
}
}
'''

During BMC Upstream sync from 2.16 to 2.18, lead to failure of
logic to read Type property for Drive URI. Moved the code to be
similar as before where Type property is read directly from the
string literal exposed on dbus by iodevices-inventory.

Tested: tested On congo UI. Storage info is populated without any internal error.

'''
{
"@odata.id": "/redfish/v1/Systems/system/Storage/1/Drives/Drive0",
"@odata.type": "#Drive.v1_7_0.Drive",
"CapacityBytes": 1000204886016,
"Id": "Drive0",
"Links": {
"Chassis": {
"@odata.id": "/redfish/v1/Chassis/HPM"
}
},
"Manufacturer": "Samsung SSD 990 EVO 1TB ",
"MediaType": "NVMe",
"Model": "Samsung SSD 990 EVO 1TB ",
"Name": "Drive0",
"SerialNumber": "S7M3NS0Y215061W ",
"Status": {
"State": "Enabled"
}
}
'''

Signed-off-by: ankprasa <ankprasa@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants