{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/17835","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/17835/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/17835/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/17835/events","html_url":"https://github.com/hashicorp/terraform/issues/17835","id":313225346,"number":17835,"title":"Diffs didn't match during apply","user":{"login":"xocasdashdash","id":6722159,"avatar_url":"https://avatars0.githubusercontent.com/u/6722159?v=4","gravatar_id":"","url":"https://api.github.com/users/xocasdashdash","html_url":"https://github.com/xocasdashdash","followers_url":"https://api.github.com/users/xocasdashdash/followers","following_url":"https://api.github.com/users/xocasdashdash/following{/other_user}","gists_url":"https://api.github.com/users/xocasdashdash/gists{/gist_id}","starred_url":"https://api.github.com/users/xocasdashdash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xocasdashdash/subscriptions","organizations_url":"https://api.github.com/users/xocasdashdash/orgs","repos_url":"https://api.github.com/users/xocasdashdash/repos","events_url":"https://api.github.com/users/xocasdashdash/events{/privacy}","received_events_url":"https://api.github.com/users/xocasdashdash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-11T08:38:55Z","updated_at":"2018-04-11T10:11:23Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nHi there,\r\n\r\nThank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.\r\n\r\nIf your issue relates to a specific Terraform provider, please open it in the provider's own repository. The index of providers is at https://github.com/terraform-providers .\r\n-->\r\n\r\n### Terraform Version\r\n\r\n```\r\nTerraform v0.11.6\r\n+ provider.null v1.0.0\r\n+ provider.openstack v1.3.0\r\n+ provider.random v1.2.0\r\n+ provider.template v1.0.0\r\n```\r\n\r\n### Terraform Configuration Files\r\nThis is the config that is triggering the crash\r\n```hcl\r\n\r\n  scheduler_hints {\r\n    group = \"${var.instance_group}\"\r\n  }\r\n\r\n  metadata = \"${merge(\r\n            map(\"managed\", \"true\", \"name\", \"${var.number_of_instances == 1 ? upper(var.instance_name) : \"${upper(var.instance_name)}-${count.index+1}\"}\", \"group\", \"managed_instances\",\"az\", \"${var.availability_zone == \"\" ? \r\n    lookup(var.availability_zone_map, element(\r\n      split(\",\",var.availability_zones[var.datacenter_name]), (count.index+random_integer.az_start.result) % length(split(\",\",var.availability_zones[var.datacenter_name]))\r\n      ))\r\n     : var.availability_zone\r\n  }\"),var.extra_metadata)}\"\r\n```\r\nIt first started happening when I added the scheduler_hints variable and now it's happening with the metadata map.\r\n### Debug Output\r\nI can't produce it, if I re-run terraform plan it tries to nuke the current infra and recreate it, exactly like if i had tainted it. It should have done that when I added the random az, but it didn't and know it is picking up that change. \r\n\r\n### Crash Output\r\nhttps://gist.github.com/xocasdashdash/e13b1083f34bddb6cdb7a9227c16c07a\r\n### Expected Behavior\r\nTerraform should have picked up the availability zone change, show that some resources would be created and destroyed and if i had chosen to apply that plan go on with that.\r\n### Actual Behaviour\r\nIt first picked up the changed as if they were modification in place even if it's a change of availaibility zone which should not happen.\r\n\r\n### Steps to Reproduce\r\nterraform plan -out=tfplan\r\nterraform apply tfplan\r\n\r\n### Additional Context\r\nWe're using openstack as our IaaS. It might be an issue with the openstack provider but the output log said to post it here. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/380400496","html_url":"https://github.com/hashicorp/terraform/issues/17835#issuecomment-380400496","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/17835","id":380400496,"user":{"login":"xocasdashdash","id":6722159,"avatar_url":"https://avatars0.githubusercontent.com/u/6722159?v=4","gravatar_id":"","url":"https://api.github.com/users/xocasdashdash","html_url":"https://github.com/xocasdashdash","followers_url":"https://api.github.com/users/xocasdashdash/followers","following_url":"https://api.github.com/users/xocasdashdash/following{/other_user}","gists_url":"https://api.github.com/users/xocasdashdash/gists{/gist_id}","starred_url":"https://api.github.com/users/xocasdashdash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xocasdashdash/subscriptions","organizations_url":"https://api.github.com/users/xocasdashdash/orgs","repos_url":"https://api.github.com/users/xocasdashdash/repos","events_url":"https://api.github.com/users/xocasdashdash/events{/privacy}","received_events_url":"https://api.github.com/users/xocasdashdash/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T10:11:22Z","updated_at":"2018-04-11T10:11:22Z","author_association":"NONE","body":"Here you'll find attached the logs. I've encrypted them with the public key present here: https://keybase.io/hashicorp\r\n\r\n[log_output.encrypted.gz](https://github.com/hashicorp/terraform/files/1898335/log_output.encrypted.gz)\r\n"}}
{"actor":{"display_login":"xocasdashdash"}}