I am trying to recompose a vapp; adding a vm from a template and adding ANY type of network to the instantiation params. I get a generic 'Unable to perform this action. Contact your cloud administrator.' error when I have ANY type of instantion param section for recompose vapp. When I remove the element, it works (tried isolated, nat, bridged)... here's one example:
<ns6:RecomposeVAppParams xmlns="http://www.vmware.com/vcloud/versions" xmlns:ns2="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns3="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns6="http://www.vmware.com/vcloud/v1.5" xmlns:ns7="http://www.vmware.com/schema/ovf" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5" name="recompose Tue Apr 30 14:01:55 EDT 2013">
<ns6:InstantiationParams>
<ns6:NetworkConfigSection>
<ns2:Info>I dont know</ns2:Info>
<ns6:NetworkConfig networkName="vdcNetworkTest">
<ns6:Configuration>
<ns6:ParentNetwork type="application/vnd.vmware.vcloud.network+xml" name="vdcNetworkTest" href="<url>/api/network/d3e98225-c87c-44fb-b370-25f0344157a3"/>
<ns6:FenceMode>bridged</ns6:FenceMode>
</ns6:Configuration>
</ns6:NetworkConfig>
</ns6:NetworkConfigSection>
</ns6:InstantiationParams>
<ns6:SourcedItem>
<ns6:Source name="SHI-RHEL57" href="<url>/api/vAppTemplate/vm-51838b71-6fd0-4adb-80d1-c0493022f758"/>
<ns6:InstantiationParams>
<ns6:NetworkConnectionSection>
<ns2:Info/>
<ns6:PrimaryNetworkConnectionIndex>1</ns6:PrimaryNetworkConnectionIndex>
<ns6:NetworkConnection network="vdcNetworkTest" needsCustomization="false">
<ns6:NetworkConnectionIndex>1</ns6:NetworkConnectionIndex>
<ns6:IsConnected>true</ns6:IsConnected>
<ns6:MACAddress>00:50:56:01:06:51</ns6:MACAddress>
<ns6:IpAddressAllocationMode>POOL</ns6:IpAddressAllocationMode>
</ns6:NetworkConnection>
<ns6:NetworkConnection network="none" needsCustomization="false">
<ns6:NetworkConnectionIndex>0</ns6:NetworkConnectionIndex>
<ns6:IsConnected>true</ns6:IsConnected>
<ns6:MACAddress>00:50:56:01:06:52</ns6:MACAddress>
<ns6:IpAddressAllocationMode>POOL</ns6:IpAddressAllocationMode>
</ns6:NetworkConnection>
</ns6:NetworkConnectionSection>
</ns6:InstantiationParams>
</ns6:SourcedItem>
</ns6:RecomposeVAppParams>
THIS (below) does work though (same, no network section)... well rather it may fail down the line since that network does not exist, but at least the call goes through, and the vapp DOES get created (w/ no network).
<ns6:RecomposeVAppParams xmlns="http://www.vmware.com/vcloud/versions" xmlns:ns2="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns3="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns6="http://www.vmware.com/vcloud/v1.5" xmlns:ns7="http://www.vmware.com/schema/ovf" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5" name="recompose Tue Apr 30 14:09:38 EDT 2013">
<ns6:InstantiationParams/>
<ns6:SourcedItem>
<ns6:Source name="SHI-RHEL57" href="<url>/api/vAppTemplate/vm-51838b71-6fd0-4adb-80d1-c0493022f758"/>
<ns6:InstantiationParams>
<ns6:NetworkConnectionSection>
<ns2:Info/>
<ns6:PrimaryNetworkConnectionIndex>1</ns6:PrimaryNetworkConnectionIndex>
<ns6:NetworkConnection network="vdcNetworkTest" needsCustomization="true">
<ns6:NetworkConnectionIndex>1</ns6:NetworkConnectionIndex>
<ns6:IsConnected>true</ns6:IsConnected>
<ns6:MACAddress>00:50:56:01:06:51</ns6:MACAddress>
<ns6:IpAddressAllocationMode>POOL</ns6:IpAddressAllocationMode>
</ns6:NetworkConnection>
<ns6:NetworkConnection network="none" needsCustomization="true">
<ns6:NetworkConnectionIndex>0</ns6:NetworkConnectionIndex>
<ns6:IsConnected>true</ns6:IsConnected>
<ns6:MACAddress>00:50:56:01:06:52</ns6:MACAddress>
<ns6:IpAddressAllocationMode>POOL</ns6:IpAddressAllocationMode>
</ns6:NetworkConnection>
</ns6:NetworkConnectionSection>
</ns6:InstantiationParams>
</ns6:SourcedItem>
</ns6:RecomposeVAppParams>
Thanks!!