When attempting to place two ESXi hosts within a cluster into maintenance mode, the operation remained stuck at 19%. The vSphere Client displays a message indicating a dependency on a VM that had already been migrated: "Waiting for <VM_Name> to complete task: Drm.ExecuteVMotionLRO"
Additionally, in the task history, the following message will be observed: "The user does not have permission to view the entity associated with this event."
Although the VM referenced in the error message had already been evacuated, internal logs showed that the maintenance mode operation neither completed nor failed with an explicit error. The logs also indicated that vCLS was attempting to disable its components on the affected host, which likely blocked the maintenance mode operation.
Relevant log excerpts on vCenter, /var/log/vmware/vpxd/vpxd.log info vpxd [...] Ignore the WCP enterMaintenanceMode API result for host [...] because vSphere Namespaces is not enabled on its parent cluster. info vpxd [...] Started retries to disable vCLS Pod Crx on host [...] .. .. Host has powered-on system VMs; [vim.HostSystem:host-[...],[...]], eam: false, vclscrx: true
Environment
VMware vCenter Server 8.x
Cause
Host remained in an intermediate state while the system attempted to handle vCLS dependencies, which stalled the maintenance mode transition.
Resolution
To resolve the issue:
Log in to the vCenter UI with an Administrator user.
Identify the vCLS VM on the host that is stuck at 19% entering maintenance mode.