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

Possible bug: getCatalogResourceActions returns array with identical elements

$
0
0

This week I tried execute actions on vCAC items from vCO and ran into a possible bug in the plugin. I am using the the vCAC6.01 plugin version.

 

In this particular case I was trying to reboot a physical machine deployed by vCAC. In vCAC you can do this in "Items" -> item dropdown -> restart. I was trying to build this into the workflow that is called at the MachineProvisioned state change.

 

Luckily there is the "Request a resource action" workflow which comes with the plugin. That should do the job. Right?

wrong: It doesn't matter which action I select for the resource, it always tries to execute the first action listed. So for my physical machine it always requests "change lease" and for a virtual machine it always request "Open VMRC console".

The workflow itself looks fine and so do the actions used. So I dug a little deeper and used the "getAvailableResourceActions" action to see what it returns. Well, it returns an array which has as many elements as there are actions on the object but every element contains the same object.

 

I checked what is returned if I run vCACCAFEEntitiesFinder.getCatalogResourceActions in a scriptable action and the result is the same. See attached screenshot for proof.

 

tl;dr: The vCACCAFEEntitiesFinder.getCatalogResourceActions returns an array in which every element is identical so you can't actually use the resource actions from vCO.

 

Seems like a bug to me or am I missing something?


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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