networking-web-activity-pool-227391 | NsxTOrgVdcNetwork | Exception occurred while creating orgVdc network xxxxxx in vdc | requestId=xxxxxxxxxxxxxxxxxxxxxx,request=POST https://vcd.example.com/cloudapi/1.0.0/orgVdcNetworks,requestTime=1698920178275,remoteAddress=xx.xx.xxx.xx:xxxx,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/json;version 38.0.0-alpha;multisite xxxxxxxxxxxxxxxxxxxxxx@xxxxxxxxxxxxxxxxxxxxxx vcd=xxxxxxxxxxxxxxxxxxxxxx,task=xxxxxxxxxxxxxxxxxxxxxx activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:xxxxxxxxxxxxxxxxxxxxxx) activity=(com.vmware.vcloud.networking.services.handlerproxy.activity.networks.OrgVdcNetworkActivity,urn:uuid:xxxxxxxxxxxxxxxxxxxxxx)
java.lang.NullPointerException
at com.vmware.vcloud.networking.model.nsxtresource.segment.segmentprofile.NsxTSegmentProfileMappings.setIpDiscoveryProfilePath(NsxTSegmentProfileMappings.java:455) at com.vmware.vcloud.networking.model.nsxtresource.segment.segmentprofile.NsxTSegmentProfileMappings.updateIpMacDiscoveryBinding(NsxTSegmentProfileMappings.java:382) at com.vmware.vcloud.networking.model.nsxtresource.segment.segmentprofile.NsxTSegmentProfileMappings.updateSegment(NsxTSegmentProfileMappings.java:338) at com.vmware.vcloud.networking.model.network.TenantNetwork.configureNsxTSegmentProfileTemplate(TenantNetwork.java:663) at com.vmware.vcloud.networking.model.network.NsxTOrgVdcNetwork.createAndDeploy(NsxTOrgVdcNetwork.java:139) at com.vmware.vcloud.networking.services.handlerproxy.activity.networks.OrgVdcNetworkActivity.createOrgVdcNetwork(OrgVdcNetworkActivity.java:33)
This is a known issue in the Cloud director 10.4.2 version.
The issue happens because Cloud Director is incorrectly trying to set Segment Profiles for the Network Backing which is a VLAN Backed DV (Distributed) Port Group, however, it is not supposed to set Segment Profiles for any Direct network, be it VLAN backed DV Port group or NSX-T Segment backed.
This issue is resolved in the Cloud Director 10.4.3 and 10.5.1 versions.
To work around this issue if you do not want to upgrade, temporarily mark the Global Defaults setting as 'Not set':