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

Recompose vapp error in vcloud 5.1 Java SDK

$
0
0

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: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: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!!

Viewing all articles
Browse latest Browse all 179681

Trending Articles



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