|
Post by puwen on Aug 19, 2020 12:04:03 GMT
Hi all,
The problem I am currently experiencing is that the ISO download times out when the virtual media is inserted.
But there is no property to describe the error state in the VirtualMedia schema.
Can you share your design for this symptom?
Thanks.
|
|
|
Post by jautor on Aug 20, 2020 15:09:45 GMT
We need some more details. Are you attempting to use this function, or trying to implement it?
I assume you're performing the "Insert" action. Are you not getting an error message / failure as a result of the Action? The implementation should certainly provide an error if it times out during the process. But we don't have a standard Redfish Message to describe that.
|
|
|
Post by puwen on Aug 21, 2020 3:27:18 GMT
Hi Jeff,
I'm trying to verify the Virtual Media and a problem occurred (ISO download times out). Since there is no standard Redfish message, I came here to learn how to implement it in this situation.
Precondition: 1) Our Redfish Service only supports Upload TransferMthod. 2) The network connection/traffic between Redfish and HTTP Service is unstable.
Service Architecture: 1) User inserts VirtualMedia by posting data to "/redfish/v1/Managers/{ManagerId}/VirtualMedia/{VirtualMediaId}/Actions/VirtualMedia.InsertMedia"
{ "Image": "http://192.168.1.1/bootimage.iso", "Inserted": true } 2) The background process will download the ISO file from the remote HTTP service and save it to the internal storage. 3) After the download is complete, mount the ISO to the host system.
Questions: 1) How to indicate status when downloading ISO? If the ISO size is large, it will take a long time to download the ISO because we only supports Upload TransferMthod. My proposal is to use the "Inserted" property to indicate whether the virtual device is ready. In other words, { "ImageName": null, "Inserted": false} means that the ISO is being downloaded. 2) How to indicate the error status of download timeout? Due to the unstable connection between Redfish and HTTP Service, download timeout problems sometimes occur. But there is no standard Redfish Message to describe this, do you have any suggestions?
Thanks.
How to indicate status when downloading ISO
|
|
|
Post by mraineri on Aug 26, 2020 12:43:48 GMT
In your implementation, since it's downloading the entire ISO file remotely before mounting it, what I would expect to happen is a Task is produced as a result of the InsertMedia action. The client would then monitor the progress of the Task, and if the download of the ISO fails, it would see the Task end. When the Task ends in this case, the original operation response would contain an error message stating the download had failed.
Usually for error conditions like this, most implementations have their own vendor-defined message registry that contains a message definition.
|
|