When I test web service api ReconifgVM_Task against vSphere 5.1 to remove a delta disk from virtual machine. A error occured.
It shows "Invalid configuration for device '0'". And get the error information returned.
"Cannot remove virtual disk from the virtual machine because it or one of its parent disks is part of a snapshot of the virtual machine."
But this works fine against vSphere 5.0 update 1 and vSphere 4.0.
What happened here of this API. Does VMWare changed its behavior for this API "ReconifgVM_Task"?
And when I tried to remove disk from a VM through vClient. It also poped out the error dialog.
This is NOT a vSphere API issue.
When a snapshot is cut, a new child (delta) disk is created for changes forward. If you remove the parent disk and child disks in snapshot chain, a child disk is useless. To enforce integrity of the disks, users are not allowed to delete parent disk and child disks in the chain before a child disk is deleted.
You may want to check out this KB for more explanation: http://kb.vmware.com/kb/1015180
Steve, vExpert, creator of open source vijava API, http://www.doublecloud.org