{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5760","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5760/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5760/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5760/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/5760","id":192313297,"number":5760,"title":"unarchive: unhelpful error message when \"owner\" does not exist and unarchiving tar.gz","user":{"login":"bart2","id":14372325,"avatar_url":"https://avatars0.githubusercontent.com/u/14372325?v=4","gravatar_id":"","url":"https://api.github.com/users/bart2","html_url":"https://github.com/bart2","followers_url":"https://api.github.com/users/bart2/followers","following_url":"https://api.github.com/users/bart2/following{/other_user}","gists_url":"https://api.github.com/users/bart2/gists{/gist_id}","starred_url":"https://api.github.com/users/bart2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bart2/subscriptions","organizations_url":"https://api.github.com/users/bart2/orgs","repos_url":"https://api.github.com/users/bart2/repos","events_url":"https://api.github.com/users/bart2/events{/privacy}","received_events_url":"https://api.github.com/users/bart2/received_events","type":"User","site_admin":false},"labels":[{"id":454885373,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.3","name":"affects_2.3","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":414073372,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-29T15:31:14Z","updated_at":"2017-09-11T11:21:11Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n- Bug Report\r\n\r\n##### COMPONENT NAME\r\nunarchive\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.3.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nN/A\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nWhen \"owner\" parameter is set to user that does not exist, and we are extracting tar.gz archive the module fails with unrelated error message: \"Unexpected error when accessing exploded file: [Errno 2] No such file or directory:\"\r\n\r\nInteresting note: when the file being archived has no extension, ie \"test\" instead of \"test.txt\" below, the issue does not occur.\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\nmkdir /tmp/unarchive_bug\r\n\r\ncd /tmp/unarchive_bug\r\n\r\nmkdir unarchived\r\n\r\necho \"test\" > test.txt\r\ntar cf testfile.tar test.txt\r\ngzip -9 testfile.tar\r\n\r\ncat <<'EOF' > unarchive_test.yml\r\n- hosts: localhost\r\n  tasks:\r\n    - name: unarchive test\r\n      unarchive:\r\n        copy: no\r\n        src: /tmp/unarchive_bug/testfile.tar.gz\r\n        dest: /tmp/unarchive_bug/unarchived\r\n        owner: doesnotexist\r\nEOF\r\n\r\nansible-playbook -c local unarchive_test.yml\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nFailure message that indicates that user \"doesnotexist\" does not exist.\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nTASK [unarchive test] **********************************************************************************************************************\r\nfatal: [localhost]: FAILED! => {\"changed\": false, \"dest\": \"/tmp/unarchive_bug/unarchived\", \"failed\": true, \"gid\": 0, \"group\": \"root\", \"handler\": \"TgzArchive\", \"mode\": \"0755\", \"msg\": \"Unexpected error when accessing exploded file: [Errno 2] No such file or directory: '/tmp/unarchive_bug/unarchived/test.txt'\", \"owner\": \"root\", \"size\": 21, \"src\": \"/tmp/unarchive_bug/testfile.tar.gz\", \"state\": \"directory\", \"uid\": 0}\r\n\tto retry, use: --limit @/tmp/unarchive_bug/unarchive_test.retry\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/328499851","html_url":"https://github.com/ansible/ansible-modules-core/issues/5760#issuecomment-328499851","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5760","id":328499851,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2017-09-11T11:21:11Z","updated_at":"2017-09-11T11:21:11Z","author_association":"NONE","body":"This issue was migrated to https://github.com/ansible/ansible/issues/29455\r\n"}}
{"actor":{"display_login":"ansibot"}}