VMware Cloud Community
toddq
Contributor
Contributor

Attaching independent disk to a vm

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?

Thanks,

Todd

Reply
0 Kudos
2 Replies
jcosta2013
Contributor
Contributor

yeap,

I attach disks to my VMs using this library below:

https://github.com/alphagov/vcloud-tools

Reply
0 Kudos
toddq
Contributor
Contributor

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.

Todd

Reply
0 Kudos