{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/32923","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/32923/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/32923/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/32923/events","html_url":"https://github.com/saltstack/salt/issues/32923","id":151706720,"number":32923,"title":"salt-key -F has traceback with RAET transport","user":{"login":"JoshLitt","id":1700395,"avatar_url":"https://avatars.githubusercontent.com/u/1700395?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshLitt","html_url":"https://github.com/JoshLitt","followers_url":"https://api.github.com/users/JoshLitt/followers","following_url":"https://api.github.com/users/JoshLitt/following{/other_user}","gists_url":"https://api.github.com/users/JoshLitt/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshLitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshLitt/subscriptions","organizations_url":"https://api.github.com/users/JoshLitt/orgs","repos_url":"https://api.github.com/users/JoshLitt/repos","events_url":"https://api.github.com/users/JoshLitt/events{/privacy}","received_events_url":"https://api.github.com/users/JoshLitt/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/P4","name":"P4","color":"031a39"}],"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":3044,"closed_issues":3577,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-04-29T16:13:45Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-28T18:05:36Z","updated_at":"2016-04-29T16:14:13Z","closed_at":null,"body":"### Description of Issue/Question\r\nRunning \"salt-key -F\" with raet transport configured causes a traceback:\r\n```\r\n$ sudo salt-key -F\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/salt-key\", line 10, in <module>\r\n    salt_key()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/scripts.py\", line 289, in salt_key\r\n    client.run()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/cli/key.py\", line 32, in run\r\n    key.run()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/key.py\", line 431, in run\r\n    self.finger_all()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/key.py\", line 317, in finger_all\r\n    matches = self.key.finger('*')\r\n  File \"/usr/lib/python2.7/dist-packages/salt/key.py\", line 1332, in finger\r\n    ret[status][key] = self._get_key_finger(path)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/key.py\", line 1145, in _get_key_finger\r\n    keydata['pub'],\r\nKeyError: 'pub'\r\n```\r\n### Setup\r\n(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)\r\n/etc/salt/master:\r\n transport: raet\r\n hash_type: sha256\r\n\r\n### Steps to Reproduce Issue\r\nI have 2 minions accepted.\r\n\r\nI think this is due to how RaetKey._get_key_finger() seems incompatible with the data found in local.key.  self.serial.loads() returns a dictionary with keys \"priv\" and \"sign\" (as written by the write_local() method), but the _get_key_finger() method is expecting \"pub\" and \"verify\".\r\n\r\n### Versions Report\r\n```\r\nSalt Version:\r\n           Salt: 2015.8.8.2\r\n \r\nDependency Versions:\r\n         Jinja2: 2.7.2\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n         PyYAML: 3.10\r\n          PyZMQ: 14.0.1\r\n         Python: 2.7.6 (default, Jun 22 2015, 17:58:13)\r\n           RAET: 0.6.5\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.0.4\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: 1.5\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: 1.5.1\r\n        libgit2: Not Installed\r\n        libnacl: 1.4.4\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.3.0\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\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: Ubuntu 14.04 trusty\r\n        machine: x86_64\r\n        release: 4.2.0-27-generic\r\n         system: Ubuntu 14.04 trusty\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/215786023","html_url":"https://github.com/saltstack/salt/issues/32923#issuecomment-215786023","issue_url":"https://api.github.com/repos/saltstack/salt/issues/32923","id":215786023,"user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T16:14:13Z","updated_at":"2016-04-29T16:14:13Z","body":"@JoshLitt, thanks for reporting.  You are welcome to send a pull request if you have an idea of how to fix this."}}