{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/9952","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/9952/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/9952/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/9952/events","html_url":"https://github.com/hashicorp/terraform/issues/9952","id":187985764,"number":9952,"title":"openstack_compute_floatingip_v2 always recreates FIP when using pool id instead pool name","user":{"login":"Kiemes","id":13349924,"avatar_url":"https://avatars.githubusercontent.com/u/13349924?v=3","gravatar_id":"","url":"https://api.github.com/users/Kiemes","html_url":"https://github.com/Kiemes","followers_url":"https://api.github.com/users/Kiemes/followers","following_url":"https://api.github.com/users/Kiemes/following{/other_user}","gists_url":"https://api.github.com/users/Kiemes/gists{/gist_id}","starred_url":"https://api.github.com/users/Kiemes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kiemes/subscriptions","organizations_url":"https://api.github.com/users/Kiemes/orgs","repos_url":"https://api.github.com/users/Kiemes/repos","events_url":"https://api.github.com/users/Kiemes/events{/privacy}","received_events_url":"https://api.github.com/users/Kiemes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-08T13:00:28Z","updated_at":"2016-11-08T13:00:28Z","closed_at":null,"body":"\r\n### Terraform Version\r\n0.7.9\r\n\r\n### Affected Resource(s)\r\nopenstack_compute_floatingip_v2\r\n\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"openstack_compute_floatingip_v2\" \"lifecycle_floating_ip\" {\r\n  region = \"${var.region_name}\"\r\n  pool   = \"${var.ext_net_id}\"\r\n}\r\n```\r\n\r\n### Expected/Actual Behavior\r\nWe know that according to the [documentation](https://www.terraform.io/docs/providers/openstack/r/compute_floatingip_v2.html) the pool value should be a pool name and not the pool id as we used it by mistake. When using the pool id, the FIP is created correctly as the [OpenStack API](http://developer.openstack.org/api-ref/compute/?expanded=create-allocate-floating-ip-address-detail) also allows a pool id (even if not mentioned explicitly). But it is recreated on every run of `terraform  apply` and not  just kept as it is, when it's already there.\r\n\r\nExpected behavior would be that there either is an error message when a non-existent name is used (such as the pool id), or that the state check works with the id as well, and the floating IP is not recreated when it already exists.\r\n\r\n\r\n### Steps to Reproduce\r\nPlease list the steps required to reproduce the issue, for example:\r\n1. `terraform apply` with a configuration containing a floating IP  and the pool referenced with the id\r\n2. `terraform apply` on the same configuration\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"Kiemes"}}