hashicorp / terraform-provider-infoblox

This provider has moved to https://github.com/infobloxopen/terraform-provider-infoblox
https://github.com/infobloxopen/terraform-provider-infoblox
Mozilla Public License 2.0
12 stars 22 forks source link

Network Resource Already Exists Error #14

Open darthVikes opened 4 years ago

darthVikes commented 4 years ago

The Network already exists, however, I don't believe this should be erroring that it exists? Reason I need to add this is I need to get the gateway back from it to do a Clone in VMware and tell it what the Gateway is. I also need to tell it what the DNS Servers are? Is there also an option for that? Those are setup in the VLAN/DHCP area in NIOS.

IF it already exists that should be an condition that should be OK? As with terraform you are telling it your desired state. Thanks!

resource "infoblox_network" "ib_network" { network_name = LAB cidr = 10.26.60.0/24 tenant_id = "default" }

2020/08/01 19:20:06 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: Creation of network block failed in network view (default) : WAPI request error: 400('400 Bad Request') Contents: { "Error": "AdmConDataError: None (IBDataConflictError: IB.Data.Conflict:The network 10.26.60.0/24 already exists. Select another network.)", "code": "Client.Ibap.Data.Conflict", "text": "The network 10.26.60.0/24 already exists. Select another network." } 2020/08/01 19:20:06 [ERROR] <root>: eval: *terraform.EvalSequence, err: Creation of network block failed in network view (default) : WAPI request error: 400('400 Bad Request') Contents: { "Error": "AdmConDataError: None (IBDataConflictError: IB.Data.Conflict:The network 10.26.60.0/24 already exists. Select another network.)", "code": "Client.Ibap.Data.Conflict", "text": "The network 10.26.60.0/24 already exists. Select another network." }

AvRajath commented 4 years ago

Was the network created using terraform? If yes then its a desired state but if the network was created manually then we will have errors which say data conflict. Sorry for the delay in responses.