Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Orchestrator PowerCLI convertToVcoObj action not working for Datastores

$
0
0

I'm running a workflow that uses PowerCLI to return a datastore from a vCenter server host.  The datastore object is returned as a PowershellPSRemoteObject from the action I wrote that runs the PowerCLI.  I then pass that result to the convertToVcoObj action which is then supposed to convert it to a VC:Datastore object.  I get the following error from the workflow when I do this:

 

Can't convert. No converter definition was found for type:VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.VmfsDatastoreImpl (Dynamic Script Module name : getConverter#40)

 

I did some digging, and found out that the version of PowerCLI I have, VMware vSphere PowerCLI 5.5 Release 2 Patch 1 build 1931983, returns the following type of object from Get-Datastore:

 

VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.VmfsDatastoreImpl

 

I searched the Converterdefinitions.csv file included the resource area of Orchestrator and found the following two lines:

 

VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl,VC:Datastore,Uid,

VC:Datastore,VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl,id,Get-Datastore -Name {Name} -Server {Server}

 

These refer to a different (perhaps old or deprecated) type:

 

VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl,VC:Datastore 

 

The difference being VmfsDatastoreImpl  instead of just DatastoreImpl.

 

I was able to work around the issue by creating a copy of the .csv file, replacing "DatastoreImpl" with "VmfsDatastoreImpl", then re-uploading the new file as a new resource called ConverterDefintions_new.csv.

 

I now reference this new .csv in my workflows and I can now convert datastores! 

 

Does anybody know why this is?  Is this a bug, oversight, or PowerCLI version issue?

 

Hope this helps someone!  Thanks!


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>