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

bigip_ltm_profile_http removing fallback_host does not result in change.

Open markush81 opened this issue 1 year ago • 1 comments

Environment

  • TMOS/Bigip Version:

Sys::Version Main Package Product BIG-IP Version 17.1.1.1 Build 0.0.2 Edition Point Release 1 Date Tue Nov 28 23:06:08 PST 2023

  • Terraform Version:

Terraform v1.9.3

  • Terraform bigip provider Version:

provider registry.terraform.io/f5networks/bigip v1.22.3

Summary

resource "bigip_ltm_profile_http" "http" {
  name                  = "/Common/xmp-http"
  defaults_from         = "/Common/http-transparent"
  insert_xforwarded_for = "enabled"
  fallback_host = "https://www.google.de"
}

Removing fallback_host results in

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Steps To Reproduce

  1. Resource
resource "bigip_ltm_profile_http" "http" {
  name                  = "/Common/xmp-http"
  defaults_from         = "/Common/http-transparent"
  fallback_host = "https://www.google.de"
}
  1. terraform apply
resource "bigip_ltm_profile_http" "http" {
  name                  = "/Common/xmp-http"
  defaults_from         = "/Common/http-transparent"
}
  1. terraform apply
No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Expected Behavior

Change the configuration and remove fallback_host .

Actual Behavior

Doesn't change and therefore wrong resources definition, wrong state and wrong configuraiton.

Note: to me it seems a general issue in the whole provider, that comparing state, definition and real configuration is not really reliable.

markush81 avatar Aug 26 '24 14:08 markush81