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

terraform doesn't change a HostRecord name when the vm_name is changed in the block, only the EA vm_name is changed, not the actual name #54

Closed
scumola opened this issue Jan 14, 2020 · 1 comment

Comments

@scumola
Copy link

scumola commented Jan 14, 2020

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # infoblox_ip_allocation.suse01 will be updated in-place
  ~ resource "infoblox_ip_allocation" "suse01" {
        cidr              = "10.120.0.0/13"
        dns_view          = "Internal"
        enable_dns        = false
        id                = "record:host/ZG5zLmhvc3QkLm5vbl9ETlNfaG9zdF9yb290LjAuMTU3OTAxMTI3NTg5OC5nb3YubnJlbC5nb3YubnJlbC5zd2ViYjAx:swebb01.domain.com.domain.com/%20"
        ip_addr           = "10.120.8.33"
        mac_addr          = "00:00:00:00:00:00"
        network_view_name = "default"
        tenant_id         = "domain.com"
      ~ vm_name           = "swebb01.domain.com" -> "suse01.domain.com"
        zone              = "domain.com"
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

infoblox_ip_allocation.suse01: Modifying... [id=record:host/ZG5zLmhvc3QkLm5vbl9ETlNfaG9zdF9yb290LjAuMTU3OTAxMTI3NTg5OC5nb3YubnJlbC5nb3YubnJlbC5zd2ViYjAx:swebb01.domain.com.domain.com/%20]
infoblox_ip_allocation.suse01: Modifications complete after 0s [id=record:host/ZG5zLmhvc3QkLm5vbl9ETlNfaG9zdF9yb290LjAuMTU3OTAxMTI3NTg5OC5nb3YubnJlbC5nb3YubnJlbC5zd2ViYjAx:swebb01.domain.com.domain.com/%20]

After applying, I see in the UI:

image

image

@saiprasannasastry
Copy link
Contributor

This is expected behaviour and was designed to be this way, the requirement came to us in such a way that the name of the dns record must not be updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants