-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
terraform show -json
crash
#21415
Comments
This seems high-level similar to #21314. This is not in the same part of the codebase, but maybe the solution is similar. |
I took a quick peek at the relevant part of the code based on the stack trace, which is in the vicinity of this snippet: terraform/command/jsonplan/plan.go Lines 213 to 227 in f68673f
I suspect the problem is occurring with that I'm not sure if this is a bug in |
I'm thinking about having a look into this issue, but I have never contributed to an open source project before or written any go, so it may take me a bit :p edit: if someone else wants to look into this as well, go ahead. Since I will probably be slow at fixing it. |
I just hit this as well, using Terraform Enterprise. I'm glad to know that it's not just me. |
I'm still fighting with this issue. Check node_cname below, it's either a list of strings or an empty list. I built commit ff9235c which should contain the fix. panic: inconsistent list element types ( https://gist.github.com/marcsauter/4c8177522cd4520ac5ef2e4a957be50a |
Hi @marcsauter ! |
Hi @mildwonkey |
Thank you very much (and sorry again!) for the additional validation @marcsauter! |
Having a similar issue hopefully your PR will solve this problem @mildwonkey. My stack trace is slightly different, but similar issues ; |
Hi, I'm currently facing this issue too.
panic: inconsistent list element types (cty.Object(map[string]cty.Type{"application_id":cty.Bool, "certificate_permissions":cty.List(cty.String), "key_permissions":cty.List(cty.String), "object_id":cty.Bool, "secret_permissions":cty.List(cty.Bool), "storage_permissions":cty.List(cty.String), "tenant_id":cty.Bool}) then cty.Object(map[string]cty.Type{"application_id":cty.Bool, "certificate_permissions":cty.List(cty.Bool), "key_permissions":cty.List(cty.Bool), "object_id":cty.Bool, "secret_permissions":cty.List(cty.Bool), "storage_permissions":cty.List(cty.String), "tenant_id":cty.Bool})) goroutine 1 [running]: @mildwonkey : What are we supposed to do right now ? This step is crucial for our pipeline. Thanks |
I understand that this is frustrating and I apologize to everyone running into it! If you are experiencing this issue, as a workaround you can choose from the following:
I am leaving this open so it's easy to find for others experiencing the same bug but I believe it is fixed in master. There is also similar-looking crash that's occurring in the config rendering that you can follow here: #21543 |
Hi, The 0.11.14 does not support -json switch. Is this expected ? Samir |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This was originally reported in the terraform-provider-aws repository as Issue 8754
I am copying @amh-mw's report from there.
Community Note
Terraform Version
Terraform v0.12.0
Affected Resource(s)
Terraform Configuration Files
Apologies for any typos; manual redactions.
Debug Output
Could be provided on request. HCL above is a rather small excerpt of a larger whole.
Panic Output
https://gist.github.com/amh-mw/d09d28a26ef43c2ac0843434023aca6d
Expected Behavior
No crash.
Actual Behavior
Crash.
Steps to Reproduce
terraform plan
Important Factoids
Just upgraded from 0.11.4 to 0.12.0 per https://www.terraform.io/upgrade-guides/0-12.html
Running against TFE/d377923
I deleted all egress/ingress stanzas and ran plan again, same crash.
References
The text was updated successfully, but these errors were encountered: