...
An alert appears "machine has an outstanding operation" when selecting a machine to attach/ detach a disk to in the Horizon Console.Provisioning for a virtual machine completes with a status of configuration errorLog Lines in your Horizon Server Debug Log may seem similar to the below: Collecting VMware Horizon View log bundles (1017939) for details if needed. yyyy-mm-ddThh:mm:ss.365+05:30 ERROR (2284-0978) <PendingOperation-/Datacenter/vm/BMI-HZE/BMI-Pools/testPD/testPD1-DeletingNGVC> [NgvcHelper] Caught exception deleting VM testPD1. Detaching a disk testPD1-user_disk-D-80728684-0a93-4264-a878-40378c0c17d4.vmdk from the VM testPD1 has failed. The Horizon Console may show a hung detach task :
This article provides information on how to troubleshoot a detach operation that fails when a machine is in an unavailable state.
Configuration Errors can vary in cause ranging from a feature requiring a machine reboot or a service failing to load.
If the detach operation fails, the disk will remain attached to the machine and will not be available for use.
It is better to take a proactive approach and ensure your image is the very best it can be for usage as an instant clone and your infrastructure is configured for an optimal experience: Horizon View Best Practices: Parent Image Creation and Maintenance. (90152)Horizon View Best Practices: Instant Clone Provisioning and Troubleshooting (91265) To recover from a scenario where a disk is hung with a status of detach: Please ensure an appropriate backup of the persistent disk has been taken: Please reference Horizon 8.10 Persistent Disk: Persistent Disk Backup prior to Maintenance Tasks (92882) Disk Detachment in vCenter: Select the virtual machine and go to Edit Settings > Hard Disk > Remove the Persistent Disk. Note: Do not select "Remove Device and Data". This will completely wipe the disk and you will not be able to import it. Entry Deletion in The Horizon LDAP DB:Before commencing, confirm the disk is no longer required and take a suitable backup of your LDAP database. You can log in to a connection server and connect to your LDAP Database, please see Connecting to the View ADAM LDAP Database (2012377 for detailed steps. Navigate to OU=Data Disks and manually delete the disk entry which will reflect the file name. Importing a Persistent Disk into Vcenter & Machine Recreation: You can then use the "Import from vCenter" API to bring the disk back into Horizon and use the recreate or attach workflows to reattach to the virtual machine.Please see Horizon 8.10 Persistent Disk: Importing a Persistent Disk and Assigning to a Recreated Desktop(93111) for the specifics of this process.
This article is a child article of Horizon 8.10 Persistent Disk: Best Practices and Troubleshooting (92881)