{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1784","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1784/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1784/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1784/events","html_url":"https://github.com/hashicorp/terraform/issues/1784","id":72768770,"number":1784,"title":"OpenStack: plan always shows changes to resource","user":{"login":"JeanMertz","id":383250,"avatar_url":"https://avatars.githubusercontent.com/u/383250?v=3","gravatar_id":"","url":"https://api.github.com/users/JeanMertz","html_url":"https://github.com/JeanMertz","followers_url":"https://api.github.com/users/JeanMertz/followers","following_url":"https://api.github.com/users/JeanMertz/following{/other_user}","gists_url":"https://api.github.com/users/JeanMertz/gists{/gist_id}","starred_url":"https://api.github.com/users/JeanMertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeanMertz/subscriptions","organizations_url":"https://api.github.com/users/JeanMertz/orgs","repos_url":"https://api.github.com/users/JeanMertz/repos","events_url":"https://api.github.com/users/JeanMertz/events{/privacy}","received_events_url":"https://api.github.com/users/JeanMertz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/openstack","name":"provider/openstack","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-03T08:00:42Z","updated_at":"2015-05-14T14:27:13Z","closed_at":null,"body":"What happens:\r\n\r\n* I plan a specific (OpenStack) resource\r\n* I apply the plan\r\n* I plan the same resource\r\n* **Terraform tells me changes are needed**\r\n\r\nWhat I expected to happen:\r\n\r\n* I plan a specific (OpenStack) resource\r\n* I apply the plan\r\n* I plan the same resource\r\n* **No changes should be needed**\r\n\r\nA couple of notes:\r\n\r\n* This seems to be related to default values that I haven't set explicitly (see\r\n  resource below)\r\n* I've noticed this with other (but not all) OpenStack resources as well\r\n* I have been working on a new resource (`openstack_networking_port_v2`), and\r\n  have noticed that (some/all) OpenStack Go tests never fail, even when changing\r\n  their expected outcomes\r\n\r\n```ini\r\nresource \"openstack_networking_router_v2\" \"blendle\" {\r\n  name = \"blendle\"\r\n  region = \"${var.os_region}\"\r\n  external_gateway = \"00000000-0000-0000-0000-000000000000\"\r\n}\r\n```\r\n\r\n```\r\n$ terraform plan -var 'os_password=xxx' -var-file staging.tfvars -state staging.tfstate -out staging.plan -target openstack_networking_router_v2.blendle\r\nRefreshing Terraform state prior to plan...\r\n\r\n\r\nThe Terraform execution plan has been generated and is shown below.\r\nResources are shown in alphabetical order for quick scanning. Green resources\r\nwill be created (or destroyed and then created if an existing resource\r\nexists), yellow resources are being changed in-place, and red resources\r\nwill be destroyed.\r\n\r\nYour plan was also saved to the path below. Call the \"apply\" subcommand\r\nwith this plan file and Terraform will exactly execute this execution\r\nplan.\r\n\r\nPath: staging.plan\r\n\r\n+ openstack_networking_router_v2.blendle\r\n    external_gateway: \"\" => \"00000000-0000-0000-0000-000000000000\"\r\n    name:             \"\" => \"blendle\"\r\n    region:           \"\" => \"NL\"\r\n```\r\n\r\n```\r\n$ terraform apply -state staging.tfstate staging.plan\r\nopenstack_networking_router_v2.blendle: Creating...\r\n  external_gateway: \"\" => \"00000000-0000-0000-0000-000000000000\"\r\n  name:             \"\" => \"blendle\"\r\n  region:           \"\" => \"NL\"\r\nopenstack_networking_router_v2.blendle: Creation complete\r\n\r\nApply complete! Resources: 1 added, 0 changed, 0 destroyed.\r\n\r\nThe state of your infrastructure has been saved to the path\r\nbelow. This state is required to modify and destroy your\r\ninfrastructure, so keep it safe. To inspect the complete state\r\nuse the `terraform show` command.\r\n\r\nState path: staging.tfstate\r\n```\r\n\r\n```\r\n$ terraform plan -var 'os_password=xxx' -var-file staging.tfvars -state staging.tfstate -out staging.plan -target openstack_networking_router_v2.blendle\r\nRefreshing Terraform state prior to plan...\r\n\r\nopenstack_networking_router_v2.blendle: Refreshing state... (ID: f110dd4a-0f96-4675-ade9-a2aa20d45514)\r\n\r\nThe Terraform execution plan has been generated and is shown below.\r\nResources are shown in alphabetical order for quick scanning. Green resources\r\nwill be created (or destroyed and then created if an existing resource\r\nexists), yellow resources are being changed in-place, and red resources\r\nwill be destroyed.\r\n\r\nYour plan was also saved to the path below. Call the \"apply\" subcommand\r\nwith this plan file and Terraform will exactly execute this execution\r\nplan.\r\n\r\nPath: staging.plan\r\n\r\n~ openstack_networking_router_v2.blendle\r\n    admin_state_up: \"true\" => \"\"\r\n    tenant_id:      \"yyy\" => \"\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/102052066","html_url":"https://github.com/hashicorp/terraform/issues/1784#issuecomment-102052066","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1784","id":102052066,"user":{"login":"jtopjian","id":46959,"avatar_url":"https://avatars.githubusercontent.com/u/46959?v=3","gravatar_id":"","url":"https://api.github.com/users/jtopjian","html_url":"https://github.com/jtopjian","followers_url":"https://api.github.com/users/jtopjian/followers","following_url":"https://api.github.com/users/jtopjian/following{/other_user}","gists_url":"https://api.github.com/users/jtopjian/gists{/gist_id}","starred_url":"https://api.github.com/users/jtopjian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtopjian/subscriptions","organizations_url":"https://api.github.com/users/jtopjian/orgs","repos_url":"https://api.github.com/users/jtopjian/repos","events_url":"https://api.github.com/users/jtopjian/events{/privacy}","received_events_url":"https://api.github.com/users/jtopjian/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T14:27:12Z","updated_at":"2015-05-14T14:27:12Z","body":"@dupuy awesome -- glad to hear things are working much better :smile: \r\n\r\nRegarding the floating IP / cloudflare issue, can you provide a sample Terraform config so I can reproduce it and work with it locally?\r\n\r\nRegarding security groups, this _might_ be fixed in #1848. I haven't had time to look into verifying that PR or trying to reproduce it on my end."}}