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

bigip_sys_dns and bigip_sys_ntp resources remain after terraform destroy

Open rqf5 opened this issue 3 years ago • 0 comments

Environment

  • TMOS/Bigip Version: Bigip 16.1.3.1 (AWS: BIG-IP 16.1.3.1 Build 0.0.11 Point Release 1 Cryptographic Module for BIG-IP)
  • Terraform Version: 1.3.1
  • Terraform bigip provider Version: 1.15.2

Summary

DNS and NTP resources are not being destroyed by terraform. See attached main.tf for sample terraform code.

bigip_sys_dns and bigip_sys_ntp code samples were copied directly from:

https://registry.terraform.io/providers/F5Networks/bigip/latest/docs/resources/bigip_sys_dns https://registry.terraform.io/providers/F5Networks/bigip/latest/docs/resources/bigip_sys_ntp

Steps To Reproduce

Steps to reproduce the behavior:

  1. Provide terraform resource config which you are facing trouble along with the output of it.

attached - main.tf main.tf.txt

Using attached main.tf:

  • terraform apply will create the ntp and dns resources
  • terraform destroy will not remove the ntp and dns resources
  1. To get to know more about the issue, provide terraform debug logs

attached:

tf_apply_log.txt tf_destroy_log.txt

  1. To capture debug logs, export TF_LOG variable with debug ( export TF_LOG= DEBUG ) before runnning terraform apply/plan

  2. As3/DO json along with the resource config( for AS3/DO resource issues )

Expected Behavior

dns and ntp records will disappear from Bigip

Actual Behavior

dns and ntp records are still in Bigip

see attached, from menu: System -> Configuration -> Device -> [NTP / DNS]

dns_after_tf_destroy ntp_after_tf_destroy

rqf5 avatar Oct 14 '22 18:10 rqf5