-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
cloudstack_firewall fails with json: unmarshal error #14044
Comments
here's the statefile: https://gist.github.com/samzehnder/7d2f2c79b4b6afe7d4101eebe47bb1ed |
@samzehnder I noticed you already supplied a patch to the Thanks and I'll get back to you shortly! |
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. |
Hi there,
I run in an error when using the cloudstack_firewall ressource. The configuration is applied correctly but it seems like terraform fails to parse the state and fails with the error:
Error refreshing state: 1 error(s) occurred:
Terraform Version
Terraform v0.9.4
Affected Resource(s)
Terraform Configuration Files
Debug Output
not much more than this:
cloudstack_firewall.default: Refreshing state... (ID: 6be820f2-3e34-40da-9de8-0f323b4a4a89)
2017/04/27 18:32:02 [ERROR] root: eval: *terraform.EvalRefresh, err: cloudstack_firewall.default: json: cannot unmarshal string into Go struct field FirewallRule.startport of type int
2017/04/27 18:32:02 [ERROR] root: eval: *terraform.EvalSequence, err: cloudstack_firewall.default: json: cannot unmarshal string into Go struct field FirewallRule.startport of type int
2017/04/27 18:32:02 [TRACE] [walkRefresh] Exiting eval tree: cloudstack_firewall.default
2017/04/27 18:32:02 [DEBUG] dag/walk: upstream errored, not walking "provider.cloudstack (close)"
Error refreshing state: 1 error(s) occurred:
2017/04/27 18:32:02 [DEBUG] plugin: waiting for all plugin processes to complete...
2017/04/27 18:32:02 [DEBUG] plugin: terraform: cloudstack-provider (internal) 2017/04/27 18:32:02 [DEBUG] plugin: waiting for all plugin processes to complete...
2017/04/27 18:32:02 [DEBUG] plugin: /usr/local/bin/terraform: plugin process exited
Expected Behavior
Firewallrules are applied, state is updated and can be processed further by terraform
Actual Behavior
Firewallrules are applied, state cannot be read by further terraform plan/apply runs
Steps to Reproduce
terraform apply
=> error occursterraform plan
=> error occursThe text was updated successfully, but these errors were encountered: