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:
ATTRIBUTE | TYPE | REQUIRED | MODIFIABLE | SINCE | DEPRECATED | DESCRIPTION |
---|---|---|---|---|---|---|
name | string | No | always | 0.9 | A name as parameter. | |
deploy | boolean | No | always | 0.9 | Flag to deploy the VApp after successful creation. | |
powerOn | boolean | No | always | 0.9 | Flag to deploy and power on the VApp after successful creation. | |
linkedClone | boolean | No | always | 0.9 | Reserved. 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