terraform-provider-ibm icon indicating copy to clipboard operation
terraform-provider-ibm copied to clipboard

ibm_pi_network resource is created with multiple DNS IP addresses when only one was specified

Open powellquiring opened this issue 1 year ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

 % terraform -v
Terraform v1.5.3
on darwin_arm64
+ provider registry.terraform.io/ibm-cloud/ibm v1.58.1

Your version of Terraform is out of date! The latest version
is 1.6.5. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)

  • ibm_pi_network

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "ibm_pi_network" "private" {
  pi_network_name      = "${local.name}-private"
  pi_cloud_instance_id = ibm_resource_instance.location.guid
  pi_network_type      = "vlan"
  pi_cidr              = local.subnet.cidr
  pi_dns = ["10.1.0.68"]
}

Expected Behavior

A network with one DNS record to be created.

Actual Behavior

Multiple DNS records were created:

% ic pi subnet get e20f0262-fce0-44ec-be9c-c99d33338108
Getting Subnet e20f0262-fce0-44ec-be9c-c99d33338108 under account Powell Quiring's Account as user [email protected]...

ID           e20f0262-fce0-44ec-be9c-c99d33338108
Name         per-spoke1-private
VLAN         1475
Type         vlan
CIDR Block   10.1.2.0/26
DNS          10.1.0.68, 161.26.0.10, 161.26.0.11
IP Range     [10.1.2.4-10.1.2.62]
Gateway      10.1.2.1
Jumbo        false

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000

powellquiring avatar Dec 05 '23 17:12 powellquiring