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

NETWORK_INTERNAL_SERVER

$
0
0

Hello,

 

I'm using the following version of vmware products :

- vCloud Director 5.1.1.868405

- vCloudApi SDk PHP 1.5.0-472492

- vCloudApi SDK PHP 5.1.0-819742

 

I want to reconfigure the network of deployed vapp. The vapp at the begining has no network and so all vms network card are unconnected.

To do the reconfiguration I used a php script. In the first case the script used the SDk PHP 1.5.0-472492 library and in the second case the script used the SDK PHP 5.1.0-819742 library. there was no more differents.

 

In the first case the reconfiguration worked but in the second case I ve got the following error :

 

<Error message="Unable to create network "Management". Invalid network parameter: Subnet mask cannot be empty." minorErrorCode="NETWORK_INTERNAL_SERVER" majorErrorCode="500"/>
[...]
<Details>  Unable to create network "Management".</Details>
But if you see the exported xml of the NetworkConfigSection you can see that the subnet mask for the management network is provided :

<NetworkConfigSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="application/vnd.vmware.vcloud.networkConfigSection+xml">

    <ovf:Info>This is about networkConfigSection</ovf:Info>

    <NetworkConfig networkName="Production">

        <Description>A good configuration description</Description>

        <Configuration>

            <IpScope>

                <IsInherited>false</IsInherited>

                <Gateway>192.168.2.1</Gateway>

                <Netmask>255.255.255.0</Netmask>

                <IpRanges>

                    <IpRange>

                        <StartAddress>192.168.2.2</StartAddress>

                        <EndAddress>192.168.2.254</EndAddress>

                    </IpRange>

                </IpRanges>

            </IpScope>

            <ParentNetwork href="https://vcd-demo.ecocenter.fr/api/network/30113185-6220-4d72-b6dd-e18cea4ec55e" type="application/vnd.vmware.vcloud.network+xml" name="ECV_Direct_vlan40"/>

            <FenceMode>natRouted</FenceMode>

        </Configuration>

        <IsDeployed>false</IsDeployed>

    </NetworkConfig>

    <NetworkConfig networkName="Management">

        <Description>A good configuration description</Description>

        <Configuration>

            <IpScope>

                <IsInherited>false</IsInherited>

                <Gateway>192.168.3.1</Gateway>

               <Netmask>255.255.255.0</Netmask>

                <IpRanges>

                    <IpRange>

                        <StartAddress>192.168.3.2</StartAddress>

                        <EndAddress>192.168.3.254</EndAddress>

                    </IpRange>

                </IpRanges>

            </IpScope>

            <FenceMode>isolated</FenceMode>

        </Configuration>

        <IsDeployed>false</IsDeployed>

    </NetworkConfig>

</NetworkConfigSection>

The exported XML of the NetworkConfigSection was the same with the script using the SDk PHP 1.5.0-472492. Any Ideas ? Where I'm wrong ?

 

Regards,

 

Yann CONAN


Viewing all articles
Browse latest Browse all 179681

Trending Articles



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