{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/40715","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/40715/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/40715/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/40715/events","html_url":"https://github.com/ansible/ansible/issues/40715","id":326546613,"number":40715,"title":"Unable to copy files when using lxd connector","user":{"login":"michlaustn","id":4312935,"avatar_url":"https://avatars1.githubusercontent.com/u/4312935?v=4","gravatar_id":"","url":"https://api.github.com/users/michlaustn","html_url":"https://github.com/michlaustn","followers_url":"https://api.github.com/users/michlaustn/followers","following_url":"https://api.github.com/users/michlaustn/following{/other_user}","gists_url":"https://api.github.com/users/michlaustn/gists{/gist_id}","starred_url":"https://api.github.com/users/michlaustn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michlaustn/subscriptions","organizations_url":"https://api.github.com/users/michlaustn/orgs","repos_url":"https://api.github.com/users/michlaustn/repos","events_url":"https://api.github.com/users/michlaustn/events{/privacy}","received_events_url":"https://api.github.com/users/michlaustn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-25T14:28:16Z","updated_at":"2018-05-25T15:46:14Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nTHIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED.\r\nAlso test if the latest release, and devel branch are affected too.\r\nALWAYS add information AFTER (OUTSIDE) these html comments.\r\nOtherwise it may end up being automatically closed by our bot. -->\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\n\r\nWhen using the lxd connector I am unable to copy files to the container.\r\n\r\n##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Insert, BELOW THIS COMMENT, the name of the module, plugin, task or feature.\r\nDo not include extra details here, e.g. \"vyos_command\" not \"the network module vyos_command\" or the full path-->\r\n\r\ncopy_command\r\nlxd_connector\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste, BELOW THIS COMMENT, verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.5.3\r\n```\r\n\r\n##### CONFIGURATION\r\n<!--- If using Ansible 2.4 or above, paste, BELOW THIS COMMENT, the results of \"ansible-config dump --only-changed\"\r\nOtherwise, mention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).-->\r\n\r\nANSIBLE_PIPELINING(/var/lib/jenkins/workspace/ansible-test-kitchen/ansible.cfg) = True\r\nDEFAULT_BECOME(/var/lib/jenkins/workspace/ansible-test-kitchen/ansible.cfg) = True\r\nDEFAULT_BECOME_USER(/var/lib/jenkins/workspace/ansible-test-kitchen/ansible.cfg) = root\r\nDEFAULT_GATHERING(/var/lib/jenkins/workspace/ansible-test-kitchen/ansible.cfg) = smart\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Mention, BELOW THIS COMMENT, 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\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.-->\r\n\r\nHost: Ubuntu 16.04\r\nTarget: Ubuntu 16.04 (lxc container)\r\n\r\n##### STEPS TO REPRODUCE\r\n<!--- For bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used. -->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\nhosts file:\r\n\r\n[ansibletest]\r\nansibletest ansible_connection=lxd\r\n\r\ntask:\r\n\r\n- name: configure monit\r\n  copy:\r\n    src: monitrc\r\n    dest: /etc/monit/monitrc\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\nThe file to be copied into the target destination on container.\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\n<ansibletest> ESTABLISH LXD CONNECTION FOR USER: root\r\n<ansibletest> EXEC /bin/sh -c 'echo ~None && sleep 0'\r\n<ansibletest> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo ~None/.ansible/tmp/ansible-tmp-1527257268.77-19634104071688 `\" && echo ansible-tmp-1527257268.77-19634104071688=\"` echo ~None/.ansible/tmp/ansible-tmp-1527257268.77-19634104071688 `\" ) && sleep 0'\r\nUsing module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/stat.py\r\n<ansibletest> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '\"'\"'echo BECOME-SUCCESS-otukpemtoreyiafvyzprhvelcisdcpwd; /usr/bin/python'\"'\"' && sleep 0'\r\n<ansibletest> PUT /var/lib/jenkins/workspace/ansible-test-kitchen/roles/common/files/monitrc TO ~None/.ansible/tmp/ansible-tmp-1527257268.77-19634104071688/source\r\nerror: file does not exist\r\n<ansibletest> EXEC /bin/sh -c 'chmod u+x '\"'\"'~None/.ansible/tmp/ansible-tmp-1527257268.77-19634104071688/'\"'\"' '\"'\"'~None/.ansible/tmp/ansible-tmp-1527257268.77-19634104071688/source'\"'\"' && sleep 0'\r\nfatal: [ansibletest]: FAILED! => {\r\n    \"msg\": \"Failed to set execute bit on remote files (rc: 1, err: chmod: cannot access '~None/.ansible/tmp/ansible-tmp-1527257268.77-19634104071688/source': No such file or directory\\n)\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/392099836","html_url":"https://github.com/ansible/ansible/issues/40715#issuecomment-392099836","issue_url":"https://api.github.com/repos/ansible/ansible/issues/40715","id":392099836,"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":"2018-05-25T15:46:14Z","updated_at":"2018-05-25T15:46:14Z","author_association":"CONTRIBUTOR","body":"cc @hnakamur\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: notify --->"}}
{"actor":{"display_login":"ansibot"}}