2020-04-21T06:05:20.787Z ERROR vsan-mgmt[35201] [VsanEamUtil::DestroyEamAgentVMs opID=W79787] Failed to destroy agent VM 'vim.VirtualMachine:vm-333' on host host-108
Traceback (most recent call last):
File "/build/mts/release/bora-16051639/bora/build/vcenter/release/pkg/vsanmgmt/stage/usr/lib/vmware-vpx/vsan-health/pyMoVsan/VsanEamUtil.py", line 734, in DestroyEamAgentVMs
File "/usr/lib/vmware/site-packages/pyVim/vimutil.py", line 30, in InvokeAndTrack
return WaitForTask(task)
File "/usr/lib/vmware/site-packages/pyVim/task.py", line 140, in WaitForTask
raise info.error
VsanVmomiPatcher.vim.fault.InvalidPowerState: (vim.fault.InvalidPowerState) {
msg = 'The attempted operation cannot be performed in the current state (Powered on).',
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) [],
requestedState = 'poweredOff',
existingState = 'poweredOn'
}
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Workaround to resolve this issue:
1.) Power off the File Service VM (= FSVM) that reported the Warning: "Virtual Machine Consolidation Needed Status"