Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

vCloud Director vApp hot clone doesn't work with the Java API

$
0
0

Hello,

 

We have an important use case in vCD 5.1.2 to clone/copy a fenced vApp without shutdown the vApp.


It is not possible from the GUI, that's why we are trying to handle it from the Java API.

We tried to clone the vAPP to the same VDC and to different VDC. In both cases we get the error:


"Cannot create snapshot of VM [vcId=0a822f31-f2a0-4aa9-ad0e-e365cda7ba4a, moref=vm-2200]."

- A general system error occurred: The parent virtual disk has been modified since the child was created. Parent virutal disk's content ID does not match with the parent content ID in the child

vCenter Server task (moref: task-20034) failed in vCenter Server 'VMVC67' (0a822f31-f2a0-4aa9-ad0e-e365cda7ba4a).


The parameters we set in the Java code are:


cloneParams.setDescription("vAPP Hot Clone Test");

cloneParams.setName(clonedVAppName);

cloneParams.setSource(vapp.getReference());

cloneParams.setLinkedClone(true); //Is this implemented?


From the VMWare API documentation:http://pubs.vmware.com/vcd-51/index.jsp?topic=%2Fcom.vmware.vcloud.api.reference.doc_51%2Fdoc%2Findex.html:

ATTRIBUTETYPEREQUIREDMODIFIABLESINCEDEPRECATEDDESCRIPTION
namestringNoalways0.9A name as parameter.
deploybooleanNoalways0.9Flag to deploy the VApp after successful creation.
powerOnbooleanNoalways0.9Flag to deploy and power on the VApp after successful creation.
linkedClonebooleanNoalways0.9Reserved. Unimplemented.

 

Fast Provisioning is enabled in our vCD!


Has somebody successfully executed a hot clone with the REST API?

 

Thanks in advance for your support!

 

Best Regards,

Petya


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>