{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/29341","labels_url":"https://api.github.com/repos/saltstack/salt/issues/29341/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/29341/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/29341/events","html_url":"https://github.com/saltstack/salt/issues/29341","id":119999125,"number":29341,"title":"salt-ssh-2015.8.3 Regression KeyError: 'config.get' in _get_key_dir line 126 of salt/renderers/gpg.py","user":{"login":"msummers42","id":8331623,"avatar_url":"https://avatars.githubusercontent.com/u/8331623?v=3","gravatar_id":"","url":"https://api.github.com/users/msummers42","html_url":"https://github.com/msummers42","followers_url":"https://api.github.com/users/msummers42/followers","following_url":"https://api.github.com/users/msummers42/following{/other_user}","gists_url":"https://api.github.com/users/msummers42/gists{/gist_id}","starred_url":"https://api.github.com/users/msummers42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msummers42/subscriptions","organizations_url":"https://api.github.com/users/msummers42/orgs","repos_url":"https://api.github.com/users/msummers42/repos","events_url":"https://api.github.com/users/msummers42/events{/privacy}","received_events_url":"https://api.github.com/users/msummers42/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/Cannot%20Reproduce","name":"Cannot Reproduce","color":"c7def8"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Critical","name":"Critical","color":"e95800"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P1","name":"P1","color":"2181ee"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-SSH","name":"Salt-SSH","color":"006b75"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/70","html_url":"https://github.com/saltstack/salt/milestones/B%207","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/70/labels","id":1425604,"number":70,"title":"B 7","description":"","creator":{"login":"meggiebot","id":12242451,"avatar_url":"https://avatars.githubusercontent.com/u/12242451?v=3","gravatar_id":"","url":"https://api.github.com/users/meggiebot","html_url":"https://github.com/meggiebot","followers_url":"https://api.github.com/users/meggiebot/followers","following_url":"https://api.github.com/users/meggiebot/following{/other_user}","gists_url":"https://api.github.com/users/meggiebot/gists{/gist_id}","starred_url":"https://api.github.com/users/meggiebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meggiebot/subscriptions","organizations_url":"https://api.github.com/users/meggiebot/orgs","repos_url":"https://api.github.com/users/meggiebot/repos","events_url":"https://api.github.com/users/meggiebot/events{/privacy}","received_events_url":"https://api.github.com/users/meggiebot/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":5,"state":"open","created_at":"2015-11-23T17:33:02Z","updated_at":"2015-12-02T21:47:08Z","due_on":"2015-12-14T07:00:00Z","closed_at":null},"comments":4,"created_at":"2015-12-02T17:51:44Z","updated_at":"2015-12-03T23:42:52Z","closed_at":null,"body":"Changes between 2015.8.2 and 2015.8.3 have broken salt-ssh badly. It is currently unusable. It appears to be related to the refactor of the gpg renderer as related to the removal of the python-gnupg dependency. This is similar in nature to the error seen in issue #19114, related to some differences between __salt__ behavior in salt-ssh versus salt itself. Further, it's is interesting to note that the error occurs twice, seemingly due to the gpg renderer being called twice, something I have noticed previously but had not tracked down what was going on.\r\n\r\n/cc @basepi As you had worked on the previous ticket, I thought you might have some insight here.\r\n\r\n```\r\nsalt-ssh test-host test.ping   \r\n[ERROR   ] An un-handled exception was caught by salt's global exception handler:\r\nKeyError: 'config.get'\r\nTraceback (most recent call last):\r\n  File \"salt-ssh-2015.8.3/bin/salt-ssh\", line 11, in <module>\r\n    sys.exit(salt_ssh())\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/scripts.py\", line 377, in salt_ssh\r\n    client.run()\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/cli/ssh.py\", line 20, in run\r\n    ssh = salt.client.ssh.SSH(self.config)\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/client/ssh/__init__.py\", line 178, in __init__\r\n    self.tgt_type)\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/roster/__init__.py\", line 79, in targets\r\n    targets.update(self.rosters[f_str](tgt, tgt_type))\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/roster/flat.py\", line 29, in targets\r\n    raw = compile_template(template, rend, __opts__['renderer'], **kwargs)\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/template.py\", line 95, in compile_template\r\n    ret = render(input_data, saltenv, sls, **render_kwargs)\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/renderers/gpg.py\", line 178, in render\r\n    LOG.debug('Reading GPG keys from: %s', _get_key_dir())\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/renderers/gpg.py\", line 126, in _get_key_dir\r\n    if __salt__['config.get']('gpg_keydir'):\r\nKeyError: 'config.get'\r\nTraceback (most recent call last):\r\n  File \"salt-ssh-2015.8.3/bin/salt-ssh\", line 11, in <module>\r\n    sys.exit(salt_ssh())\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/scripts.py\", line 377, in salt_ssh\r\n    client.run()\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/cli/ssh.py\", line 20, in run\r\n    ssh = salt.client.ssh.SSH(self.config)\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/client/ssh/__init__.py\", line 178, in __init__\r\n    self.tgt_type)\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/roster/__init__.py\", line 79, in targets\r\n    targets.update(self.rosters[f_str](tgt, tgt_type))\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/roster/flat.py\", line 29, in targets\r\n    raw = compile_template(template, rend, __opts__['renderer'], **kwargs)\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/template.py\", line 95, in compile_template\r\n    ret = render(input_data, saltenv, sls, **render_kwargs)\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/renderers/gpg.py\", line 178, in render\r\n    LOG.debug('Reading GPG keys from: %s', _get_key_dir())\r\n  File \"salt-ssh-2015.8.3/lib/python2.7/site-packages/salt/renderers/gpg.py\", line 126, in _get_key_dir\r\n    if __salt__['config.get']('gpg_keydir'):\r\nKeyError: 'config.get'\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/161825952","html_url":"https://github.com/saltstack/salt/issues/29341#issuecomment-161825952","issue_url":"https://api.github.com/repos/saltstack/salt/issues/29341","id":161825952,"user":{"login":"msummers42","id":8331623,"avatar_url":"https://avatars.githubusercontent.com/u/8331623?v=3","gravatar_id":"","url":"https://api.github.com/users/msummers42","html_url":"https://github.com/msummers42","followers_url":"https://api.github.com/users/msummers42/followers","following_url":"https://api.github.com/users/msummers42/following{/other_user}","gists_url":"https://api.github.com/users/msummers42/gists{/gist_id}","starred_url":"https://api.github.com/users/msummers42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msummers42/subscriptions","organizations_url":"https://api.github.com/users/msummers42/orgs","repos_url":"https://api.github.com/users/msummers42/repos","events_url":"https://api.github.com/users/msummers42/events{/privacy}","received_events_url":"https://api.github.com/users/msummers42/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T23:42:52Z","updated_at":"2015-12-03T23:42:52Z","body":"This issue arises for me in the case where I have gpg'd pillar variables that the host should receive. I wonder if this would make it reproducible for you https://github.com/slafs/salt-gpg-test\r\n"}}