Closed dprosper closed 2 years ago
@dprosper , Adding a terraform timeout block to extent creation timeout should help resolve this issue..
Reg Id: Resource creation is as follows:
check for lb status to be ready..
Resource should have gone to taint state for sure according to the current provider code..
There is nothing much we could do, as current code is already handling it.. Closing this issue for now. Kindly, open new issue and tag this issue, if you again encounter this issue..
Thanks.
Community Note
Terraform CLI and Terraform IBM Provider Version
Using IBM Cloud Schematics: v0.14.11
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Results from first Apply
Results from second Apply
Expected Behavior
After there was a timeout creating the resource, since the resource was still getting created, there should have been some state information stored in tfstate, i.e. the ID of the LB resources as there were available in the REST CLI and Cloud UI. The Terraform state should have that information so that the next apply would find them.
Actual Behavior
There was no information on the IDs of the LBs in the Terraform state, they were in
create_pending
state and not stored in the tfstate, at the next run Terraform tried to create them from scratch and it failed with the error seen above.Steps to Reproduce
This is going to be difficult to reproduce since the LBs typically are created under 30 minutes, there was a system glitch that caused it to take more than 30 minutes and for the timeout to occur.
Important Factoids
References
0000