{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/10837","labels_url":"https://api.github.com/repos/ansible/ansible/issues/10837/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/10837/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/10837/events","html_url":"https://github.com/ansible/ansible/issues/10837","id":70950295,"number":10837,"title":"ansible testserver  -m ping -vvvv: FAILED => SSH Error: debug1: Calling cleanup 0x8078582(0x0)","user":{"login":"dusank","id":5513133,"avatar_url":"https://avatars.githubusercontent.com/u/5513133?v=3","gravatar_id":"","url":"https://api.github.com/users/dusank","html_url":"https://github.com/dusank","followers_url":"https://api.github.com/users/dusank/followers","following_url":"https://api.github.com/users/dusank/following{/other_user}","gists_url":"https://api.github.com/users/dusank/gists{/gist_id}","starred_url":"https://api.github.com/users/dusank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dusank/subscriptions","organizations_url":"https://api.github.com/users/dusank/orgs","repos_url":"https://api.github.com/users/dusank/repos","events_url":"https://api.github.com/users/dusank/events{/privacy}","received_events_url":"https://api.github.com/users/dusank/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-04-25T18:29:30Z","updated_at":"2015-05-11T09:43:10Z","closed_at":"2015-04-27T17:00:24Z","body":"**Issue Type:**\r\n```\r\nBug Report\r\n```\r\n**Ansible Version:**\r\n```\r\n> ansible --version\r\nansible 1.9.0.1\r\n  configured module search path = None\r\n```\r\n\r\n**Environment:**\r\n\r\nRunning:\r\n```\r\n> uname -a\r\nSunOS vishnu 5.11 illumos-14c3be3 i86pc i386 i86pc Solaris\r\n```\r\nManaging 1st:\r\n```\r\nvagrant box add trusty64 https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box\r\n\r\n> uname -a\r\nLinux packer-virtualbox-iso-1411922062 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64 GNU/Linux\r\n```\r\n\r\nManaging 2nd:\r\n```\r\nvagrant box add wheezy https://github.com/jose-lpa/packer-debian_7.6.0/releases/download/1.0/packer_virtualbox-iso_virtualbox.box\r\n\r\n> uname -a\r\nLinux vagrant-ubuntu-trusty-64 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:11:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\nThe vagrant boxes are from http://www.vagrantbox.es/\r\n\r\n**Summary and Actual Results:**\r\nI am just reading Dan Londons Ansible Up & Running eBook Preview and running into some bug lacking a somewhat specific error message.\r\n\r\nI am trying to run the code from Chapter 1, but after a successful `vagrant up` and `vagrant ssh` when I try to run the following from my openindiana server it just fails:\r\n\r\n```\r\nsavant@vishnu:/tank/ws/vagrant-up-and-running/playbooks$ ansible testserver -m ping -vvvv\r\n<10.0.0.240> ESTABLISH CONNECTION FOR USER: vagrant\r\n<10.0.0.240> REMOTE_MODULE ping\r\n<10.0.0.240> EXEC ssh -C -tt -vvv -o Port=22 -o IdentityFile=\"private_key\" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=10 10.0.0.240 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1429985525.65-144482979107111 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1429985525.65-144482979107111 && echo $HOME/.ansible/tmp/ansible-tmp-1429985525.65-144482979107111'\r\ntestserver | FAILED => SSH Error: debug1: Calling cleanup 0x8078582(0x0)\r\n    while connecting to 10.0.0.240:22\r\nIt is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.\r\n```\r\n\r\nA manual ssh on the same host/port/login works just fine.\r\n\r\nI have tried it with at least 2 different vagrant boxes (Ubuntu trusty64, Debian wheezy), same results.\r\n\r\nAny idea what could be going wrong?"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/100834401","html_url":"https://github.com/ansible/ansible/issues/10837#issuecomment-100834401","issue_url":"https://api.github.com/repos/ansible/ansible/issues/10837","id":100834401,"user":{"login":"dusank","id":5513133,"avatar_url":"https://avatars.githubusercontent.com/u/5513133?v=3","gravatar_id":"","url":"https://api.github.com/users/dusank","html_url":"https://github.com/dusank","followers_url":"https://api.github.com/users/dusank/followers","following_url":"https://api.github.com/users/dusank/following{/other_user}","gists_url":"https://api.github.com/users/dusank/gists{/gist_id}","starred_url":"https://api.github.com/users/dusank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dusank/subscriptions","organizations_url":"https://api.github.com/users/dusank/orgs","repos_url":"https://api.github.com/users/dusank/repos","events_url":"https://api.github.com/users/dusank/events{/privacy}","received_events_url":"https://api.github.com/users/dusank/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T09:43:10Z","updated_at":"2015-05-11T09:43:10Z","body":"The root cause of the problem was finally found by @bcoca:\r\n```\r\nOk, i think i found the issue, Sun ssh does not like control master, \r\non my 'test machines' i had paramiko as the default connection. \r\n\r\nI had made it part of my initialization at one point and completely \r\nforgot about it (hidden in my 'Solaris-family' ansible.cfg.  So you \r\ncan either override the ssh args in the ansible.cfg or just switch to \r\nusing paramiko (I suggest the latter as it will perform better than \r\nSun ssh).\r\n```\r\nMany thanks to @bcoca for his time, patience and great support!\r\n\r\n=Dusan"}}