Article number
000003873
Affected Versions
All
Source Hypervisor
All
Target Hypervisor
All

During a VPG Move Opeation, Error “Failed applying configuration to VM (ID vm-XXXX) Message: The operation is not allowed in the current state”

Viewed 65 times

Root Cause

This issue occurs if the vCenter management agents have stopped working properly, causing the VM move attempt to fail in the ON_SHUTTING_DOWN state.
 

Symptoms

When performing a move operation on a VPG, the action may fail. In this scenario, the ZVM logs logs will contain the following error:
Failed applying configuration to VM (ID vm-XXXX) Message: The operation is not allowed in the current state

Example:
71595675,xxxxxxxx,,,20-02-22 01:01:50.61,E,151,BulkOperationVmQueue,BulkReconfigVmLocked,"Got exception in bulk operations, canceling operation","VCenterConnectionLayer.VMBasicsException Void HandleVMwareFault(System.String, VCenterConnectionLayer.VMwareFaultException) VCenterConnectionLayer.VMBasicsException: Failed applying configuration to VM  (ID vm-XXXX) Message: The operation is not allowed in the current state.. Fault: Vim25Api.InvalidState. ---> VCenterConnectionLayer.VMwareFaultException: Exception of type 'VCenterConnectionLayer.VMwareFaultException' was thrown.

Solution

To resolve this issue, restart the VMware management agents using the below procedure. Prior to starting, ensure that the Virtual machine startup/shutdown with host feature is disabled.

Restart Management agents in ESXi Using Direct Console User Interface (DCUI):

  1. Connect to the console of your ESXi host.
  2. Press F2 to customize the system.
  3. Log in as root.
  4. Use the Up/Down arrows to navigate to Troubleshooting Options > Restart Management Agents.
  5. Press Enter.
  6. Press F11 to restart the services.
  7. When the service restarts, press Enter.
  8. Press Esc to log out.
  9. On vCenter Server, restart the vCenter and Management Web services
Once the above procedure is completed, attempt the VPG move again.