{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20418","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20418/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20418/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20418/events","html_url":"https://github.com/saltstack/salt/issues/20418","id":56648638,"number":20418,"title":"Permission denied error on salt-ssh deploy dir","user":{"login":"Xiol","id":159842,"avatar_url":"https://avatars.githubusercontent.com/u/159842?v=3","gravatar_id":"","url":"https://api.github.com/users/Xiol","html_url":"https://github.com/Xiol","followers_url":"https://api.github.com/users/Xiol/followers","following_url":"https://api.github.com/users/Xiol/following{/other_user}","gists_url":"https://api.github.com/users/Xiol/gists{/gist_id}","starred_url":"https://api.github.com/users/Xiol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xiol/subscriptions","organizations_url":"https://api.github.com/users/Xiol/orgs","repos_url":"https://api.github.com/users/Xiol/repos","events_url":"https://api.github.com/users/Xiol/events{/privacy}","received_events_url":"https://api.github.com/users/Xiol/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/Medium%20Severity","name":"Medium Severity","color":"fad8c7"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-SSH","name":"Salt-SSH","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","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":1963,"closed_issues":1532,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-02-19T03:09:16Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-02-05T09:52:22Z","updated_at":"2015-02-19T10:04:56Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to run salt-ssh via the CherryPy REST API but I'm getting an exception when attempting to do so. This is using the 2015.2 release installed with Salt bootstrap. (`./install_salt.sh git 2015.2`)\r\n\r\n/etc/salt/roster:\r\n```\r\ntestbox:\r\n    host: 172.16.32.53\r\n    user: myuser\r\n    passwd: mypass\r\n    sudo: true\r\n    tty: true\r\n```\r\n\r\n    [root@saltmaster ~]# curl localhost:8000/run -H \"Accept: application/x-yaml\" -d client='ssh' -d tgt='*' -d fun='status.diskusage' \r\n\r\n(formatted exception)\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.py\", line 389, in hypermedia_handler\r\n    ret = cherrypy.serving.request._hypermedia_inner_handler(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py\", line 61, in __call__\r\n    return self.callable(*self.args, **self.kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.py\", line 1528, in POST\r\n    'return': list(self.exec_lowstate()),\r\n  File \"/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.py\", line 647, in exec_lowstate\r\n    ret = self.api.run(chunk)\r\n  File \"/usr/lib/python2.7/site-packages/salt/netapi/__init__.py\", line 48, in run\r\n    return l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {}))\r\n  File \"/usr/lib/python2.7/site-packages/salt/netapi/__init__.py\", line 101, in ssh\r\n    return ssh_client.cmd_sync(kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/ssh/client.py\", line 128, in cmd_sync\r\n    low.get('kwarg'))\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/ssh/client.py\", line 102, in cmd\r\n    for ret in ssh.run_iter():\r\n  File \"/usr/lib/python2.7/site-packages/salt/client/ssh/__init__.py\", line 434, in run_iter\r\n    if self.opts['raw_shell']:\r\nKeyError: 'raw_shell'\r\n```\r\n\r\n```\r\n[root@saltmaster ~]# salt --versions\r\n           Salt: 2015.2.0-1104-g9bf6066\r\n         Python: 2.7.5 (default, Jun 17 2014, 18:11:42)\r\n         Jinja2: 2.7.2\r\n       M2Crypto: 0.21.1\r\n msgpack-python: 0.4.2\r\n   msgpack-pure: Not Installed\r\n       pycrypto: 2.6.1\r\n        libnacl: Not Installed\r\n         PyYAML: 3.10\r\n          ioflo: Not Installed\r\n          PyZMQ: 14.3.1\r\n           RAET: Not Installed\r\n            ZMQ: 4.0.4\r\n           Mako: Not Installed\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/75025859","html_url":"https://github.com/saltstack/salt/issues/20418#issuecomment-75025859","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20418","id":75025859,"user":{"login":"ltsampros","id":7254274,"avatar_url":"https://avatars.githubusercontent.com/u/7254274?v=3","gravatar_id":"","url":"https://api.github.com/users/ltsampros","html_url":"https://github.com/ltsampros","followers_url":"https://api.github.com/users/ltsampros/followers","following_url":"https://api.github.com/users/ltsampros/following{/other_user}","gists_url":"https://api.github.com/users/ltsampros/gists{/gist_id}","starred_url":"https://api.github.com/users/ltsampros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltsampros/subscriptions","organizations_url":"https://api.github.com/users/ltsampros/orgs","repos_url":"https://api.github.com/users/ltsampros/repos","events_url":"https://api.github.com/users/ltsampros/events{/privacy}","received_events_url":"https://api.github.com/users/ltsampros/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T10:04:56Z","updated_at":"2015-02-19T10:04:56Z","body":"Hello,\r\n\r\nare there any news on this?\r\n\r\nBR"}}