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

Crash when running terraform plan #1493

Closed
cvvs opened this issue Apr 11, 2015 · 8 comments
Closed

Crash when running terraform plan #1493

cvvs opened this issue Apr 11, 2015 · 8 comments
Labels

Comments

@cvvs
Copy link

cvvs commented Apr 11, 2015

When running terraform plan using the openstack provider, terraform crashes with the error noted at the bottom. I suspect this is due to a misconfiguration on my part. I has just added the following configuration to an openstack instance resource:

network = [ "${openstack_networking_network_v2.network-floating.id}", 
               "${openstack_networking_network_v2.network-internal.id}"]

I'm new to terraform, so I'm sure this configuration directive is wrong, but the crash dump suggested that I report this.

2015/04/11 11:05:58 [DEBUG] root: eval: *terraform.EvalInstanceInfo
2015/04/11 11:05:58 [DEBUG] root: eval: terraform.EvalNoop
2015/04/11 11:05:58 [DEBUG] root: eval: terraform.EvalNoop
2015/04/11 11:05:58 [DEBUG] root: eval: terraform.EvalNoop
2015/04/11 11:05:58 [DEBUG] root: eval: terraform.EvalNoop
2015/04/11 11:05:58 terraform-provider-openstack: panic: Unknown kind: string
2015/04/11 11:05:58 terraform-provider-openstack:
2015/04/11 11:05:58 terraform-provider-openstack: goroutine 35 [running]:
2015/04/11 11:05:58 terraform-provider-openstack: github.com/hashicorp/terraform/terraform.(*ResourceConfi
g).get(0xc2080d9a10, 0xc2083542c0, 0xe, 0xc2080d9a70, 0x0, 0x0, 0x19dd00)
2015/04/11 11:05:58 terraform-provider-openstack:       /Users/anonymous/Documents/development/go/gopath/s
rc/github.com/hashicorp/terraform/terraform/resource.go:203 +0x6b0
2015/04/11 11:05:58 terraform-provider-openstack: github.com/hashicorp/terraform/terraform.(*ResourceConfi
g).Get(0xc2080d9a10, 0xc2083542c0, 0xe, 0x0, 0x0, 0xc2083542c0)
2015/04/11 11:05:58 terraform-provider-openstack:       /Users/anonymous/Documents/development/go/gopath/s
rc/github.com/hashicorp/terraform/terraform/resource.go:134 +0xb3
2015/04/11 11:05:58 terraform-provider-openstack: github.com/hashicorp/terraform/helper/schema.schemaMap.v
alidate(0xc2080d8e70, 0xc2083542c0, 0xe, 0xc208052b00, 0xc2080d9a10, 0x0, 0x0, 0x0, 0x0, 0x0, ...)

Update: I've figured out how to properly configure the networks.

@cvvs
Copy link
Author

cvvs commented Apr 11, 2015

Crashlog gist: https://gist.github.com/cvvs/4efa40d842ec843cf18d

Updated: put crashlog in gist

@jtopjian
Copy link
Contributor

Are you still having problems with this or per your Update note, were you able to resolve it? If you're still having a problem, can you post a sanitized version of your tf file to a gist?

@cvvs
Copy link
Author

cvvs commented Apr 13, 2015

There was a configuration error which caused to crash, so my problem is resolved.

I left it open because I expected a syntax or parsing error instead of a crash. I've no problem closing this if crashes due to silly human tricks are not bugs.

@jtopjian
Copy link
Contributor

Understood 😄

@catsby since this isn't an issue specific to OpenStack, could the label be changed? Or could someone weigh in on the comment?

@catsby
Copy link
Contributor

catsby commented Apr 13, 2015

No problem changing it, though I would like to know what kind of configuration error caused this. @cvvs can you expand there? Just want to make sure it's not a symptom of a larger issue

@cvvs
Copy link
Author

cvvs commented Apr 13, 2015

Hey, @catsby,

I was configuring an openstack instance resource. I added the following configuration directive to the resource:

resource "openstack_compute_instance_v2" "foo" {
    ...
    network = [ "${openstack_networking_network_v2.network-floating.id}", 
               "${openstack_networking_network_v2.network-internal.id}"]
    ...
}   

Which caused the crash noted above. The correct--or at least working--configuration directive is:

resource "openstack_compute_instance_v2" "foo" {
    ...       
    network { uuid="${openstack_networking_network_v2.network-floating.id}" }
    network { uuid="${openstack_networking_network_v2.network-internal.id}" }
    ...
}

@mitchellh
Copy link
Contributor

This is fixed now!

@ghost
Copy link

ghost commented May 2, 2020

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.

@ghost ghost locked and limited conversation to collaborators May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants