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

Updating guest customization with vCD API

$
0
0

I am trying to feed a workflow vApp input from vCloud Director, then iterate through VMs in my input vApp to update their guest customization settings. From what I have come across on this forum, it should be fairly simple but some reason I am having trouble when loop passes through first VM and attempts to customize next VM.

2015-04-10 09_37_58-VMware vCenter Orchestrator.png

 

Here is what I have in the failed action:

vm.updateInternalState();

var guestCustomizationSection = vm.getGuestCustomizationSection()

guestCustomizationSection.enabled = true;

guestCustomizationSection.adminPasswordAuto = true;

guestCustomizationSection.adminPasswordEnabled = true;

System.log("Started Guest Customization for " + vm.name);

return vm.updateSection(guestCustomizationSection);

 

And the error is The entity [network name redacted] is busy completing an operation.; majorErrorCode=400; minorErrorCode=BUSY_ENTITY; vendorSpecificErrorCode=null; (Dynamic Script Module name : updateGuestsCustomization#6).

 

Any clue as to why this is happening? My expectation is that Wait for a Task should be taking care of previous VM task completion, but I feel like that's not entirely true.

 

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>