SDN: IPAM NetBox: "create sdn subnet object failed: error add subnet ip to ipam: ip 10.0.0.1 already exist"

MathieuMD

Member
Jun 2, 2022
3
0
6
While trying to add a subnet to a VNet, PVE fails because the subnet's gateway is already existing in NetBox. The error popup says:
create sdn subnet object failed: error add subnet ip to ipam: ip 10.0.0.1 already exist: at /usr/share/perl5/PVE/Network/SDN/Ipams/NetboxPlugin.pm line 109. (500)
I could create subnets whose gateway was not yet existing in NetBox, though.
Is it normal behavior? I guess it should silently ignore already existing IPs.
 
Same Problem here. But the gateway is not available in Netbox. Clear new Subnet without an entry in Netbox. Is it a bug in „NetboxPlugin.pm line 80. (500)“?
 
Same Problem here. But the gateway is not available in Netbox. Clear new Subnet without an entry in Netbox. Is it a bug in „NetboxPlugin.pm line 80. (500)“?
Are you using PVE 8.4? Are you sure that there is not an entry for that prefix in Netbox? (API endpoint /ipam/prefixes/)
 
Are you using PVE 8.4? Are you sure that there is not an entry for that prefix in Netbox? (API endpoint /ipam/prefixes/)
Hello shanreich
have the same issue in 8.4.1.
Deleted the entry in Netbox - Error is still shown. (even after several minutes)

BUT - i dont like to delete something in Netbox!
Maybe its an oversight from Proxmox, that Netbox is a planning and SoT Tool?
Have already planned nearly 80 prefixes and 40 IPs in Netbox - which i will for sure not delete ;)