This symptoms is observed when the deployments are done via Aria Automation, Terraform or postman & datastore in maintenance mode is getting selected while deploying.
Aria Automation 8.16.x
Aria Automation 8.18.x
The process of creating a VM from an OVF template through Aria Automation involves two steps:
The issue arose due to the datastore selection process for the intermediate VM. The initial logic prioritized datastores with the most available space but did not account for their maintenance mode status. As a result, a datastore in maintenance mode was chosen, leading to the failure of the intermediate VM's creation since VMs cannot be placed on a datastore in maintenance mode.
This is a known issue with Aria Automation 8.16.x and 8.18.x.
Fix is scheduled with next upcoming patch 8.18.1 Patch 2 | VCF 9.0
The solution is to implement a filter to exclude maintenance mode datastores during the datastore selection process, even if they have the most free space. This ensures that only datastores in a usable state are considered, eliminating the issue of selecting a maintenance datastore and allowing the intermediate VM creation to succeed.