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

Refreshing VM CPU/Memory values in GUI as part of ASD action

$
0
0

I have a custom vRO worfklow publsihed as an ASD resource action that allows the user to resize their provisioned VM based on a set of preconfigured sizes, which the user can select from as part of the ASD request form. This is to replace the built in reconfigure option so that users can't select random sizes for their VMs, all catalog items are configured with predefined sizes as well.

 

The end result is that whatever the user selects corresponds to a set of CPU and RAM values e.g. Small = 2vCPU 2GB RAM, and these values are then used to change the vCPU and RAM values on the underlying vCenter VM, before the vCAC VM entity properties for CPU.Count and Memory.Size are updated using the line System.getModule ("com.vmware.library.vcac").addUpdatePropertyFromVirtualMachineEntity(host,virtualMachineEntity,"VirtualMachine.CPU.Count",cpuCount,propertyIsHidden,propertyIsRuntime,propertyIsEncrypted,doNotUpdate); for example for the CPU.

 

This works fine, the VM is reconfigured in vCenter and the CPU.Count and Memory.Size values are updated on the VM in vRA, but when you look at the VM under Items it's CPU and RAM boxes still display the old values. These are updated to reflect the new values when the inventory jobs in vRA next run but at this could be up to an hour later in my system.

 

I was wondering if there is a way to update these GUI items as part of my workflow, I can think of three possiblities:

  1. Add a force data collection workflow at the end (would be ok while I'm working in a small environment, but don't think this would scale to larger environments)
  2. Rework my workflow so that it uses the inbuilt reconfigure option to resize the VM based on the users selected value (this would probably work but I would have to redesign most of my worflow and test again)
  3. I've missed a property or attribute somewhere which controls the values displayed in the gui and these just need to be included in the workflow

 

Is anyone else providing a custom action to do something which affects the values displayed in the GUI , if so how do you currently do the update part or does anyone have alternative options which might require less effort to implement?

 

This is on vRA 6.2.1 with external vRO appliance running 6.0.1, screenshots showing the situation...

vRA GUI.JPGvRA VM properties.JPG


Viewing all articles
Browse latest Browse all 9859

Trending Articles