{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/820","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/820/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/820/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/820/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/820","id":58174443,"number":820,"title":"glance_image not idempotent","user":{"login":"peterjenkins1","id":6830209,"avatar_url":"https://avatars.githubusercontent.com/u/6830209?v=3","gravatar_id":"","url":"https://api.github.com/users/peterjenkins1","html_url":"https://github.com/peterjenkins1","followers_url":"https://api.github.com/users/peterjenkins1/followers","following_url":"https://api.github.com/users/peterjenkins1/following{/other_user}","gists_url":"https://api.github.com/users/peterjenkins1/gists{/gist_id}","starred_url":"https://api.github.com/users/peterjenkins1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterjenkins1/subscriptions","organizations_url":"https://api.github.com/users/peterjenkins1/orgs","repos_url":"https://api.github.com/users/peterjenkins1/repos","events_url":"https://api.github.com/users/peterjenkins1/events{/privacy}","received_events_url":"https://api.github.com/users/peterjenkins1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-19T06:55:30Z","updated_at":"2016-05-17T18:08:26Z","closed_at":null,"body":"glance_image not idempotent which results in one duplicate image for each playbook run.\r\n\r\nThis looks like a problem with https://github.com/ansible/ansible-modules-core/blob/3799ca48ea34bb3e5bc4c200e9d3aa9d357c016e/cloud/openstack/glance_image.py#L211\r\n\r\nSpecifically 'client.images.list()' in v1 of the glance API seems to only return a list of images from the current tenant, even for admins. Changing the module to use the v2 api for this call would fix this issue, but using v2 for the whole module will break other things."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/219804159","html_url":"https://github.com/ansible/ansible-modules-core/issues/820#issuecomment-219804159","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/820","id":219804159,"user":{"login":"emonty","id":95156,"avatar_url":"https://avatars.githubusercontent.com/u/95156?v=3","gravatar_id":"","url":"https://api.github.com/users/emonty","html_url":"https://github.com/emonty","followers_url":"https://api.github.com/users/emonty/followers","following_url":"https://api.github.com/users/emonty/following{/other_user}","gists_url":"https://api.github.com/users/emonty/gists{/gist_id}","starred_url":"https://api.github.com/users/emonty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emonty/subscriptions","organizations_url":"https://api.github.com/users/emonty/orgs","repos_url":"https://api.github.com/users/emonty/repos","events_url":"https://api.github.com/users/emonty/events{/privacy}","received_events_url":"https://api.github.com/users/emonty/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T18:08:26Z","updated_at":"2016-05-17T18:08:26Z","body":"glance_image is old, broken and deprecated. I highly recommend moving to os_image."}}