Hi everyone,
Using VCD 1.5, initiating a VApp from a Template works fine for me. Adding a VM to an existing empty VApp was a next task, but I tried to recompose the VApp with no success.
I used the RecomposeVAppParams Block from two other Discussions, but it doesn't help either.
The error is the following: message="The VCD entity network "SupportNet" specified for VM "W7-64Test" does not exist." The existing VM in the Source-href is working well and exists in a VAppTemplate. The OrgNetwork "SupportNet" exists too.
While calling the method recomposeVApp I sent the following XML-Body and used an existing VApp, which is completely empty.
<RecomposeVAppParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:environment_1="http://schemas.dmtf.org/ovf/environment/1">
<SourcedItem sourceDelete="false">
<Source href="https://vcd.iscinternal.com/api/vApp/vm-a1a941a6-c06b-4b89-8e45-5ac6050a345f" name="test2"/>
<InstantiationParams>
<NetworkConnectionSection ovf:required="false">
<ovf:Info>Specifies the available VM network connections</ovf:Info>
<NetworkConnection network="SupportNet" needsCustomization="false">
<NetworkConnectionIndex>0</NetworkConnectionIndex>
<IpAddress>192.168.0.23</IpAddress>
<IsConnected>false</IsConnected>
<IpAddressAllocationMode>MANUAL</IpAddressAllocationMode>
</NetworkConnection>
</NetworkConnectionSection>
</InstantiationParams>
<NetworkAssignment innerNetwork="PXE BOOT" containerNetwork="SupportNet321"/>
</SourcedItem>
</RecomposeVAppParams>
Thanks,
Tom