-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error: Provider produced inconsistent result after apply #40
Comments
This is fixed in #37 and is the result of changes in how apigee returns results in their API which broke the provider. I will work on releasing both open PRs into v0.0.18. |
When you say: Note that this is not a new apigee tenancy, this is me trying to bring automation to the existing tenancy. Can you elaborate on that please? |
We have a bunch of manually provisioned stuff and I'm trying to use this terraform module to bring CI/CD to it instead of a bunch of point-and-click administration which has become a headache. I will close this as you indicated the bug has been squished. :) |
Ah OK. You need to import those resources most probably. The provider won't import things that exist in Apigee unless you explicitly import them as they aren't there in the terraform state. I think this is a different issue than the one I referenced. |
I'll open a new bug report if the issue persists in 0.18 I suppose. |
Yeah still happening reliably in 0.0.18 |
I was able to reproduce this. I'm not sure how the bug was introduced but I will dig into it. |
@tibers FYI, it will be a few days before I can dig into this due to other priorities. |
OK thanks for the heads up. It's not a blocker as it looks like everything is working? I'm not sure what TF is actually complaining about. Maybe I'll even take a shot at it and try to learn some TF under the hood. |
Yep, it is working. I think this has to do with some of the changes for 'latest' a while back which may cause this even if you aren't using 'latest'. I'm able to reproduce it so once I have some time I can get it resolved but please feel free to look into it. Writing terraform providers is pretty straightforward but understanding how the tests work is a little... well weird I guess. |
I'm pretty new to Go, but is there anything I can help with here? Was I correct in the issue I reaised in saying the issue was reading back the info from Reader? Is this just an issue with conversion from JSON to a Go map? |
I also suck at Go - I piddle about with it and then get stuck and then give up. I have an open feature req if you're bored or brave. The apigee API isn't the best and it's getting overhauled sometime in 2020 per our support contact. The problem is that |
happy new year all! i spent my break learning more go, but i'm honestly not sure where exactly this is breaking yet. if you can point it out to me and tellme what needs to be fixed i have time and am in need of getting this working. i'be happy to do a PR. |
I am using first time apigee provider and this is really great stuff (thank you). I got this issue "Provider produced inconsistent result after apply" when i used revision = "latest" in apigee_api_proxy_deployment . Then i started reading the https://www.terraform.io/docs/extend/terraform-0.12-compatibility.html and trying to understand throgh terraform plan . What I understood is because the code is updating the revision in resourceApiProxyDeploymentRead , terraform is complaining about this as this is not appeared in plan (plan shows latest but apply came up with different in this case it is 1). As experimental I changed the code like below
Instead of updating the revision , updating the id with revision. I am not sure my thinking is correct or not but wanted to inform |
I am still running into this issue. What is the fix? I cannot seem to locate it throughout this thread. |
Just an additional comment to help people who land here when they google for this problem: One cause, which can make this error appear, can be that the deployment of a proxy fails because there's some error in the proxy. So a way to find out what's wrong when this error appears in a terraform run, can be to deploy the proxy manually using the Apigee UI and look at what error this gives you. An example which in our case recently made this problem appear is that there was another proxy with the same "BasePath" already existing in the system. When trying to deploy the proxy with terraform the message about "unexpected new value for was present, but now absent" appeared and we only found out about our problem when we tried to deploy the proxy manually. |
we are experiencing similar issue when deploying to understand the problem, i will use this version here we have around 2 dozens for proxies, it fails on every proxy when deploying to production, but on rerun it works. |
Hi there,
Terraform Version
0.12.12
apigee provider 0.17
Terraform Configuration Files
Use the examples, but explode a proxy zip into ~/proxy_files
Expected Behavior
It actually works...
Actual Behavior
Steps to Reproduce
do the hello world code, explode a proxy into the ~/proxy_files dir
Important Factoids
Note that this is not a new apigee tenancy, this is me trying to bring automation to the existing tenancy.
The text was updated successfully, but these errors were encountered: