vRealize Automation reconfigure operation fails with error: WaitForTask ReconfigVM_Task Entity(<MachineName>) Invalid virtual machine configuration.
search cancel

vRealize Automation reconfigure operation fails with error: WaitForTask ReconfigVM_Task Entity(<MachineName>) Invalid virtual machine configuration.

book

Article ID: 424147

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • Reconfigure operation fails with error: WaitForTask ReconfigVM_Task Entity(<MachineName>) Invalid virtual machine configuration. A corresponding failure message is seen in the vsphere client
  • Any subsequent reconfigure attemtps fail with a request is already in progress message.

Environment

vRealize Automation 7.6

Cause

The error implies that the values we are passing for the reconfigure from vRealize Automation are not valid values.

vCenter UI will validate and restrict these values from being entered when reconfiguring directly in vCenter but there is no such restriction in vRealize Automation.

Resolution

To workaround the issue, remove the pending operation request in vRealize Automation IaaS database and then submit again the reconfigure request using known good values for CPU/RAM:
 
  1. Take a full backup of IaaS database.
  2. Connect to IaaS database using credentials having administrator privileges.
  3. Confirm there is a stuck request by running query:

    select * from StateOperationVirtualMachines where VirtualMachineId IN (select VirtualMachineID from VirtualMachine where VirtualMachineName = 'Affected-machine-name')
     
  4. Delete the record:

    delete from StateOperationVirtualMachines where VirtualMachineId IN (select VirtualMachineID from VirtualMachine where VirtualMachineName = 'Affected-machine-name')
     
  5. Reconfigure the affected machine, to confirm issue is no longer present.

Additional Information

To prevent the issue from occurring consider Leveraging a custom form for day 2 reconfigures that would restrict CPU/RAM values to only allow valid ones.