Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

vRA 8.1 - Duplicate vm names.

$
0
0

Hi,

 

I'm having issues with custom vm naming in vRA 8.1 when running simultaneous deployments.

 

I'm using LockingSystem.lockAndWait(lockID ,lockOwner) within my custom naming workflow to ensure no parallel runs.  Part of script in the workflow pulls a list of vm's from vCentre with a set prefix at which point a useable vm name is determined populating the resourceNames array.

 

The workflow is subscribed to the compute allocation event topic and blocking is enabled, but upon execution of a second deployment, (executed within a few seconds of the first),  vm names are being returned that were reserved by the first deployment.  It's difficult to determine exactly whats going on.  The events page in Extensibility is slow and clunky, but given blocking is enabled, and a single deployment works without a problem, it feels like the event subscription is completing before the vm's are being created in vCentre.


Does anyone have any experience of this or can offer any assistance in figuring out whats happening, or more likely, what I'm doing wrong!

 

Cheers,


Viewing all articles
Browse latest Browse all 9859

Trending Articles



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