{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/21594","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/21594/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/21594/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/21594/events","html_url":"https://github.com/ansible/ansible/issues/21594","id":208516355,"number":21594,"title":"Ansible 2.2.1.0 copy module fails with Solaris 10 as target OS","user":{"login":"scathatheworm","id":18707903,"avatar_url":"https://avatars2.githubusercontent.com/u/18707903?v=3","gravatar_id":"","url":"https://api.github.com/users/scathatheworm","html_url":"https://github.com/scathatheworm","followers_url":"https://api.github.com/users/scathatheworm/followers","following_url":"https://api.github.com/users/scathatheworm/following{/other_user}","gists_url":"https://api.github.com/users/scathatheworm/gists{/gist_id}","starred_url":"https://api.github.com/users/scathatheworm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scathatheworm/subscriptions","organizations_url":"https://api.github.com/users/scathatheworm/orgs","repos_url":"https://api.github.com/users/scathatheworm/repos","events_url":"https://api.github.com/users/scathatheworm/events{/privacy}","received_events_url":"https://api.github.com/users/scathatheworm/received_events","type":"User","site_admin":false},"labels":[{"id":437720699,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.2","name":"affects_2.2","color":"5319e7","default":false},{"id":48276055,"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":496359346,"url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-02-17T18:12:07Z","updated_at":"2017-03-22T00:59:50Z","closed_at":null,"body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release, and master branch are affected too.\r\n-->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the module/plugin/task/feature -->\r\ncopy module\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.2.1.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\n\r\n-->\r\ngathering = smart\r\nhost_key_checking = False\r\nremote_user = ansible\r\nlog_path = /var/log/ansible.log\r\nprivate_key_file = /home/ansible/.ssh/id_rsa\r\ndisplay_skipped_hosts = False\r\nfact_caching = jsonfile\r\nfact_caching_connection = /var/lib/ansible_facts\r\nfact_caching_timeout = 86400\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\n\r\n-->\r\nManagement Host: RHEL 7.3\r\nTarget Host: Solaris 10\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nCopy module fails entirely when targetting a Solaris 10 OS using ansible 2.2.1, it works well with Linux target operating systems (tested SLES11/12 and RHEL5/6). I've rolled back to ansible 2.1.4 and this issue does not happen.\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor 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\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\nansible -m copy -a \"src=/tmp/testfile dest=/tmp/testfile\" solarishost\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\nFile gets copied\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$ ansible -vvvv -m copy -a \"src=/home/dponessa/ntp.yml dest=/tmp/ntp.yml\" ehrpitsun015c\r\nUsing /etc/ansible/ansible.cfg as config file\r\nLoading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc\r\nUsing module file /usr/lib/python2.7/site-packages/ansible/modules/core/files/stat.py\r\n<ehrpitsun015c> ESTABLISH SSH CONNECTION FOR USER: ansible\r\n<ehrpitsun015c> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r ehrpitsun015c '/bin/sh -c '\"'\"'( umask 77 && mkdir -p \"` echo ~/.ansible/tmp/ansible-tmp-1487351082.35-271577189261336 `\" && echo ansible-tmp-1487351082.35-271577189261336=\"` echo ~/.ansible/tmp/ansible-tmp-1487351082.35-271577189261336 `\" ) && sleep 0'\"'\"''\r\n<ehrpitsun015c> PUT /tmp/tmp70mNA9 TO ~/.ansible/tmp/ansible-tmp-1487351082.35-271577189261336/stat.py\r\n<ehrpitsun015c> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r '[ehrpitsun015c]'\r\n<ehrpitsun015c> ESTABLISH SSH CONNECTION FOR USER: ansible\r\n<ehrpitsun015c> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r ehrpitsun015c '/bin/sh -c '\"'\"'chmod u+x '\"'\"'\"'\"'\"'\"'\"'\"'~/.ansible/tmp/ansible-tmp-1487351082.35-271577189261336/'\"'\"'\"'\"'\"'\"'\"'\"' '\"'\"'\"'\"'\"'\"'\"'\"'~/.ansible/tmp/ansible-tmp-1487351082.35-271577189261336/stat.py'\"'\"'\"'\"'\"'\"'\"'\"' && sleep 0'\"'\"''\r\n<ehrpitsun015c> ESTABLISH SSH CONNECTION FOR USER: ansible\r\n<ehrpitsun015c> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r -tt ehrpitsun015c '/bin/sh -c '\"'\"'/usr/bin/python '\"'\"'\"'\"'\"'\"'\"'\"'~/.ansible/tmp/ansible-tmp-1487351082.35-271577189261336/stat.py'\"'\"'\"'\"'\"'\"'\"'\"'; rm -rf \"~/.ansible/tmp/ansible-tmp-1487351082.35-271577189261336/\" > /dev/null 2>&1 && sleep 0'\"'\"''\r\n<ehrpitsun015c> ESTABLISH SSH CONNECTION FOR USER: ansible\r\n<ehrpitsun015c> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r ehrpitsun015c '/bin/sh -c '\"'\"'( umask 77 && mkdir -p \"` echo ~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607 `\" && echo ansible-tmp-1487351082.86-99097479473607=\"` echo ~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607 `\" ) && sleep 0'\"'\"''\r\n<ehrpitsun015c> PUT /home/dponessa/ntp.yml TO ~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/source\r\n<ehrpitsun015c> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r '[ehrpitsun015c]'\r\n<ehrpitsun015c> ESTABLISH SSH CONNECTION FOR USER: ansible\r\n<ehrpitsun015c> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r ehrpitsun015c '/bin/sh -c '\"'\"'chmod u+x '\"'\"'\"'\"'\"'\"'\"'\"'~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/'\"'\"'\"'\"'\"'\"'\"'\"' '\"'\"'\"'\"'\"'\"'\"'\"'~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/source'\"'\"'\"'\"'\"'\"'\"'\"' && sleep 0'\"'\"''\r\nUsing module file /usr/lib/python2.7/site-packages/ansible/modules/core/files/copy.py\r\n<ehrpitsun015c> PUT /tmp/tmp9Czx0K TO ~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/copy.py\r\n<ehrpitsun015c> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r '[ehrpitsun015c]'\r\n<ehrpitsun015c> ESTABLISH SSH CONNECTION FOR USER: ansible\r\n<ehrpitsun015c> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r ehrpitsun015c '/bin/sh -c '\"'\"'chmod u+x '\"'\"'\"'\"'\"'\"'\"'\"'~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/'\"'\"'\"'\"'\"'\"'\"'\"' '\"'\"'\"'\"'\"'\"'\"'\"'~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/copy.py'\"'\"'\"'\"'\"'\"'\"'\"' && sleep 0'\"'\"''\r\n<ehrpitsun015c> ESTABLISH SSH CONNECTION FOR USER: ansible\r\n<ehrpitsun015c> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile=\"/home/ansible/.ssh/id_rsa\"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/dponessa/.ansible/cp/ansible-ssh-%h-%p-%r -tt ehrpitsun015c '/bin/sh -c '\"'\"'/usr/bin/python '\"'\"'\"'\"'\"'\"'\"'\"'~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/copy.py'\"'\"'\"'\"'\"'\"'\"'\"'; rm -rf \"~/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/\" > /dev/null 2>&1 && sleep 0'\"'\"''\r\nehrpitsun015c | FAILED! => {\r\n    \"changed\": false, \r\n    \"checksum\": \"fb24c31e3c1a217cb300a8d45004152dbf76eb7f\", \r\n    \"failed\": true, \r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"backup\": false, \r\n            \"content\": null, \r\n            \"delimiter\": null, \r\n            \"dest\": \"/tmp/ntp.yml\", \r\n            \"directory_mode\": null, \r\n            \"follow\": false, \r\n            \"force\": true, \r\n            \"group\": null, \r\n            \"mode\": null, \r\n            \"original_basename\": \"ntp.yml\", \r\n            \"owner\": null, \r\n            \"regexp\": null, \r\n            \"remote_src\": null, \r\n            \"selevel\": null, \r\n            \"serole\": null, \r\n            \"setype\": null, \r\n            \"seuser\": null, \r\n            \"src\": \"/export/home/ansible/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/source\", \r\n            \"unsafe_writes\": null, \r\n            \"validate\": null\r\n        }\r\n    }, \r\n    \"msg\": \"Source /export/home/ansible/.ansible/tmp/ansible-tmp-1487351082.86-99097479473607/source not found\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/288266459","html_url":"https://github.com/ansible/ansible/issues/21594#issuecomment-288266459","issue_url":"https://api.github.com/repos/ansible/ansible/issues/21594","id":288266459,"user":{"login":"scathatheworm","id":18707903,"avatar_url":"https://avatars2.githubusercontent.com/u/18707903?v=3","gravatar_id":"","url":"https://api.github.com/users/scathatheworm","html_url":"https://github.com/scathatheworm","followers_url":"https://api.github.com/users/scathatheworm/followers","following_url":"https://api.github.com/users/scathatheworm/following{/other_user}","gists_url":"https://api.github.com/users/scathatheworm/gists{/gist_id}","starred_url":"https://api.github.com/users/scathatheworm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scathatheworm/subscriptions","organizations_url":"https://api.github.com/users/scathatheworm/orgs","repos_url":"https://api.github.com/users/scathatheworm/repos","events_url":"https://api.github.com/users/scathatheworm/events{/privacy}","received_events_url":"https://api.github.com/users/scathatheworm/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T00:59:50Z","updated_at":"2017-03-22T00:59:50Z","body":"I haven't tried that workaround, as it may cause issues with users, scripts, etc. I have test solaris boxes available if anyone is looking."}}
{"actor":{"display_login":"scathatheworm"}}