{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/16078","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/16078/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/16078/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/16078/events","html_url":"https://github.com/ansible/ansible/issues/16078","id":157810435,"number":16078,"title":"Unarchive Fails To List Files In TGZ From FAT FS","user":{"login":"DaytonG","id":1189470,"avatar_url":"https://avatars.githubusercontent.com/u/1189470?v=3","gravatar_id":"","url":"https://api.github.com/users/DaytonG","html_url":"https://github.com/DaytonG","followers_url":"https://api.github.com/users/DaytonG/followers","following_url":"https://api.github.com/users/DaytonG/following{/other_user}","gists_url":"https://api.github.com/users/DaytonG/gists{/gist_id}","starred_url":"https://api.github.com/users/DaytonG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaytonG/subscriptions","organizations_url":"https://api.github.com/users/DaytonG/orgs","repos_url":"https://api.github.com/users/DaytonG/repos","events_url":"https://api.github.com/users/DaytonG/events{/privacy}","received_events_url":"https://api.github.com/users/DaytonG/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-01T02:26:58Z","updated_at":"2016-07-11T04:31:17Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nvagrant@vagrant-ubuntu-trusty-64:/vagrant$ ansible --version\r\nansible 2.1.0.0\r\n  config file = environments/devlocal/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\n\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\nUbuntu 14.04 (vagrant VM)\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nWhen upgrading from 2.0.2 to 2.1, I notice that the same VM now fails to use the unarchive module. I'm given the following error:\r\n```==> default: fatal: [127.0.0.1]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Failed to find handler for \\\"/tmp/apache-activemq-5.10.0-bin.tar.gz\\\". Make sure the required command to extract the file is installed.\"}```\r\n\r\nBut with some digging (and tweaking) noticed the actual error is:\r\n```__main__.UnarchiveError: ('Unable to list files in the archive %s: %s', ('/tmp/apache-activemq-5.10.0-bin.tar.gz', 'invalid header'))```\r\n\r\nThe tar unarchives properly with `tar xvfz`, and files list properly with `tar -tvf`\r\n\r\nI also noticed that downloading the file first, then using unarchive yields identical results. So I don't think the download portion is the issue.\r\n\r\nIn fact, digging through the commits, this jumps out at me: https://github.com/ansible/ansible-modules-core/commit/82aeaed45d5a283a15e8f62dd641b67d04e9876e#diff-c8620ce6bed12fc5110958c7607f1b03\r\n\r\nThe commit swaps from using a run_command to using a native python file object.\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\ntasks:\r\n  - name: download and unarchive tar\r\n    unarchive: src=http://archive.apache.org/dist/activemq/5.10.0/apache-activemq-5.10.0-bin.tar.gz dest=/tmp copy=no\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\n\r\nFile should be downloaded an unarchived.\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nThe file downloads, but then fails to get unarchived.\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n==> default: TASK [activemq : download and unarchive tar] ***********************************\r\n==> default: task path: /vagrant/roles/activemq/tasks/install.yml:14\r\n==> default: fatal: [127.0.0.1]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Failed to find handler for \\\"/tmp/apache-activemq-5.10.0-bin.tar.gz\\\". Make sure the required command to extract the file is installed.\"}\r\n==> default: \tto retry, use: --limit @site.retry\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/231640004","html_url":"https://github.com/ansible/ansible/issues/16078#issuecomment-231640004","issue_url":"https://api.github.com/repos/ansible/ansible/issues/16078","id":231640004,"user":{"login":"andrewrothstein","id":1834894,"avatar_url":"https://avatars.githubusercontent.com/u/1834894?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewrothstein","html_url":"https://github.com/andrewrothstein","followers_url":"https://api.github.com/users/andrewrothstein/followers","following_url":"https://api.github.com/users/andrewrothstein/following{/other_user}","gists_url":"https://api.github.com/users/andrewrothstein/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrothstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrothstein/subscriptions","organizations_url":"https://api.github.com/users/andrewrothstein/orgs","repos_url":"https://api.github.com/users/andrewrothstein/repos","events_url":"https://api.github.com/users/andrewrothstein/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrothstein/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T04:31:17Z","updated_at":"2016-07-11T04:31:17Z","body":"using centos7, python 2.7.5. this similarly stopped working for me with v2.1. about to downgrade."}}
{"actor":{"display_login":"andrewrothstein"}}