-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Google IAP client ID doesn't appear while creating #7334
Google IAP client ID doesn't appear while creating #7334
Comments
Here are logs (test GCP project will no longer exist after this test) google_iap_client.oauth-3: Creation complete after 1s [id=projects/55629310208/brands/55629310208/identityAwareProxyClients/55629310208-c5kb097motjefue8b082ch4u6hbf4s3c.apps.googleusercontent.com] Error: Provider produced inconsistent result after apply When applying changes to google_iap_client.oauth-2, provider This is a bug in the provider, which should be reported in the provider's own |
Terraform v0.13.3
|
@aman-w-kumar can you post your Terraform config code? |
Here is Terraform config code. (sometime it works but most of time, i see error) data "google_project" "project" { resource "google_iap_client" "oauth-1" { } } } } } An execution plan has been generated and is shown below.
Terraform will perform the following actions: google_iap_client.oauth-1 will be created
google_iap_client.oauth-2 will be created
google_iap_client.oauth-3 will be created
google_iap_client.oauth-4 will be created
google_iap_client.oauth-5 will be created
google_iap_client.oauth-6 will be created
Plan: 6 to add, 0 to change, 0 to destroy. Do you want to perform these actions? Enter a value: yes google_iap_client.oauth-1: Creating... Error: Provider produced inconsistent result after apply When applying changes to google_iap_client.oauth-1, provider This is a bug in the provider, which should be reported in the provider's own |
Trace logs of one of IAP-5 client creation. This is a bug in the provider, which should be reported in the provider's own issue tracker.** This is a bug in the provider, which should be reported in the provider's own issue tracker. This is a bug in the provider, which should be reported in the provider's own issue tracker. |
could you please change the label as "Bug"? thanks |
Interesting. I think I know what the issue is, but can you give me some more details on when you noticed this? Was this the first time you tried to create IAP clients via Terraform? |
Yes, I'm creating first time with terraform. Sometime it works but most of time it's failing. I tried with retry but then I found there are multiple duplicate IAP clients are created with same name but different clientID as you might go through to the debug logs above. You might find that terraform lost resource after creation and try to connect IAP API but got response "Requested entity was not found.", I think you know better 😉 what is missing there. Thanks ak |
Imo, It could be related eventual consistent and resource creation takes some time to propogate but I'm not sure how terraform is handling this situation, there could be some other reasons why terraform lost object after creation. |
Looks like eventual consistency to me. I'm unclear on why this would be showing up for you though, I thought we already had polling on the resource creation. I'll check it out and maybe tune it a bit |
Just curious, if this issue is resolved ? |
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Hi,
I'm facing a strange issue while creating IAP client through terraform. Terraform does show that "resource google_iap_client.iap-xxx: Creating..." but its value doesn't appear after creation (checked in GCP UI and iap client was created) that and becasuse of this terraform didn't create backend service because i use iap block in backend service resource which allow to map IAP client to backend service.
exact error :
"Error : provider produced inconsistent result after apply"
when applying changes to google_iap_client.iap-xxx, provider "registry.terraform.io/hashicorp/google" produced an unexpected new value: Root resource was present, but now absent.
This is a bug in the provider, which should be reported in the provider's own issue tracker.
The text was updated successfully, but these errors were encountered: