Open shemau opened 8 months ago
This occurred again, this time with provider 1.59.1.
This occurred again today, this time the provider was 1.60.0
This occurred again, this time the provider was 1.61.0
This is still happening with provider 1.62.0
This is still happening with the provider 1.65.0
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: module.cos_bucket3.module.bucket_cbr_rule[0].ibm_cbr_rule.cbr_rule: Creation complete after 1s [id=4d68e8a95dd74d26dda75ded8c15855c]
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā·
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā Error: Provider produced inconsistent result after apply
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā When applying changes to
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā module.cos_bucket2.module.bucket_cbr_rule[0].ibm_cbr_rule.cbr_rule,
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā provider "provider[\"[registry.terraform.io/ibm-cloud/ibm\"]"](http://registry.terraform.io/ibm-cloud/ibm/%22]%22) produced an
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā unexpected new value: Root resource was present, but now absent.
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā This is a bug in the provider, which should be reported in the provider's
TestRunAdvancedExample 2024-05-16T05:11:02Z logger.go:66: ā own issue tracker.
@hkantare can we get this assigned to CBR team? It is a intermittent, but persistent error that routinely causes PR and CI pipeline failures. I am pretty sure that the issue is that the CBR has been created, but is temporarily unavailable at the time the provider checks if it exists. This causes the create
to fail and the resource to be missing from the state file. Unfortunately on a re-run then finds that the resource does exist, so it needs to be manually imported (or destroyed from the command line) before an apply can be run again.
Community Note
Terraform CLI and Terraform IBM Provider Version
Various terraform v1.5.7 with IBM provider 1.57.0 through 1.59.0
Affected Resource(s)
Terraform Configuration Files
CBR created for example for a COS bucket
Debug Output
Indicates that the CBR rule was being created (no completed message) when the error was created.
Panic Output
Expected Behavior
The CBR rule should be created. This is an intermittent error, most times it just works.
Actual Behavior
Occasionally the CBR rule fails to create.
Steps to Reproduce
terraform apply
Important Factoids
The issue is intermittent
References