My Oracle Support Banner

Oracle VM REST API PUT method of StorageArray REST API error: "OBJECT_OUT_OF_DATE" (Doc ID 2498632.1)

Last updated on MAY 26, 2020

Applies to:

Oracle VM - Version 3.4.5 and later
Linux x86-64

Symptoms

When trying to modify the properties of a iscsi StorageArray (accessHosts) using the PUT method of StorageArray REST API, the job is created but it
fails with "OBJECT_OUT_OF_DATE" error:

 
# curl -X PUT -k -H 'Accept: application/json' -H 'Content-Type: application/json' -u admin -i 'https://localhost:7002/ovm/core/wsapi/rest/StorageArray/<objectID>' --data "id": {
"type": "com.oracle.ovm.mgr.ws.model.StorageArray",
"value": "<objectID>",
"uri": "https://localhost:7002/ovm/core/wsapi/rest/StorageArray/<objectID>",
"name": "NetApp"
}, "description" : "Generic iSCSI Storage." }

 

Job response:

{
"id": {
"type": "com.oracle.ovm.mgr.ws.model.Job",
"value": "1545028453932",
"uri": "https://localhost:7002/ovm/core/wsapi/rest/Job/1545028453932",
"name": "Modify Storage Array: NetApp"
},
"name": "Modify Storage Array: NetApp",
"description": "Modify Storage Array: NetApp",
"locked": false,
"readOnly": false,
"generation": 12,
"userData": [],
"resourceGroupIds": [],
"resultId": null,
"jobRunState": "FAILURE",
"jobSummaryState": "FAILURE",
"done": true,
"summaryDone": true,
"jobGroup": false,
"error": {
"message": "GEN_000011:Object NetApp:<objectID> of type StorageArray could not be modified as it has changed since it was fetched.",
"type": "OBJECT_OUT_OF_DATE"
},
"progressMessage": null,
"latestSummaryProgressMessage": "",
"extraInfo": null,
"parentJobId": null,
"childJobIds": [],
"user": "admin",
"abortedByUser": null,
"startTime": -1,
"endTime": 1545028454242
}

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.