Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
powellquiring opened this issue Dec 5, 2023 · 0 comments
Labels
service/Power Systems Issues related to Power Systems

Comments

@powellquiring
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Power Systems Issues related to Power Systems
Projects
None yet
Development

No branches or pull requests

1 participant