F5Networks / terraform-provider-bigip

Terraform resources that can configure F5 BIG-IP products
https://registry.terraform.io/providers/F5Networks/bigip/latest/docs
Mozilla Public License 2.0
105 stars 119 forks source link

bigip_ltm_profile_http removing fallback_host does not result in change. #1009

Open markush81 opened 3 months ago

markush81 commented 3 months ago

Environment

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"
    }
  2. terraform apply
  3. resource "bigip_ltm_profile_http" "http" {
    name                  = "/Common/xmp-http"
    defaults_from         = "/Common/http-transparent"
    }
  4. 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.

pgouband commented 2 months ago

Hi,

Thanks for reporting. Added to the backlog and internal tracking ID for this request is: INFRAANO-1655.