{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4802","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4802/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4802/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4802/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4802","id":176468529,"number":4802,"title":"TypeError: argument of type 'NoneType' is not iterable during docker image update","user":{"login":"Corni","id":70492,"avatar_url":"https://avatars0.githubusercontent.com/u/70492?v=4","gravatar_id":"","url":"https://api.github.com/users/Corni","html_url":"https://github.com/Corni","followers_url":"https://api.github.com/users/Corni/followers","following_url":"https://api.github.com/users/Corni/following{/other_user}","gists_url":"https://api.github.com/users/Corni/gists{/gist_id}","starred_url":"https://api.github.com/users/Corni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Corni/subscriptions","organizations_url":"https://api.github.com/users/Corni/orgs","repos_url":"https://api.github.com/users/Corni/repos","events_url":"https://api.github.com/users/Corni/events{/privacy}","received_events_url":"https://api.github.com/users/Corni/received_events","type":"User","site_admin":false},"labels":[{"id":437720272,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.0","name":"affects_2.0","color":"5319e7","default":false},{"id":132571937,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":132897218,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":397590879,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/docker","name":"docker","color":"e99695","default":false},{"id":414073372,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-12T19:55:30Z","updated_at":"2018-02-17T00:12:35Z","closed_at":"2016-10-05T15:47:41Z","author_association":"NONE","body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\n##### ISSUE TYPE\n\n<!--- Pick one below and delete the rest: -->\n- Bug Report\n##### COMPONENT NAME\n\n<!--- Name of the plugin/module/task -->\n\ndocker module\n##### ANSIBLE VERSION\n\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\n\n```\nroot@c51cf36122e4:/# ansible --version\nansible 2.0.2.0\n  config file = \n  configured module search path = Default w/o overrides\n```\n##### CONFIGURATION\n\n<!---\nMention any settings you have changed/added/removed in ansible.cfg\n(or using the ANSIBLE_* environment variables).\n-->\n##### OS / ENVIRONMENT\n\n<!---\nMention the OS you are running Ansible from, and the OS you are\nmanaging, or say “N/A” for anything that is not platform-specific.\n-->\n\nDebian Linux (both)\n##### SUMMARY\n\n<!--- Explain the problem briefly -->\n\nWhen updating a running docker container with a new image (which was pushed to the registry), since today we have encountered these errors:\nThey only go away when manually stopping the container and removing the image.\nThis happens on all 5 servers to which the same image is deployed.\nUnfortunately, I do not know if anything has changed in the setup, because at face it doesn't look like it, but a week ago the same ansible job worked.\n\nfatal: [somehostname.local]: FAILED! => {\"changed\": false, \"failed\": true, \"module_stderr\": \"\", \"module_stdout\": \"Traceback (most recent call last):\\r\\n  File \\\"/home/ansible/.ansible/tmp/ansible-tmp-1473707610.26-10297167272284/docker\\\", line 3701, in <module>\\r\\n    main()\\r\\n  File \\\"/home/ansible/.ansible/tmp/ansible-tmp-1473707610.26-10297167272284/docker\\\", line 1738, in main\\r\\n    reloaded(manager, containers, count, name)\\r\\n  File \\\"/home/ansible/.ansible/tmp/ansible-tmp-1473707610.26-10297167272284/docker\\\", line 1595, in reloaded\\r\\n    containers.refresh()\\r\\n  File \\\"/home/ansible/.ansible/tmp/ansible-tmp-1473707610.26-10297167272284/docker\\\", line 1529, in refresh\\r\\n    self.deployed = self.manager.get_deployed_containers()\\r\\n  File \\\"/home/ansible/.ansible/tmp/ansible-tmp-1473707610.26-10297167272284/docker\\\", line 1345, in get_deployed_containers\\r\\n    repo_tags = self.get_image_repo_tags()\\r\\n  File \\\"/home/ansible/.ansible/tmp/ansible-tmp-1473707610.26-10297167272284/docker\\\", line 1008, in get_image_repo_tags\\r\\n    if resource in image.get('RepoTags', []):\\r\\nTypeError: argument of type 'NoneType' is not iterable\\r\\n\", \"msg\": \"MODULE FAILURE\", \"parsed\": false}\n##### STEPS TO REPRODUCE\n\n<!---\nFor bugs, show exactly how to reproduce the problem.\nFor new features, show how the feature would be used.\n-->\n\n<!--- Paste example playbooks or commands between quotes below -->\n\n```\n\n```\n\nSince our setup is pretty involved and relies (besides other things) on our local docker registry, I can't really post an easy example playbook.\nIf this issue can't be fixed with the tracebooks provided or easy printf patches to the ansible source, I can invest time in reducing this, but this would be a non-trivial thing to do.\n\n<!--- You can also paste gist.github.com links for larger files -->\n##### EXPECTED RESULTS\n\n<!--- What did you expect to happen when running the steps above? -->\n##### ACTUAL RESULTS\n\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\n\n<!--- Paste verbatim command output between quotes below -->\n\n```\n\n```\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/366394917","html_url":"https://github.com/ansible/ansible-modules-core/issues/4802#issuecomment-366394917","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4802","id":366394917,"user":{"login":"seenickcode","id":75833,"avatar_url":"https://avatars2.githubusercontent.com/u/75833?v=4","gravatar_id":"","url":"https://api.github.com/users/seenickcode","html_url":"https://github.com/seenickcode","followers_url":"https://api.github.com/users/seenickcode/followers","following_url":"https://api.github.com/users/seenickcode/following{/other_user}","gists_url":"https://api.github.com/users/seenickcode/gists{/gist_id}","starred_url":"https://api.github.com/users/seenickcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seenickcode/subscriptions","organizations_url":"https://api.github.com/users/seenickcode/orgs","repos_url":"https://api.github.com/users/seenickcode/repos","events_url":"https://api.github.com/users/seenickcode/events{/privacy}","received_events_url":"https://api.github.com/users/seenickcode/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T00:12:35Z","updated_at":"2018-02-17T00:12:35Z","author_association":"NONE","body":"Right. I know that but it was not at all obvious that's what I was trying\nto say. Would be great if the site can be more explicit about\ntroublesome/better options for things that are deprecated.\n\nOn Fri, Feb 16, 2018 at 10:05 AM, Abhijeet Kasurde <notifications@github.com\n> wrote:\n\n> @seenickcode <https://github.com/seenickcode> Documentation does tell\n> about docker module deprecation - here\n> <https://docs.ansible.com/ansible/devel/modules/docker_module.html#deprecated>\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/ansible/ansible-modules-core/issues/4802#issuecomment-366260015>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAEoOdmEztcLGFD38YsD57CqTF5P81rqks5tVZksgaJpZM4J69yU>\n> .\n>\n"}}
{"actor":{"display_login":"seenickcode"}}