We're running vCloud Director 5.1 and I'm using the API to create an independent disk and attach it to a VM. I'm able to create disks just fine, the call returns successfully, I can query the VDC for info about it and it looks fine. But when I make the call to attach it I get an http 400 error - The requested operation cannot be performed because disk "Test" was not created properly. It didn't complain about anything during the creation process, so I don't understand why it's complaining now. And it's not giving me anything helpful to work with.
Has anyone successfully used the disk create/attach apis in 5.1? Any ideas what might be going wrong?
Thought I'd follow up to this as I've sort of sorted it out. Apparently there was a problem with the storage profile that was causing the actual disk creation to fail, though vCloud returned success and listed it as being in the VDC. Our vCloud administrator took care of the storage issue and I can work with independent disks now. Hopefully the "not reporting disk creation failures" bit has been fixed in 5.5.