{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/27355","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/27355/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/27355/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/27355/events","html_url":"https://github.com/saltstack/salt/issues/27355","id":108007574,"number":27355,"title":"salt ssh error with debian 7 on target","user":{"login":"jerob","id":9793840,"avatar_url":"https://avatars.githubusercontent.com/u/9793840?v=3","gravatar_id":"","url":"https://api.github.com/users/jerob","html_url":"https://github.com/jerob","followers_url":"https://api.github.com/users/jerob/followers","following_url":"https://api.github.com/users/jerob/following{/other_user}","gists_url":"https://api.github.com/users/jerob/gists{/gist_id}","starred_url":"https://api.github.com/users/jerob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerob/subscriptions","organizations_url":"https://api.github.com/users/jerob/orgs","repos_url":"https://api.github.com/users/jerob/repos","events_url":"https://api.github.com/users/jerob/events{/privacy}","received_events_url":"https://api.github.com/users/jerob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P3","name":"P3","color":"0a3d77"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-SSH","name":"Salt-SSH","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2924,"closed_issues":3396,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-03-04T02:38:08Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-09-23T21:12:44Z","updated_at":"2016-03-04T08:55:39Z","closed_at":null,"body":"salt-ssh and 2 targets ( debian 7 and debian 8 )\r\n\r\nsalt-ssh '*' -r 'ifconfig' = works well with both targets\r\n\r\nsalt-ssh '*' cmd.run 'ifconfig' \r\n\r\nThis command works well with debian 8. But with debian 7 (wheezy) :\r\n```\r\nweb1:\r\n    ----------\r\n    retcode:\r\n        1\r\n    stderr:\r\n        [CRITICAL] Unable to import msgpack or msgpack_pure python modules\r\n        [ERROR   ] An un-handled exception was caught by salt's global exception handler:\r\n        ImportError: No module named backports.ssl_match_hostname\r\n        Traceback (most recent call last):\r\n          File \"/tmp/.root_a3a1dc_salt/salt-call\", line 4, in <module>\r\n            salt_call()\r\n          File \"/tmp/.root_a3a1dc_salt/salt/scripts.py\", line 325, in salt_call\r\n            import salt.cli.call\r\n          File \"/tmp/.root_a3a1dc_salt/salt/cli/call.py\", line 8, in <module>\r\n            import salt.cli.caller\r\n          File \"/tmp/.root_a3a1dc_salt/salt/cli/caller.py\", line 20, in <module>\r\n            import salt.minion\r\n          File \"/tmp/.root_a3a1dc_salt/salt/minion.py\", line 83, in <module>\r\n            import salt.pillar\r\n          File \"/tmp/.root_a3a1dc_salt/salt/pillar/__init__.py\", line 15, in <module>\r\n            import salt.fileclient\r\n          File \"/tmp/.root_a3a1dc_salt/salt/fileclient.py\", line 29, in <module>\r\n            import salt.utils.http\r\n          File \"/tmp/.root_a3a1dc_salt/salt/utils/http.py\", line 58, in <module>\r\n            import tornado.simple_httpclient\r\n          File \"/tmp/.root_a3a1dc_salt/tornado/simple_httpclient.py\", line 8, in <module>\r\n            from tornado.http1connection import HTTP1Connection, HTTP1ConnectionParameters\r\n          File \"/tmp/.root_a3a1dc_salt/tornado/http1connection.py\", line 30, in <module>\r\n            from tornado import iostream\r\n          File \"/tmp/.root_a3a1dc_salt/tornado/iostream.py\", line 40, in <module>\r\n            from tornado.netutil import ssl_wrap_socket, ssl_match_hostname, SSLCertificateError, _client_ssl_defaults, _server_ssl_defaults\r\n          File \"/tmp/.root_a3a1dc_salt/tornado/netutil.py\", line 49, in <module>\r\n            import backports.ssl_match_hostname\r\n        ImportError: No module named backports.ssl_match_hostname\r\n        Traceback (most recent call last):\r\n          File \"/tmp/.root_a3a1dc_salt/salt-call\", line 4, in <module>\r\n            salt_call()\r\n          File \"/tmp/.root_a3a1dc_salt/salt/scripts.py\", line 325, in salt_call\r\n            import salt.cli.call\r\n          File \"/tmp/.root_a3a1dc_salt/salt/cli/call.py\", line 8, in <module>\r\n            import salt.cli.caller\r\n          File \"/tmp/.root_a3a1dc_salt/salt/cli/caller.py\", line 20, in <module>\r\n            import salt.minion\r\n          File \"/tmp/.root_a3a1dc_salt/salt/minion.py\", line 83, in <module>\r\n            import salt.pillar\r\n          File \"/tmp/.root_a3a1dc_salt/salt/pillar/__init__.py\", line 15, in <module>\r\n            import salt.fileclient\r\n          File \"/tmp/.root_a3a1dc_salt/salt/fileclient.py\", line 29, in <module>\r\n            import salt.utils.http\r\n          File \"/tmp/.root_a3a1dc_salt/salt/utils/http.py\", line 58, in <module>\r\n            import tornado.simple_httpclient\r\n          File \"/tmp/.root_a3a1dc_salt/tornado/simple_httpclient.py\", line 8, in <module>\r\n            from tornado.http1connection import HTTP1Connection, HTTP1ConnectionParameters\r\n          File \"/tmp/.root_a3a1dc_salt/tornado/http1connection.py\", line 30, in <module>\r\n            from tornado import iostream\r\n          File \"/tmp/.root_a3a1dc_salt/tornado/iostream.py\", line 40, in <module>\r\n            from tornado.netutil import ssl_wrap_socket, ssl_match_hostname, SSLCertificateError, _client_ssl_defaults, _server_ssl_defaults\r\n          File \"/tmp/.root_a3a1dc_salt/tornado/netutil.py\", line 49, in <module>\r\n            import backports.ssl_match_hostname\r\n        ImportError: No module named backports.ssl_match_hostname\r\n    stdout:\r\n```\r\n\r\nHost : \r\n\r\n```\r\nsalt-ssh --versions-report\r\nSalt Version:\r\n           Salt: 2015.8.0\r\n \r\nDependency Versions:\r\n         Jinja2: 2.7.3\r\n       M2Crypto: Not Installed\r\n           Mako: 1.0.0\r\n         PyYAML: 3.11\r\n          PyZMQ: Not Installed\r\n         Python: 2.7.9 (default, Mar  1 2015, 12:57:24)\r\n           RAET: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: Not Installed\r\n           cffi: 0.8.6\r\n       cherrypy: Not Installed\r\n       dateutil: 2.2\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n        libnacl: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.2\r\n   mysql-python: Not Installed\r\n      pycparser: 2.10\r\n       pycrypto: Not Installed\r\n         pygit2: Not Installed\r\n   python-gnupg: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n \r\nSystem Versions:\r\n           dist: Debian 8 \r\n        machine: x86_64\r\n        release: 3.16.0-4-amd64\r\n         system: Debian 8\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/192190334","html_url":"https://github.com/saltstack/salt/issues/27355#issuecomment-192190334","issue_url":"https://api.github.com/repos/saltstack/salt/issues/27355","id":192190334,"user":{"login":"babilen","id":117961,"avatar_url":"https://avatars.githubusercontent.com/u/117961?v=3","gravatar_id":"","url":"https://api.github.com/users/babilen","html_url":"https://github.com/babilen","followers_url":"https://api.github.com/users/babilen/followers","following_url":"https://api.github.com/users/babilen/following{/other_user}","gists_url":"https://api.github.com/users/babilen/gists{/gist_id}","starred_url":"https://api.github.com/users/babilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babilen/subscriptions","organizations_url":"https://api.github.com/users/babilen/orgs","repos_url":"https://api.github.com/users/babilen/repos","events_url":"https://api.github.com/users/babilen/events{/privacy}","received_events_url":"https://api.github.com/users/babilen/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T08:55:39Z","updated_at":"2016-03-04T08:55:39Z","body":"This bug really renders `salt-ssh` unusable in larger heterogeneous environments. Is there a way to fix this in salt so that we do not have to rely on the local state of the minion when using `salt-ssh` ?"}}