iLO reports "Inserted": true in VirtualMedia object even if image URL is not valid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
proliantutils |
Fix Released
|
Undecided
|
kesper |
Bug Description
Description of problem:
When configuring virtual media via RedFish on HP e910 server, if the URL specified isn't valid or reachable, the BMC still reports "Inserted": true. It seems it always reports "Inserted": true if there is any URL set.
Version:
Various, I recently reproduced this on latest (as per 25 January 2022) BIOS 1.90 and latest iLO 2.55.
How reproducible:
Steps to Reproduce:
1. Attach a vMedia image using an incorrect URL, e.g.
$ curl -X POST https:/
{
"error": {
"code": "iLO.0.
"message": "See @Message.
"@Message.
{
}
]
}
}
2.Check configuration
$ curl -ksu USER:PASS https:/
{
"@odata.context": "/redfish/
"@odata.etag": "W/\"3E4155BE\"",
"@odata.id": "/redfish/
"@odata.type": "#VirtualMedia.
"Id": "2",
"Actions": {
"#VirtualMe
"target": "/redfish/
},
"#VirtualMe
"target": "/redfish/
}
},
"ConnectedVia": "URI",
"Description": "Virtual Removable Media",
"Image": "https:/
"ImageName": "file.iso",
"Inserted": true,
"MediaTypes": [
"CD",
"DVD"
],
"Name": "VirtualMedia",
"Oem": {
"Hpe": {
"
"
"Actions": {
"target": "/redfish/
},
"target": "/redfish/
}
},
"
}
},
"WriteProtected": true
}
Actual results:
Property "Inserted": true is set despite this URL not being reachable from the BMC.
Expected results:
The BMC should reject the URL as it is not reachable and/or valid.
Additional info:
When the wrong URL is specified, the vMedia device is not visible in the OS. It only appears when a valid image is specified. I think "Inserted": true should be in line with what is visible in the OS.
description: | updated |
Changed in proliantutils: | |
assignee: | nobody → kesper (paresh-h-sao) |
Fix proposed to branch: master /review. opendev. org/c/x/ proliantutils/ +/828817
Review: https:/