Hello,
I'm running vCO 4.2.0 and I've upgrade the vCenter Plugin version from 4.2.0 to 5.0.2. I've changed my deployment workflow from using "cloneVM_Task()" to using "applyStorageDrsRecommendation_Task()" against a 5.0u1 environment. When I run the workflow the "Apply Storage DRS recommendations" task executes, shown via vSphere client, and the progress of the task is monitored by the action "vim3WaitTaskEnd". This is the same action used via the 4.2.0 plugin version. However, the issue is upon completion of the "Apply Storage DRS recommendations" task, when "vim3WaitTaskEnd" attempts to return the VM it fails with the following error:
Unable to convert object, no sdk type defined for class : com.vmware.vim.vi4.ApplyStorageRecommendationResult@8b49a3bc
Here is an excerpt of the code for applyStorageDrsRecommendation_Task():
var storageResMgr = att_storagePod.vimHost.storageResourceManager; var placementResult = storageResMgr.recommendDatastores(att_storagePlacementSpec);
var recKey = [storageRecommendations[0].key]; attTask = storageResMgr.applyStorageDrsRecommendation_Task(recKey); |
The "vim3WaitTaskEnd" is the action located in:
com.vmware.library.vc.basic - with a version of 0.3.0
How can I monitor the task to completion and successfully return the new cloned VM object?
Thank you for your help!