{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/27595","labels_url":"https://api.github.com/repos/saltstack/salt/issues/27595/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/27595/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/27595/events","html_url":"https://github.com/saltstack/salt/issues/27595","id":109276704,"number":27595,"title":"Debian package does not depend on python-m2crypto which is required by the x509 state/module","user":{"login":"ralphvanetten","id":1533323,"avatar_url":"https://avatars.githubusercontent.com/u/1533323?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphvanetten","html_url":"https://github.com/ralphvanetten","followers_url":"https://api.github.com/users/ralphvanetten/followers","following_url":"https://api.github.com/users/ralphvanetten/following{/other_user}","gists_url":"https://api.github.com/users/ralphvanetten/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphvanetten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphvanetten/subscriptions","organizations_url":"https://api.github.com/users/ralphvanetten/orgs","repos_url":"https://api.github.com/users/ralphvanetten/repos","events_url":"https://api.github.com/users/ralphvanetten/events{/privacy}","received_events_url":"https://api.github.com/users/ralphvanetten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Pending%20Discussion","name":"Pending Discussion","color":"c7def8"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Won't%20Fix%20For%20Now","name":"Won't Fix For Now","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"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":286,"closed_issues":652,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-10-06T18:32:59Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-10-01T10:54:44Z","updated_at":"2015-10-06T18:35:53Z","closed_at":null,"body":"I installed salt using the Debian packages from repo.saltstack.com with the following apt.sources:\r\n\r\n`deb http://repo.saltstack.com/apt/debian jessie contrib`\r\n\r\nWhile using the x509 module I got the following error on a minion:\r\n\r\n```\r\nAn exception occurred in this state: Traceback (most recent call last):\r\n                File \"/usr/lib/python2.7/dist-packages/salt/state.py\", line 1591, in call\r\n                  **cdata['kwargs'])\r\n                File \"/usr/lib/python2.7/dist-packages/salt/states/x509.py\", line 599, in pem_managed\r\n                  new = __salt__['x509.get_pem_entry'](text=text)\r\n                File \"/usr/lib/python2.7/dist-packages/salt/utils/lazy.py\", line 90, in __getitem__\r\n                  return self._dict[key]\r\n              KeyError: 'x509.get_pem_entry'\r\n```\r\n\r\nFurther investigation showed the m2crypto package was not installed. The m2crypto package is required for the x509 state/module.\r\n\r\nThe salt-minon Debian package should depend on it but currently is does not:\r\n\r\n```\r\n$ apt-cache show salt-minion\r\nPackage: salt-minion\r\nSource: salt\r\nVersion: 2015.8.0+ds-2\r\nArchitecture: all\r\nMaintainer: Debian Salt Team <pkg-salt-team@lists.alioth.debian.org>\r\nInstalled-Size: 127\r\nDepends: init-system-helpers (>= 1.18~), python, python:any (>= 2.6~), salt-common (= 2015.8.0+ds-2), python-crypto, python-msgpack, python-zmq (>= 13.1.0), dctrl-tools\r\n```\r\n\r\nAfter installing `python-m2crypo` manually it worked as expected.\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/145958306","html_url":"https://github.com/saltstack/salt/issues/27595#issuecomment-145958306","issue_url":"https://api.github.com/repos/saltstack/salt/issues/27595","id":145958306,"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":"2015-10-06T18:35:53Z","updated_at":"2015-10-06T18:35:53Z","body":"@ralphvanetten, thanks for the report.  Starting with 2015.8.0, m2crypto has been removed as a core dependency for salt in favor of pycrypto.  @deprecator can provide more information on why this was done.  There are many salt plugins that require external dependencies.  The error message in this situation could be better, but it is unlikely that we will add m2crypto as a package dependency."}}