-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage Gateway Upload Buffer creates resource but "Provider produced inconsistent apply" #12847
Comments
This looks like an "eventual-consistency" issue. The resource is created successfully but when Terraform turns around and reads the resource, the service API cannot yet find the resource. |
I ran tests several times to try and recreate this and was not able to. i can add add a retry to read the resource right after creating before the resource Read function. its going to be a "dumb" check as there is not status attribute or anything else similar let users know the status of the resource |
The error messaging was fixed in version 3.32.0, support for cached gateways in the resource (via a new |
This has been released in version 3.34.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Terraform v0.12.24
Affected Resource(s)
Terraform Configuration Files
Debug Output
Error: Provider produced inconsistent result after apply
When applying changes to
module.test_cluster.aws_storagegateway_upload_buffer.master-buffer, provider
"registry.terraform.io/-/aws" produced an unexpected new value for was
present, but now absent.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.
Panic Output
Expected Behavior
Apply succeeded
Actual Behavior
Master buffer was successfully created, but terraform displayed the above error. The subsequent apply yielded another error, as the disk had indeed been successfully allocated:
Error: error adding Storage Gateway upload buffer: InvalidGatewayRequestException: The specified disk is already allocated.
{
Error_: {
ErrorCode: "DiskAlreadyAllocated"
},
Message_: "The specified disk is already allocated."
}
on ../modules/storage-gateway/main.tf line 72, in resource "aws_storagegateway_upload_buffer" "master-buffer":
72: resource "aws_storagegateway_upload_buffer" "master-buffer" {
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: