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
102 stars 118 forks source link

Error:no change not handled by provider #600

Closed jskirde closed 2 years ago

jskirde commented 2 years ago

Environment

Summary

When deploying an AS3 to a bigip device using Terraform where a previous connection was interrupted (likely due to another BIGIP REST issue), the provider responds with "Error:no change". This shouldn't be treated as an error as the desired state has been achieved! A refresh doesn't allow the state to be updated and the user is stuck.

module.lbaas-pool.bigip_as3.application-site1["site1"]: Creating...
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [10s elapsed]
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [20s elapsed]
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [30s elapsed]
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [40s elapsed]
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [50s elapsed]
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [1m0s elapsed]
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [1m10s elapsed]
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [1m20s elapsed]
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [1m30s elapsed]
module.lbaas-pool.bigip_as3.application-site1["site1"]: Still creating... [1m40s elapsed]
╷
│ Error: posting as3 config failed for tenants:(tfeedev_mypartition_site1) with error: Error:no change
│
│   with module.lbaas-pool.bigip_as3.application-site1["site1"],
│   on ..\modules\terraform_module-bigip-lbaas-pool\bigip_as3.tf line 276, in resource "bigip_as3" "application-site1":
│  276: resource "bigip_as3"  "application-site1" {
│

Steps To Reproduce

Steps to reproduce the behavior:

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

  2. To get to know more about the issue, provide terraform debug logs N/A

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

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

Expected Behavior

A clear and concise description of what you expected to happen. The "Error:no change" should be handled as matching expected declaration. Should be handed in the provider.

Actual Behavior

A clear and concise description of what actually happens. Please include any applicable error output.

│ Error: posting as3 config failed for tenants:(tfeedev_mypartition_site1) with error: Error:no change
trinaths commented 2 years ago

@jskirde please share the TF manifest to try this issue.

Created [INFRAANO-700] for internal tracking.

RavinderReddyF5 commented 2 years ago

fixed in v1.13.1