-
Notifications
You must be signed in to change notification settings - Fork 99
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
DXE-4439 Provider produced inconsistent final plan for .version when using version akamai_property.latest_version in activation #594
Comments
Quick update, I reverted to 6.3.0 and did not face this error. Hope that helps to pin down where this issue is coming from. |
Hi @DhroovP Thanks for reporting it. We are looking into that. Could you also tell us what other resource are you using in your configuration? Are you using akamai_property_rules_builder or json based rules? BR, |
Hi @lsadlon I am using the akamai_property_rules_template resource with JSON files. Let me know if I can provide any other information. Thanks, |
This comment was marked as resolved.
This comment was marked as resolved.
Hi @DhroovP , instead of :
You can use :
There is an issue with .latest_version ... |
Hi @lsadlon, Do we know why the production_version and staging_version values in the Tfstate are not the same as the latest_version? Please see the screenshot for reference. Note : that both staging & production are activated on the latest version (so they should be equal to 1) Regards, |
Hi @chouraamine I created internal ticket to investigate this issue. We will come back after we investigation. BR, |
Hi @DhroovP, We have difficulties to reproduce the problem you write about. Could you please provide more details about what exactly you are changing in the property? In particular, do the changes involve:
Thanks, |
Hi @chouraamine, What you are describing is unfortunately a well-known, although slightly different, problem. Please check out this thread with a broader discussion and possible workarounds: #560. |
Hey @artbookspirit We are just changing things like contact (under the property activation resource), and some of the JSONs that we reference in this property.
This is referenced in the akamai_property resource using
Additionally, we use the variable
in the akamai_property resource, but that's basically it. We supply this via the Github commit message and pass it through our Github Actions pipeline. So, to directly answer the question, we do not change the hostname or the rule format, but we use version_notes the way it's done shown above so those always involve a change (in a way, I guess), and we do indeed make changes in the rules. The variable blocks that are put into the rules template block don't reference other resources, they come directly from our variables.tf and dev/prod.tfvars files. Hope this helps, let me know if I can provide any more information, and sorry for the late response. Thanks, |
Seeing this bug (seems related to this) when I'm running
terraform apply
:This seems to happen when there are minor changes in the property, and a new version has to be created and then activated. My resource is:
Terraform and Akamai Terraform Provider Versions
Initializing provider plugins...
Affected Resource(s)
Expected Behavior
Latest version should have been activated in production.
Actual Behavior
Inconsistent final plan error.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
with extra arguments:-var activate_latest_on_staging=false -var activate_latest_on_production=true
with minor changes in the property itself (along with the version logic in the akamai_property_activation resource above)The text was updated successfully, but these errors were encountered: