{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2189","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2189/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2189/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2189/events","html_url":"https://github.com/hashicorp/terraform/issues/2189","id":84060225,"number":2189,"title":"Openstack provider : after image upgrade, refresh fails","user":{"login":"fdebonneval","id":5792255,"avatar_url":"https://avatars.githubusercontent.com/u/5792255?v=3","gravatar_id":"","url":"https://api.github.com/users/fdebonneval","html_url":"https://github.com/fdebonneval","followers_url":"https://api.github.com/users/fdebonneval/followers","following_url":"https://api.github.com/users/fdebonneval/following{/other_user}","gists_url":"https://api.github.com/users/fdebonneval/gists{/gist_id}","starred_url":"https://api.github.com/users/fdebonneval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdebonneval/subscriptions","organizations_url":"https://api.github.com/users/fdebonneval/orgs","repos_url":"https://api.github.com/users/fdebonneval/repos","events_url":"https://api.github.com/users/fdebonneval/events{/privacy}","received_events_url":"https://api.github.com/users/fdebonneval/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"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":1,"created_at":"2015-06-02T14:55:27Z","updated_at":"2015-06-08T20:41:07Z","closed_at":null,"body":"Hi,\r\nI deployed a stack on our Openstack env, everything went well.\r\nOur ops team upgraded the Ubuntu image I used to boot my vms (image uuid changed).\r\nThe image ID changed so when terraform tried to refresh the local state file, I had an error because the original image was not available anymore in Glance catalog.\r\n\r\nI'am now stuck, neither \"plan\", \"destroy\", \"apply\" go through. It ends with the error :\r\n Error refreshing state: 5 error(s) occurred:\r\n\r\n* 1 error(s) occurred:\r\n\r\n* Expected HTTP response code [200] when accessing [GET https://compute.fr1.cloudwatt.com/v2/1b1286db216e403694802b41c4137182/images/cc2e31fc-c24d-4905-bb45-1d57794a4f3c], but got 404 instead\r\n{\"itemNotFound\": {\"message\": \"Image not found.\", \"code\": 404}}\r\n[...]"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/110132054","html_url":"https://github.com/hashicorp/terraform/issues/2189#issuecomment-110132054","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/2189","id":110132054,"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-06-08T20:41:07Z","updated_at":"2015-06-08T20:41:07Z","body":"@fdebonneval Did you use the UUID in your Terraform config? Or did you use a \"common\" name such as \"Ubuntu 14.04\"?\r\n\r\nMost cloud providers will keep the same \"common\" name when doing an image update. This way, though the UUID may change, the name used to reference the image stays the same.\r\n\r\nIf you used the UUID, you may be able to change it in the Terraform state file, but I'm not 100% sure about that.\r\n\r\nIf you didn't use the UUID, though, let me know. I'm quite curious to see why this error would occur and if it's possible to fix."}}