{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2928","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2928/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2928/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2928/events","html_url":"https://github.com/mitchellh/packer/issues/2928","id":115994904,"number":2928,"title":"openstack builder does not reauthorize expired API tokens","user":{"login":"jhoblitt","id":948901,"avatar_url":"https://avatars.githubusercontent.com/u/948901?v=3","gravatar_id":"","url":"https://api.github.com/users/jhoblitt","html_url":"https://github.com/jhoblitt","followers_url":"https://api.github.com/users/jhoblitt/followers","following_url":"https://api.github.com/users/jhoblitt/following{/other_user}","gists_url":"https://api.github.com/users/jhoblitt/gists{/gist_id}","starred_url":"https://api.github.com/users/jhoblitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhoblitt/subscriptions","organizations_url":"https://api.github.com/users/jhoblitt/orgs","repos_url":"https://api.github.com/users/jhoblitt/repos","events_url":"https://api.github.com/users/jhoblitt/events{/privacy}","received_events_url":"https://api.github.com/users/jhoblitt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/openstack","name":"builder/openstack","color":"d4c5f9"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-09T23:56:43Z","updated_at":"2015-11-10T16:08:21Z","closed_at":null,"body":"With packer 0.8.6 and the openstack builder, I've hit keystone API token timeouts due to a really short expiration period (1hour).\r\n\r\n```\r\n==> openstack-centos-7: Error terminating server, may still be around: Expected HTTP response code [202 204] when accessing [DELETE http://XXX.XXX:8774/v2/8c1ba1e0b84d486fbe7a665c30030113/servers/aacabacd-e0bc-4a4b-9892-0f2e474727c5], but got 401 instead\r\n\r\n==> openstack-centos-7: Authentication required\r\n```\r\n\r\nThe HTTP 401 is supposed to be a hint to the client to reauthorize and retry.  It sounds like this is already implemented in gophercloud (https://developer.rackspace.com/blog/gophercloud-update/)."},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/155466893","html_url":"https://github.com/mitchellh/packer/issues/2928#issuecomment-155466893","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/2928","id":155466893,"user":{"login":"jhoblitt","id":948901,"avatar_url":"https://avatars.githubusercontent.com/u/948901?v=3","gravatar_id":"","url":"https://api.github.com/users/jhoblitt","html_url":"https://github.com/jhoblitt","followers_url":"https://api.github.com/users/jhoblitt/followers","following_url":"https://api.github.com/users/jhoblitt/following{/other_user}","gists_url":"https://api.github.com/users/jhoblitt/gists{/gist_id}","starred_url":"https://api.github.com/users/jhoblitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhoblitt/subscriptions","organizations_url":"https://api.github.com/users/jhoblitt/orgs","repos_url":"https://api.github.com/users/jhoblitt/repos","events_url":"https://api.github.com/users/jhoblitt/events{/privacy}","received_events_url":"https://api.github.com/users/jhoblitt/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T16:08:21Z","updated_at":"2015-11-10T16:08:21Z","body":"@markpeek The project wide token API expatriation value was just pushed up to 4hours.  What I'll do is run a \"build\" over night with a ~9 hour sleep in it under your patch concurrently with the official 0.8.6 binary as a control."}}