VMware Cloud Community
vittimac
Contributor
Contributor

API Query call showing duplicate Org Networks

Hello,

I am having an issue with my vcloud 9.1. I am making an API call to look at my OrgNetworks using /api/admin/vdc/[orgvdcID]/networks and /api/query?type=orgVdcNetwork

In the first call my networks show up fine: There are 3 Networks here:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<QueryResultRecords xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:common="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ns9="http://www.vmware.com/vcloud/versions" name="orgVdcNetwork" page="1" pageSize="25" total="3" href="https://10.11.2.21/api/admin/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a/networks?page=1&pageSize=25&fo..." type="application/vnd.vmware.vcloud.query.records+xml">

    <Link rel="alternate" href="https://10.11.2.21/api/admin/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a/networks?page=1&pageSize=25&fo..." type="application/vnd.vmware.vcloud.query.references+xml"/>

    <Link rel="alternate" href="https://10.11.2.21/api/admin/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a/networks?page=1&pageSize=25&fo..." type="application/vnd.vmware.vcloud.query.idrecords+xml"/>

    <OrgVdcNetworkRecord connectedTo="MIvCD-ISO" defaultGateway="10.0.0.1" dns1=" " dns2=" " dnsSuffix=" " interfaceType="1" isBusy="false" isIpScopeInherited="false" isShared="false" linkType="2" name="MIvCD-ISO" netmask="255.255.255.0" totalIpCount="253" usedIpCount="0" vdc="https://10.11.2.21/api/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a" vdcName="syncNETtest" href="https://10.11.2.21/api/admin/network/c1ee5be9-6dc5-402c-9a50-76a1bc756276" task="https://10.11.2.21/api/task/d2ec9459-f04a-494d-987d-0006c69e8299" taskOperation="networkCreateOrgVdcNetwork" taskStatus="success" taskDetails=" "/>

    <OrgVdcNetworkRecord connectedTo="External-1" defaultGateway="10.11.0.1" dns1="10.11.0.1" dns2=" " dnsSuffix="cclab.airvm.net" isBusy="false" isIpScopeInherited="true" isShared="false" linkType="0" name="dupcheck" netmask="255.255.0.0" totalIpCount="11" usedIpCount="1" vdc="https://10.11.2.21/api/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a" vdcName="syncNETtest" href="https://10.11.2.21/api/admin/network/cb489c8d-a364-4262-ab5d-2912b968e261" task="https://10.11.2.21/api/task/716fedf9-e358-46a4-9329-38e4186ecdc2" taskOperation="networkCreateOrgVdcNetwork" taskStatus="success" taskDetails=" "/>

    <OrgVdcNetworkRecord connectedTo="External-1" defaultGateway="10.11.0.1" dns1="10.11.0.1" dns2=" " dnsSuffix="cclab.airvm.net" isBusy="false" isIpScopeInherited="true" isShared="false" linkType="0" name="MIvCD-EX" netmask="255.255.0.0" totalIpCount="11" usedIpCount="1" vdc="https://10.11.2.21/api/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a" vdcName="syncNETtest" href="https://10.11.2.21/api/admin/network/cdc1b397-3ffc-45c7-ab77-6e00ff828b83" task="https://10.11.2.21/api/task/8b7e6ae1-ffa8-4233-bdec-bcea81cc5011" taskOperation="networkCreateOrgVdcNetwork" taskStatus="success" taskDetails=" "/>

</QueryResultRecords>

