{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/36822","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/36822/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/36822/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/36822/events","html_url":"https://github.com/saltstack/salt/issues/36822","id":181417092,"number":36822,"title":"salt-cloud vmware - fails to ssh to guest during provisioning","user":{"login":"ndobbs","id":3474164,"avatar_url":"https://avatars.githubusercontent.com/u/3474164?v=3","gravatar_id":"","url":"https://api.github.com/users/ndobbs","html_url":"https://github.com/ndobbs","followers_url":"https://api.github.com/users/ndobbs/followers","following_url":"https://api.github.com/users/ndobbs/following{/other_user}","gists_url":"https://api.github.com/users/ndobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/ndobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndobbs/subscriptions","organizations_url":"https://api.github.com/users/ndobbs/orgs","repos_url":"https://api.github.com/users/ndobbs/repos","events_url":"https://api.github.com/users/ndobbs/events{/privacy}","received_events_url":"https://api.github.com/users/ndobbs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":610,"closed_issues":1065,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2016-10-17T21:53:31Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-10-06T13:37:53Z","updated_at":"2016-10-17T22:29:29Z","closed_at":null,"body":"### Description of Issue/Question\r\nsalt-cloud vmware provider cannot ssh to machines after provisioning. I have a ESX6 lab running `VMware vCenter Server 6.0.0 build-3634794`, my whole provisioning process seems to be running great, aside from salt not able to ssh into the guest during provisioning. Subsequently salt-minion doesn't get installed // started on the guest. \r\n\r\n### Setup\r\nVMWare ESXi 6 hosts with I have a ESX6 lab running `VMware vCenter Server 6.0.0 build-3634794`.\r\n\r\n### Steps to Reproduce Issue\r\nFirst I have ensured that I have running the correct version of pyVnomi since my system is python sub-2.7. The machine eventually finishes its launch with all of the proper parameters I'd expect, however without a running salt-minion process. I can also directly authenticate to the host once its online with the exact copied credentials I have in my profile.\r\n\r\n--- COMMAND ---\r\n`salt-cloud -p vmware test-host`\r\n\r\n---OUTPUT---\r\n```\r\nPermission denied (publickey,password).\r\n[DEBUG   ] Permission denied (publickey,password).\r\n[DEBUG   ] Using password authentication\r\n[DEBUG   ] Attempting to authenticate as salt-cloud (try 13 of 15)\r\n[DEBUG   ] SSH command: 'ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oConnectTimeout=15 -p 22 salt-cloud@10.90.90.41 date'\r\n[DEBUG   ] Child Forked! PID: 1098  STDOUT_FD: 10  STDERR_FD: 12\r\n[DEBUG   ] Terminal Command: /bin/sh -c ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oConnectTimeout=15 -p 22 salt-cloud@10.90.90.41 date\r\nclose failed in file object destructor:\r\n[DEBUG   ] close failed in file object destructor:\r\n[ERROR   ] An un-handled exception was caught by salt's global exception handler:\r\nIOError: [Errno 9] Bad file descriptor\r\nIOError: [Errno 9] Bad file descriptor\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/logging/__init__.py\", line 862, in emit\r\n    stream.write(ufs % msg)\r\n  File \"/usr/lib/python2.7/codecs.py\", line 688, in write\r\n    return self.writer.write(data)\r\n  File \"/usr/lib/python2.7/codecs.py\", line 352, in write\r\n    self.stream.write(data)\r\nIOError: [Errno 9] Bad file descriptor\r\nLogged from file setup.py, line 1045\r\nIOError: [Errno 9] Bad file descriptor\r\n[ERROR   ] Failed to start Salt on host test-provision\r\n```\r\n### Versions Report\r\n```\r\nSalt Version:\r\n           Salt: 2016.3.3\r\n\r\nDependency Versions:\r\n           cffi: 1.8.3\r\n       cherrypy: Not Installed\r\n       dateutil: 1.5\r\n          gitdb: 0.5.4\r\n      gitpython: 0.3.2 RC1\r\n          ioflo: Not Installed\r\n         Jinja2: 2.7.2\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: 0.9.1\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.6\r\n   mysql-python: 1.2.3\r\n      pycparser: 2.14\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n         Python: 2.7.6 (default, Jun 22 2015, 17:58:13)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.10\r\n          PyZMQ: 14.0.1\r\n           RAET: Not Installed\r\n          smmap: 0.8.2\r\n        timelib: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.0.4\r\n\r\nSystem Versions:\r\n           dist: Ubuntu 14.04 trusty\r\n        machine: x86_64\r\n        release: 4.4.0-31-generic\r\n         system: Linux\r\n        version: Ubuntu 14.04 trusty\r\n```\r\n\r\n```\r\npip freeze |grep pyvmomi\r\npyvmomi==5.5.0.2014.1.1\r\n```\r\n`VMware vCenter Server 6.0.0 build-3634794`"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/254353598","html_url":"https://github.com/saltstack/salt/issues/36822#issuecomment-254353598","issue_url":"https://api.github.com/repos/saltstack/salt/issues/36822","id":254353598,"user":{"login":"Ch3LL","id":6886822,"avatar_url":"https://avatars.githubusercontent.com/u/6886822?v=3","gravatar_id":"","url":"https://api.github.com/users/Ch3LL","html_url":"https://github.com/Ch3LL","followers_url":"https://api.github.com/users/Ch3LL/followers","following_url":"https://api.github.com/users/Ch3LL/following{/other_user}","gists_url":"https://api.github.com/users/Ch3LL/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch3LL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch3LL/subscriptions","organizations_url":"https://api.github.com/users/Ch3LL/orgs","repos_url":"https://api.github.com/users/Ch3LL/repos","events_url":"https://api.github.com/users/Ch3LL/events{/privacy}","received_events_url":"https://api.github.com/users/Ch3LL/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T22:29:29Z","updated_at":"2016-10-17T22:29:29Z","body":"@ndobbs okay I went ahead and tried setting up a test case and I cannot replicate this issue. Salt-cloud is able to ssh and install salt in the VM. You state that you only have one vm template. Would you be willing to setup a different OS template and seeing if you still see the same error? I understand that might be too much to ask. please let me know thanks"}}
{"actor":{"display_login":"Ch3LL"}}