Post by rmj on Jul 15, 2022 1:40:32 GMT
Hi,
Virtual media redirection status is set to "Stopped - device ejected" after a successful OS installation. Inserted status set to false. Cannot insert or eject the virtual median, when the virtual media status is in this state.
1) Virtual media instance CD1 status after OS installation,
/redfish/v1/Managers/Self/VirtualMedia/CD1
{
"@odata.context": "/redfish/v1/$metadata#VirtualMedia.VirtualMedia",
"@odata.etag": "\"1657844131\"",
"@odata.id": "/redfish/v1/Managers/Self/VirtualMedia/CD1",
"@odata.type": "#VirtualMedia.v1_3_2.VirtualMedia",
"Actions": {
"#VirtualMedia.EjectMedia": {
"@redfish.ActionInfo": "/redfish/v1/Managers/Self/VirtualMedia/CD1/EjectMediaActionInfo",
"target": "/redfish/v1/Managers/Self/VirtualMedia/CD1/Actions/VirtualMedia.EjectMedia"
},
"#VirtualMedia.InsertMedia": {
"@redfish.ActionInfo": "/redfish/v1/Managers/Self/VirtualMedia/CD1/InsertMediaActionInfo",
"target": "/redfish/v1/Managers/Self/VirtualMedia/CD1/Actions/VirtualMedia.InsertMedia"
}
},
"ConnectedVia": "NotConnected",
"Description": "Virtual Media Instance redirected to host via this Manager",
"Id": "CD1",
"Image": "//x.x.x.x/data/40000/ubuntu22.04.iso",
"ImageName": "ubuntu22.04.iso",
"Inserted": false,
"MediaTypes": [
"CD"
],
"Name": "CD1",
"Oem": {
"Ami": {
"@odata.type": "#AMIVirtualMedia.v1_0_0.AMIVirtualMedia",
"BoostMode": false,
"RedirectionStatus": "Stopped - Device Ejected"
}
},
"TransferMethod": "Stream",
"TransferProtocolType": "NFS",
"UserName": "",
"WriteProtected": true
}
2) Try to insert the same image ISO again,
POST to /redfish/v1/Managers/Self/VirtualMedia/CD1/Actions/VirtualMedia.InsertMedia
Payload:
{
"Image": "//x.x.x.x/40000/ubuntu22.04.iso",
"TransferProtocolType": "NFS",
"Inserted": true
}
Response:
{
"@odata.context": "/redfish/v1/$metadata#Task.Task",
"@odata.id": "/redfish/v1/TaskService/Tasks/1",
"@odata.type": "#Task.v1_4_2.Task",
"Description": "Task for InsertMedia Action",
"Id": "1",
"Name": "InsertMedia Action",
"TaskState": "New"
}
{
"@odata.context": "/redfish/v1/$metadata#Task.Task",
"@odata.etag": "\"1657845802\"",
"@odata.id": "/redfish/v1/TaskService/Tasks/1",
"@odata.type": "#Task.v1_4_2.Task",
"Description": "Task for InsertMedia Action",
"EndTime": "2022-07-15T00:43:23+00:00",
"Id": "1",
"Messages": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "Error code: -1. Image Not available in the given path, hence InsertMedia action is unsuccessful ",
"MessageArgs": [
"Error code: -1. Image Not available in the given path"
],
"MessageId": "SyncAgent.1.0.InsertMediaError",
"RelatedProperties": [
"Error code: -1. Image Not available in the given path"
],
"Resolution": "Please make sure all the required features are enabled, provided data are valid and try again.",
"Severity": "Critical"
}
],
"Name": "InsertMedia Action",
"StartTime": "2022-07-15T00:43:22+00:00",
"TaskState": "Exception",
"TaskStatus": "OK"
}
Note: If I try to insert a different image, that task also fails.
3) Try to eject virtual media,
POST: /redfish/v1/Managers/Self/VirtualMedia/CD1/Actions/VirtualMedia.EjectMedia
Payload: {}
Response:
{
"error": {
"@message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "No Redirection is going on for the given media",
"MessageId": "Ami.1.0.ActionNotExist",
"Resolution": "Execute InsertMedia action for this VMedia Instance.",
"Severity": "Warning"
}
],
"code": "Ami.1.0.ActionNotExist",
"message": "No Redirection is going on for the given media"
}
}
I tried to PATCH and set the "Image" to null for instance CD1, but the "inserted" and "image" fields of the virtual media instance is read-only in the BMC we are using. Reference: sysmgt.lenovofiles.com/help/index.jsp?topic=%2Ftsm%2Fpost_enable_the_remote_media.html
What is the best option to eject or insert a virtual media CD after successful OS installation?
Please advice.
Thanks,
Virtual media redirection status is set to "Stopped - device ejected" after a successful OS installation. Inserted status set to false. Cannot insert or eject the virtual median, when the virtual media status is in this state.
1) Virtual media instance CD1 status after OS installation,
/redfish/v1/Managers/Self/VirtualMedia/CD1
{
"@odata.context": "/redfish/v1/$metadata#VirtualMedia.VirtualMedia",
"@odata.etag": "\"1657844131\"",
"@odata.id": "/redfish/v1/Managers/Self/VirtualMedia/CD1",
"@odata.type": "#VirtualMedia.v1_3_2.VirtualMedia",
"Actions": {
"#VirtualMedia.EjectMedia": {
"@redfish.ActionInfo": "/redfish/v1/Managers/Self/VirtualMedia/CD1/EjectMediaActionInfo",
"target": "/redfish/v1/Managers/Self/VirtualMedia/CD1/Actions/VirtualMedia.EjectMedia"
},
"#VirtualMedia.InsertMedia": {
"@redfish.ActionInfo": "/redfish/v1/Managers/Self/VirtualMedia/CD1/InsertMediaActionInfo",
"target": "/redfish/v1/Managers/Self/VirtualMedia/CD1/Actions/VirtualMedia.InsertMedia"
}
},
"ConnectedVia": "NotConnected",
"Description": "Virtual Media Instance redirected to host via this Manager",
"Id": "CD1",
"Image": "//x.x.x.x/data/40000/ubuntu22.04.iso",
"ImageName": "ubuntu22.04.iso",
"Inserted": false,
"MediaTypes": [
"CD"
],
"Name": "CD1",
"Oem": {
"Ami": {
"@odata.type": "#AMIVirtualMedia.v1_0_0.AMIVirtualMedia",
"BoostMode": false,
"RedirectionStatus": "Stopped - Device Ejected"
}
},
"TransferMethod": "Stream",
"TransferProtocolType": "NFS",
"UserName": "",
"WriteProtected": true
}
2) Try to insert the same image ISO again,
POST to /redfish/v1/Managers/Self/VirtualMedia/CD1/Actions/VirtualMedia.InsertMedia
Payload:
{
"Image": "//x.x.x.x/40000/ubuntu22.04.iso",
"TransferProtocolType": "NFS",
"Inserted": true
}
Response:
{
"@odata.context": "/redfish/v1/$metadata#Task.Task",
"@odata.id": "/redfish/v1/TaskService/Tasks/1",
"@odata.type": "#Task.v1_4_2.Task",
"Description": "Task for InsertMedia Action",
"Id": "1",
"Name": "InsertMedia Action",
"TaskState": "New"
}
{
"@odata.context": "/redfish/v1/$metadata#Task.Task",
"@odata.etag": "\"1657845802\"",
"@odata.id": "/redfish/v1/TaskService/Tasks/1",
"@odata.type": "#Task.v1_4_2.Task",
"Description": "Task for InsertMedia Action",
"EndTime": "2022-07-15T00:43:23+00:00",
"Id": "1",
"Messages": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "Error code: -1. Image Not available in the given path, hence InsertMedia action is unsuccessful ",
"MessageArgs": [
"Error code: -1. Image Not available in the given path"
],
"MessageId": "SyncAgent.1.0.InsertMediaError",
"RelatedProperties": [
"Error code: -1. Image Not available in the given path"
],
"Resolution": "Please make sure all the required features are enabled, provided data are valid and try again.",
"Severity": "Critical"
}
],
"Name": "InsertMedia Action",
"StartTime": "2022-07-15T00:43:22+00:00",
"TaskState": "Exception",
"TaskStatus": "OK"
}
Note: If I try to insert a different image, that task also fails.
3) Try to eject virtual media,
POST: /redfish/v1/Managers/Self/VirtualMedia/CD1/Actions/VirtualMedia.EjectMedia
Payload: {}
Response:
{
"error": {
"@message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "No Redirection is going on for the given media",
"MessageId": "Ami.1.0.ActionNotExist",
"Resolution": "Execute InsertMedia action for this VMedia Instance.",
"Severity": "Warning"
}
],
"code": "Ami.1.0.ActionNotExist",
"message": "No Redirection is going on for the given media"
}
}
I tried to PATCH and set the "Image" to null for instance CD1, but the "inserted" and "image" fields of the virtual media instance is read-only in the BMC we are using. Reference: sysmgt.lenovofiles.com/help/index.jsp?topic=%2Ftsm%2Fpost_enable_the_remote_media.html
What is the best option to eject or insert a virtual media CD after successful OS installation?
Please advice.
Thanks,