But in the query call my networks to show up as duplicates: You can see now those same 3 networks show up but twice. Exact same ID's and everything

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<QueryResultRecords xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:common="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ns9="http://www.vmware.com/vcloud/versions" name="orgVdcNetwork" page="1" pageSize="25" total="20" href="https://10.11.2.21/api/query?type=orgVdcNetwork&page=1&pageSize=25&format=records" type="application/vnd.vmware.vcloud.query.records+xml">

    <Link rel="alternate" href="https://10.11.2.21/api/query?type=orgVdcNetwork&page=1&pageSize=25&format=references" type="application/vnd.vmware.vcloud.query.references+xml"/>

    <Link rel="alternate" href="https://10.11.2.21/api/query?type=orgVdcNetwork&page=1&pageSize=25&format=idrecords" type="application/vnd.vmware.vcloud.query.idrecords+xml"/>

    <OrgVdcNetworkRecord connectedTo="MIvCD-ISO" defaultGateway="10.0.0.1" dns1=" " dns2=" " dnsSuffix=" " interfaceType="1" isBusy="false" isIpScopeInherited="false" isShared="false" linkType="2" name="MIvCD-ISO" netmask="255.255.255.0" totalIpCount="253" usedIpCount="0" vdc="https://10.11.2.21/api/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a" vdcName="syncNETtest" href="https://10.11.2.21/api/admin/network/c1ee5be9-6dc5-402c-9a50-76a1bc756276" task="https://10.11.2.21/api/task/d2ec9459-f04a-494d-987d-0006c69e8299" taskOperation="networkCreateOrgVdcNetwork" taskStatus="success" taskDetails=" "/>

    <OrgVdcNetworkRecord connectedTo="MIvCD-ISO" defaultGateway="10.0.0.1" dns1=" " dns2=" " dnsSuffix=" " interfaceType="1" isBusy="false" isIpScopeInherited="false" isShared="false" linkType="2" name="MIvCD-ISO" netmask="255.255.255.0" totalIpCount="253" usedIpCount="0" vdc="https://10.11.2.21/api/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a" vdcName="syncNETtest" href="https://10.11.2.21/api/admin/network/c1ee5be9-6dc5-402c-9a50-76a1bc756276" task="https://10.11.2.21/api/task/d2ec9459-f04a-494d-987d-0006c69e8299" taskOperation="networkCreateOrgVdcNetwork" taskStatus="success" taskDetails=" "/>

    <OrgVdcNetworkRecord connectedTo="External-1" defaultGateway="10.11.0.1" dns1="10.11.0.1" dns2=" " dnsSuffix="cclab.airvm.net" isBusy="false" isIpScopeInherited="true" isShared="false" linkType="0" name="dupcheck" netmask="255.255.0.0" totalIpCount="11" usedIpCount="1" vdc="https://10.11.2.21/api/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a" vdcName="syncNETtest" href="https://10.11.2.21/api/admin/network/cb489c8d-a364-4262-ab5d-2912b968e261" task="https://10.11.2.21/api/task/716fedf9-e358-46a4-9329-38e4186ecdc2" taskOperation="networkCreateOrgVdcNetwork" taskStatus="success" taskDetails=" "/>

    <OrgVdcNetworkRecord connectedTo="External-1" defaultGateway="10.11.0.1" dns1="10.11.0.1" dns2=" " dnsSuffix="cclab.airvm.net" isBusy="false" isIpScopeInherited="true" isShared="false" linkType="0" name="dupcheck" netmask="255.255.0.0" totalIpCount="11" usedIpCount="1" vdc="https://10.11.2.21/api/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a" vdcName="syncNETtest" href="https://10.11.2.21/api/admin/network/cb489c8d-a364-4262-ab5d-2912b968e261" task="https://10.11.2.21/api/task/716fedf9-e358-46a4-9329-38e4186ecdc2" taskOperation="networkCreateOrgVdcNetwork" taskStatus="success" taskDetails=" "/>

    <OrgVdcNetworkRecord connectedTo="External-1" defaultGateway="10.11.0.1" dns1="10.11.0.1" dns2=" " dnsSuffix="cclab.airvm.net" isBusy="false" isIpScopeInherited="true" isShared="false" linkType="0" name="MIvCD-EX" netmask="255.255.0.0" totalIpCount="11" usedIpCount="1" vdc="https://10.11.2.21/api/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a" vdcName="syncNETtest" href="https://10.11.2.21/api/admin/network/cdc1b397-3ffc-45c7-ab77-6e00ff828b83" task="https://10.11.2.21/api/task/8b7e6ae1-ffa8-4233-bdec-bcea81cc5011" taskOperation="networkCreateOrgVdcNetwork" taskStatus="success" taskDetails=" "/>

    <OrgVdcNetworkRecord connectedTo="External-1" defaultGateway="10.11.0.1" dns1="10.11.0.1" dns2=" " dnsSuffix="cclab.airvm.net" isBusy="false" isIpScopeInherited="true" isShared="false" linkType="0" name="MIvCD-EX" netmask="255.255.0.0" totalIpCount="11" usedIpCount="1" vdc="https://10.11.2.21/api/vdc/0d0cd52a-3c27-47dc-b826-bc003d30bd7a" vdcName="syncNETtest" href="https://10.11.2.21/api/admin/network/cdc1b397-3ffc-45c7-ab77-6e00ff828b83" task="https://10.11.2.21/api/task/8b7e6ae1-ffa8-4233-bdec-bcea81cc5011" taskOperation="networkCreateOrgVdcNetwork" taskStatus="success" taskDetails=" "/>

</QueryResultRecords>

I am running vcloud 9.1 on top of vCenter 6.7 as well.

Has anyone else experienced this? And if so, what did you do to troubleshoot and solve the problem??

Or is this either an ongoing or existing bug

0 Kudos
1 Reply
TominoJ
Enthusiast
Enthusiast

Hi,

did you manage to find a solution to this problem? We've just updated our test environment vCloud Director to version 9.5, and we encountered exactly the same problem. When I execute the query:
https://vCDaddress/api/admin/extension/orgNetworks/query

The answer returned contains duplicate AdminOrgNetworkRecord entries. 4 for each network.

0 Kudos