{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3706","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3706/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3706/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3706/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3706","id":155748502,"number":3706,"title":"unarchive issue with ansible 2.1 rc3","user":{"login":"Yannig","id":277760,"avatar_url":"https://avatars.githubusercontent.com/u/277760?v=3","gravatar_id":"","url":"https://api.github.com/users/Yannig","html_url":"https://github.com/Yannig","followers_url":"https://api.github.com/users/Yannig/followers","following_url":"https://api.github.com/users/Yannig/following{/other_user}","gists_url":"https://api.github.com/users/Yannig/gists{/gist_id}","starred_url":"https://api.github.com/users/Yannig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yannig/subscriptions","organizations_url":"https://api.github.com/users/Yannig/orgs","repos_url":"https://api.github.com/users/Yannig/repos","events_url":"https://api.github.com/users/Yannig/events{/privacy}","received_events_url":"https://api.github.com/users/Yannig/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"}],"state":"closed","locked":false,"assignee":{"login":"abadger","id":209242,"avatar_url":"https://avatars.githubusercontent.com/u/209242?v=3","gravatar_id":"","url":"https://api.github.com/users/abadger","html_url":"https://github.com/abadger","followers_url":"https://api.github.com/users/abadger/followers","following_url":"https://api.github.com/users/abadger/following{/other_user}","gists_url":"https://api.github.com/users/abadger/gists{/gist_id}","starred_url":"https://api.github.com/users/abadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadger/subscriptions","organizations_url":"https://api.github.com/users/abadger/orgs","repos_url":"https://api.github.com/users/abadger/repos","events_url":"https://api.github.com/users/abadger/events{/privacy}","received_events_url":"https://api.github.com/users/abadger/received_events","type":"User","site_admin":false},"assignees":[{"login":"abadger","id":209242,"avatar_url":"https://avatars.githubusercontent.com/u/209242?v=3","gravatar_id":"","url":"https://api.github.com/users/abadger","html_url":"https://github.com/abadger","followers_url":"https://api.github.com/users/abadger/followers","following_url":"https://api.github.com/users/abadger/following{/other_user}","gists_url":"https://api.github.com/users/abadger/gists{/gist_id}","starred_url":"https://api.github.com/users/abadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadger/subscriptions","organizations_url":"https://api.github.com/users/abadger/orgs","repos_url":"https://api.github.com/users/abadger/repos","events_url":"https://api.github.com/users/abadger/events{/privacy}","received_events_url":"https://api.github.com/users/abadger/received_events","type":"User","site_admin":false}],"milestone":null,"comments":19,"created_at":"2016-05-19T14:19:45Z","updated_at":"2016-07-21T15:00:08Z","closed_at":"2016-05-27T13:24:17Z","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nunarchive\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible-playbook 2.1.0.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = ['/home/yannig/dev/ansible-conf/ansible/playbooks/library']\r\n```\r\n\r\n##### CONFIGURATION\r\nNone\r\n\r\n##### OS / ENVIRONMENT\r\nNothing special\r\n\r\n##### SUMMARY\r\nWhen using unarchive with Ansible 2.1 rc3, I get an error. Using ansible devel or ansible 2.0 work.\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\nGet unarchive.yml at the following location: https://github.com/Yannig/yannig-ansible-playbooks/blob/master/unarchive/unarchive.yml\r\n\r\nAnd run it.\r\n\r\n```\r\nansible-playbook unarchive.yml\r\n```\r\n##### EXPECTED RESULTS\r\n```\r\nPLAY [Unarchive problem] *******************************************************\r\n\r\nTASK [file] ********************************************************************\r\nchanged: [localhost]\r\n\r\nTASK [file] ********************************************************************\r\nchanged: [localhost]\r\n\r\nTASK [get_url] *****************************************************************\r\nchanged: [localhost]\r\n\r\nTASK [unarchive] ***************************************************************\r\nchanged: [localhost]\r\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=4    changed=4    unreachable=0    failed=0\r\n```\r\n\r\n##### ACTUAL RESULTS\r\n\r\n```\r\nPLAY [Unarchive problem] *******************************************************\r\n\r\nTASK [file] ********************************************************************\r\nchanged: [localhost]\r\n\r\nTASK [file] ********************************************************************\r\nchanged: [localhost]\r\n\r\nTASK [get_url] *****************************************************************\r\nok: [localhost]\r\n\r\nTASK [unarchive] ***************************************************************\r\nfatal: [localhost]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Unexpected error when accessing exploded file: [Errno 2] Aucun fichier ou dossier de ce type: '/tmp/unarchive/apache-tomee-plus-1.7.4/webapps'\"}\r\n\r\nNO MORE HOSTS LEFT *************************************************************\r\n        to retry, use: --limit @unarchive.retry\r\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=3    changed=2    unreachable=0    failed=1\r\n```\r\n\r\nNote: the devel version is not concerned about this issue."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/234281145","html_url":"https://github.com/ansible/ansible-modules-core/issues/3706#issuecomment-234281145","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3706","id":234281145,"user":{"login":"angystardust","id":1568397,"avatar_url":"https://avatars.githubusercontent.com/u/1568397?v=3","gravatar_id":"","url":"https://api.github.com/users/angystardust","html_url":"https://github.com/angystardust","followers_url":"https://api.github.com/users/angystardust/followers","following_url":"https://api.github.com/users/angystardust/following{/other_user}","gists_url":"https://api.github.com/users/angystardust/gists{/gist_id}","starred_url":"https://api.github.com/users/angystardust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angystardust/subscriptions","organizations_url":"https://api.github.com/users/angystardust/orgs","repos_url":"https://api.github.com/users/angystardust/repos","events_url":"https://api.github.com/users/angystardust/events{/privacy}","received_events_url":"https://api.github.com/users/angystardust/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T15:00:08Z","updated_at":"2016-07-21T15:00:08Z","body":"Sorry @abadger, sorry for the noise but I'm having the same issue as @Yannig even if i upgraded the unarchive module from the 2.1 branch\r\n\r\n```\r\n     - name: NBU32 | Copy & Uncompress the NetBackup setup archive\r\n       unarchive: src=/tmp/NetBackup_6.5.6_CLIENTS2-Linux32_slim.tgz dest=/tmp copy=no\r\n       tags: archive\r\n```\r\n\r\nThis if the error i get:\r\n\r\n```\r\n[root@ansible-master netbackup-client]# ansible-playbook --diff --verbose site.yml --tags archive -e target=server001\r\nUsing /etc/ansible/ansible.cfg as config file\r\n\r\nPLAY [server001] *************************************************************\r\n\r\nTASK [setup] *******************************************************************\r\nok: [server001]\r\n\r\nTASK [netbackup-client : NBU32 | Copy the NetBackup setup archive] *************\r\nchanged: [server001] => {\"changed\": true, \"checksum\": \"df2014ca7fea9f7604e6f2557dd2181b1ed289a4\", \"dest\": \"/tmp/NetBackup_7.7.1_CLIENTS2-Linux64_slim.tgz\", \"gid\": 0, \"group\": \"root\", \"md5sum\": \"b193f55f1dad4ee810fe691dc05cd96b\", \"mode\": \"0644\", \"owner\": \"root\", \"size\": 237751871, \"src\": \"/root/.ansible/tmp/ansible-tmp-1469110410.1-168383388346972/source\", \"state\": \"file\", \"uid\": 0}\r\ndiff skipped: source file size is greater than 1048576\r\n\r\nTASK [netbackup-client : NBU32 | Copy & Uncompress the NetBackup setup archive] \r\nfatal: [server001]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Unexpected error when accessing exploded file: [Errno 2] No such file or directory: '/tmp/prova/NetBackup_7.7.1_CLIENTS2/'\"}\r\n\r\nNO MORE HOSTS LEFT *************************************************************\r\n\tto retry, use: --limit @site.retry\r\n\r\nPLAY RECAP *********************************************************************\r\nserver001                : ok=2    changed=1    unreachable=0    failed=1   \r\n```\r\n\r\nIt works if I put the ugly \"force C environment\" hack:\r\n\r\n```\r\n       environment:\r\n         LANG: C\r\n         LC_ALL: C\r\n         LC_MESSAGES: C\r\n```\r\n\r\neven if I see this line on the unarchive.py:\r\n```\r\n693     # We screenscrape a huge amount of commands so use C locale anytime we do\r\n694     module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C')\r\n```\r\n\r\nShould I open a new issue?"}}
{"actor":{"display_login":"angystardust"}}