{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-vault/issues/75","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vault","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vault/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vault/issues/75/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vault/issues/75/events","html_url":"https://github.com/terraform-providers/terraform-provider-vault/issues/75","id":297600239,"number":75,"title":"Terraform v0.11.3 crashes trying to plan changes to vault 0.9.3","user":{"login":"hashibot[bot]","id":35615658,"avatar_url":"https://avatars2.githubusercontent.com/in/8332?v=4","gravatar_id":"","url":"https://api.github.com/users/hashibot%5Bbot%5D","html_url":"https://github.com/apps/hashibot","followers_url":"https://api.github.com/users/hashibot%5Bbot%5D/followers","following_url":"https://api.github.com/users/hashibot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/hashibot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/hashibot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashibot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/hashibot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/hashibot%5Bbot%5D/repos","events_url":"https://api.github.com/users/hashibot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/hashibot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-15T21:20:01Z","updated_at":"2018-02-28T10:33:20Z","closed_at":null,"author_association":"NONE","body":"_This issue was originally opened by @burdandrei as hashicorp/terraform#17346. It was migrated here as a result of the [provider split](https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10/). The original body of the issue is below._\r\n\r\n<hr>\r\n\r\n### Terraform Version\r\n```\r\nTerraform v0.11.3\r\n+ provider.vault v1.0.0\r\n```\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"vault_generic_secret\" \"mysql-yotpodbnameprod-write\" {\r\n  path = \"admin/mysql-dbnameprod/roles/write\"\r\n\r\n  data_json = <<EOT\r\n{\r\n  \"creation_statements\": \"CREATE USER '{{name}}'@'%' IDENTIFIED BY '{{password}}';GRANT SELECT,INSERT,UPDATE,DELETE,EXECUTE,SHOW VIEW,CREATE,ALTER,REFERENCES,INDEX,CREATE VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,DROP,TRIGGER,CREATE TEMPORARY TABLES,LOCK TABLES ON dbnameprod.* TO '{{name}}'@'%';\",\r\n  \"db_name\": \"mysql\",\r\n  \"default_ttl\": 0,\r\n  \"max_ttl\": 0,\r\n  \"renew_statements\": \"\",\r\n  \"revocation_statements\": \"\",\r\n  \"rollback_statements\": \"\"\r\n}\r\nEOT\r\n\r\n  depends_on = [\"vault_mount.mysql-dbname\"]\r\n}\r\n\r\n...\r\n```\r\n\r\n### Debug Output\r\nhttps://gist.github.com/burdandrei/03651abab342d44594c75bd1d63b024d#file-plan-trace\r\n### Crash Output\r\nhttps://gist.github.com/burdandrei/03651abab342d44594c75bd1d63b024d#file-crash-log\r\n### Expected Behavior\r\nUpdate policies in Vault\r\n### Actual Behavior\r\nCrash\r\n\r\n### Additional Context\r\nIt Happened after Vault update  from 0.8.3 to 0.9.3\r\n\r\n### References\r\nNone"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-vault/issues/comments/369197451","html_url":"https://github.com/terraform-providers/terraform-provider-vault/issues/75#issuecomment-369197451","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-vault/issues/75","id":369197451,"user":{"login":"radeksimko","id":287584,"avatar_url":"https://avatars1.githubusercontent.com/u/287584?v=4","gravatar_id":"","url":"https://api.github.com/users/radeksimko","html_url":"https://github.com/radeksimko","followers_url":"https://api.github.com/users/radeksimko/followers","following_url":"https://api.github.com/users/radeksimko/following{/other_user}","gists_url":"https://api.github.com/users/radeksimko/gists{/gist_id}","starred_url":"https://api.github.com/users/radeksimko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radeksimko/subscriptions","organizations_url":"https://api.github.com/users/radeksimko/orgs","repos_url":"https://api.github.com/users/radeksimko/repos","events_url":"https://api.github.com/users/radeksimko/events{/privacy}","received_events_url":"https://api.github.com/users/radeksimko/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T10:33:20Z","updated_at":"2018-02-28T10:33:20Z","author_association":"CONTRIBUTOR","body":"Thanks for the report,\r\njust clipping out the relevant part of crash log here:\r\n\r\n```\r\n2018-02-14T11:51:59.916+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: panic: runtime error: invalid memory address or nil pointer dereference\r\n2018-02-14T11:51:59.916+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xa6dbbe]\r\n2018-02-14T11:51:59.916+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: \r\n2018-02-14T11:51:59.916+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: goroutine 764 [running]:\r\n2018-02-14T11:51:59.916+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: github.com/terraform-providers/terraform-provider-vault/vault.genericSecretResourceRead(0xc42019a770, 0xc01dc0, 0xc4203e0c00, 0x1, 0x113ae80)\r\n2018-02-14T11:51:59.916+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vault/vault/resource_generic_secret.go:153 +0x2ce\r\n2018-02-14T11:51:59.916+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: github.com/terraform-providers/terraform-provider-vault/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc420307680, 0xc42013c820, 0xc01dc0, 0xc4203e0c00, 0xc4202bf770, 0xc420370301, 0x80000000018)\r\n2018-02-14T11:51:59.916+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vault/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:321 +0x199\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: github.com/terraform-providers/terraform-provider-vault/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc42029d340, 0xc42013c7d0, 0xc42013c820, 0x7f1c31490000, 0x0, 0xd8)\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vault/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:284 +0x9a\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: github.com/terraform-providers/terraform-provider-vault/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Refresh(0xc4203c07e0, 0xc4203f6cc0, 0xc4203f6e00, 0x0, 0x0)\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: \t/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-vault/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:510 +0x4e\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: reflect.Value.call(0xc420273680, 0xc420138990, 0x13, 0xc2efcc, 0x4, 0xc4205b1f20, 0x3, 0x3, 0x4930d8, 0xc4203e6608, ...)\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: \t/usr/local/go/src/reflect/value.go:434 +0x906\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: reflect.Value.Call(0xc420273680, 0xc420138990, 0x13, 0xc420033720, 0x3, 0x3, 0xc42003379e, 0xc420033798, 0x0)\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: \t/usr/local/go/src/reflect/value.go:302 +0xa4\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: net/rpc.(*service).call(0xc42037dc80, 0xc42013c280, 0xc4201310d0, 0xc42013ba00, 0xc42040f1e0, 0xace540, 0xc4203f6cc0, 0x16, 0xace580, 0xc4203f6e00, ...)\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: \t/usr/local/go/src/net/rpc/server.go:381 +0x142\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: created by net/rpc.(*Server).ServeCodec\r\n2018-02-14T11:51:59.917+0200 [DEBUG] plugin.terraform-provider-vault_v1.0.0_x4: \t/usr/local/go/src/net/rpc/server.go:475 +0x36b\r\n2018/02/14 11:51:59 [ERROR] root: eval: *terraform.EvalRefresh, err: vault_generic_secret.mysql-adsprod-readonly: unexpected EOF\r\n2018/02/14 11:51:59 [ERROR] root: eval: *terraform.EvalRefresh, err: vault_generic_secret.mongo-links-write: unexpected EOF\r\n2018/02/14 11:51:59 [ERROR] root: eval: *terraform.EvalRefresh, err: vault_generic_secret.mongo-links-readonly: unexpected EOF\r\n2018/02/14 11:51:59 [ERROR] root: eval: *terraform.EvalSequence, err: vault_generic_secret.mongo-links-readonly: unexpected EOF\r\n2018/02/14 11:51:59 [ERROR] root: eval: *terraform.EvalRefresh, err: vault_generic_secret.auth_aws_consul_server: unexpected EOF\r\n```"}}
{"actor":{"display_login":"radeksimko"}}