Snapshot operations of a VM fails with the error "The operation is not allowed in the current state of the host" which causes the backup operations to fail.
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
This is expected when the host is in a process of transition into maintenance mode. During this time, if the host is hosting many VMs, they are sequentially migrated to other hosts.
Although the VMs have not started migration, the snapshot operations will still fail until the VMs are moved out to the destination host from the time the host started processing the maintenance mode.
vcenter: /var/log/vmware/vpxd/vpxd.log
YYYY-MM-DD hh:mm:ss.zzzZ error vpxd[#####] [Originator@6876 sub=StateLock opID=########] [VpxdVmStateLocker::ValidateObject] VM <VM name>: Host <FQDN of the host> is in maintenance mode
Pause the backup operations of the corresponding VMs when a host is transitioning into maintenance mode to avoid backup job failures.
This is an expected behavior.