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
104 stars 119 forks source link

Failing to create external bigip_ltm_datagroup resource #1024

Open LuisPiedra opened 3 weeks ago

LuisPiedra commented 3 weeks ago

Environment

Summary

After creating a bigip_ltm_datagroup resource with internal = false, the data group and corresponding data group file are created, but then the provider fails to retrieve it when querying data groups lists.

This is happening after https://github.com/F5Networks/terraform-provider-bigip/pull/821/files and working properly in versions prior to that change.

Steps To Reproduce

Steps to reproduce the behavior:

resource "local_file" "external" {
  content  = "foo := bar"
  filename = "foo.bar"
}

resource "bigip_ltm_datagroup" "external" {
  name     = "/Common/external-test"
  type     = "string"
  internal = false

  records_src = local_file.external.filename
}

Expected Behavior

The data group and data group file are created and properly included in the state file.

Actual Behavior

The data group and data group file are created, but not refreshed.

Error: Error retrieving Data Group List /Common/external-test: Object not found - /Common/external-test 
pgouband commented 2 weeks ago

Hi,

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