When attempting to create a subnet within a Virtual Private Cloud (VPC) in VCF Automation, the process fails during the Subnet Custom Resource (CR) processing. This typically occurs when using Private TGW access mode with manual CIDR allocation.
The following error is observed in the VCF Automation:Error occurred while processing the Subnet CR. Please check the config and try again. Error: nsx error code: 520034, message: CIDR #### does not belong to IpAddressBlocks path=[/orgs/default/projects/####/infra/ip-blocks/####]
The IP subnet is also not visible in the NSX Manager UI
VCF Automation 9.x
VMware NSX 9.x
The issue is caused because when creating a Private TGW Access Mode in a VPC and the relevant VPC still contains the “Private - VPC” IPv4 CIDRs of the same values.
In order to address the issue, when implementing a subnet with Access Mode = “Private - TGW” remove the subnet CIDRs from the VPCʼs “Private IP CIDR” property and the steps are as mentioned below