Skip to content
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

(CI) Seeing a lot of "Error: Provider produced inconsistent result after apply" #115

Closed
apeabody opened this issue May 9, 2024 · 3 comments

Comments

@apeabody
Copy link
Collaborator

apeabody commented May 9, 2024

Error: Provider produced inconsistent result after apply

When applying changes to module.env.google_service_account.bank_of_anthos,
provider "module.env.provider[\"registry.terraform.io/hashicorp/google\"]"
produced an unexpected new value: Root object was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own
issue tracker.. Sleeping for 2m0s and will try again.
@apeabody apeabody changed the title (CI) We currently retry after "provider produced inconsistent result after apply" which can result in a misleading error message (CI) We retry after "provider produced inconsistent result after apply" which can result in a misleading error message May 9, 2024
@apeabody
Copy link
Collaborator Author

Step #11 - "appfactory-apply": Error: Provider produced inconsistent result after apply
Step #11 - "appfactory-apply": 
Step #11 - "appfactory-apply": When applying changes to
Step #11 - "appfactory-apply": module.components["userservice"].module.app_env_project["production"].module.project-factory.google_service_account.default_service_account[0],
Step #11 - "appfactory-apply": provider "provider[\"registry.terraform.io/hashicorp/google\"]" produced an
Step #11 - "appfactory-apply": unexpected new value: Root object was present, but now absent.
Step #11 - "appfactory-apply": 
Step #11 - "appfactory-apply": This is a bug in the provider, which should be reported in the provider's own
Step #11 - "appfactory-apply": issue tracker.' but this error was expected and warrants a retry. Further details: Provider eventual consistency error.

@apeabody apeabody changed the title (CI) We retry after "provider produced inconsistent result after apply" which can result in a misleading error message (CI) Seeing a lot of "Error: Provider produced inconsistent result after apply" May 11, 2024
@apeabody
Copy link
Collaborator Author

@apeabody
Copy link
Collaborator Author

The adoption of the new https://github.com/terraform-google-modules/terraform-google-project-factory/releases/tag/v15.0.1 has greatly reduced the frequency of impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant