{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/37084","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/37084/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/37084/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/37084/events","html_url":"https://github.com/saltstack/salt/issues/37084","id":183863253,"number":37084,"title":"x509.certificate_managed does not work with m2crypto >=0.25","user":{"login":"AaronM-Cloudtek","id":11548856,"avatar_url":"https://avatars.githubusercontent.com/u/11548856?v=3","gravatar_id":"","url":"https://api.github.com/users/AaronM-Cloudtek","html_url":"https://github.com/AaronM-Cloudtek","followers_url":"https://api.github.com/users/AaronM-Cloudtek/followers","following_url":"https://api.github.com/users/AaronM-Cloudtek/following{/other_user}","gists_url":"https://api.github.com/users/AaronM-Cloudtek/gists{/gist_id}","starred_url":"https://api.github.com/users/AaronM-Cloudtek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AaronM-Cloudtek/subscriptions","organizations_url":"https://api.github.com/users/AaronM-Cloudtek/orgs","repos_url":"https://api.github.com/users/AaronM-Cloudtek/repos","events_url":"https://api.github.com/users/AaronM-Cloudtek/events{/privacy}","received_events_url":"https://api.github.com/users/AaronM-Cloudtek/received_events","type":"User","site_admin":false},"labels":[{"id":41387723,"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":67287385,"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0","default":false},{"id":41387237,"url":"https://api.github.com/repos/saltstack/salt/labels/Execution%20Module","name":"Execution Module","color":"006b75","default":false},{"id":41388135,"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143","default":false},{"id":194766324,"url":"https://api.github.com/repos/saltstack/salt/labels/P4","name":"P4","color":"031a39","default":false},{"id":41387450,"url":"https://api.github.com/repos/saltstack/salt/labels/State%20Module","name":"State Module","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"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":3236,"closed_issues":4107,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-11-01T16:02:37Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-10-19T04:29:17Z","updated_at":"2016-11-01T16:23:34Z","closed_at":null,"body":"### Description of Issue/Question\n\nx509.certificate_managed does not work with m2crypto >=0.25 due to missing x509v3_lhash function\n### Steps to Reproduce Issue\n1. Install m2crypto >=0.25 on minion\n2. Invoke x509.certificate_managed state\n\nResult:\n\n```\n    ID: /etc/pki/ca.crt\n    Function: x509.certificate_managed\n      Result: False\n     Comment: An exception occurred in this state: Traceback (most recent call last):\n                File \"/usr/lib/python2.7/site-packages/salt/state.py\", line 1733, in call\n                  **cdata['kwargs'])\n                File \"/usr/lib/python2.7/site-packages/salt/loader.py\", line 1652, in wrapper\n                  return f(*args, **kwargs)\n                File \"/usr/lib/python2.7/site-packages/salt/states/x509.py\", line 432, in certificate_managed\n                  new = __salt__['x509.create_certificate'](testrun=True, **kwargs)\n                File \"/usr/lib/python2.7/site-packages/salt/modules/x509.py\", line 1185, in create_certificate\n                  ext = _new_extension(name=extname, value=extval, critical=critical, issuer=issuer)\n                File \"/usr/lib/python2.7/site-packages/salt/modules/x509.py\", line 118, in _new_extension\n                  lhash = M2Crypto.m2.x509v3_lhash()                      # pylint: disable=no-member\n              AttributeError: 'module' object has no attribute 'x509v3_lhash'\n```\n### Versions Report\n\nMinion:\n\n```\nSalt Version:\n           Salt: 2016.3.3\n\nDependency Versions:\n           cffi: Not Installed\n       cherrypy: Not Installed\n       dateutil: Not Installed\n          gitdb: Not Installed\n      gitpython: Not Installed\n          ioflo: Not Installed\n         Jinja2: 2.7.2\n        libgit2: Not Installed\n        libnacl: Not Installed\n       M2Crypto: 0.25.1\n           Mako: Not Installed\n   msgpack-pure: Not Installed\n msgpack-python: 0.4.8\n   mysql-python: Not Installed\n      pycparser: Not Installed\n       pycrypto: 2.6.1\n         pygit2: Not Installed\n         Python: 2.7.5 (default, Sep 15 2016, 22:37:39)\n   python-gnupg: Not Installed\n         PyYAML: 3.11\n          PyZMQ: 15.3.0\n           RAET: Not Installed\n          smmap: Not Installed\n        timelib: Not Installed\n        Tornado: 4.2.1\n            ZMQ: 4.1.4\n\nSystem Versions:\n           dist: centos 7.2.1511 Core\n        machine: x86_64\n        release: 4.4.19-1-pve\n         system: Linux\n        version: CentOS Linux 7.2.1511 Core\n```\n\nMaster:\n\n```\nSalt Version:\n           Salt: 2016.3.3\n\nDependency Versions:\n           cffi: Not Installed\n       cherrypy: Not Installed\n       dateutil: Not Installed\n          gitdb: Not Installed\n      gitpython: Not Installed\n          ioflo: Not Installed\n         Jinja2: 2.7.2\n        libgit2: Not Installed\n        libnacl: Not Installed\n       M2Crypto: Not Installed\n           Mako: Not Installed\n   msgpack-pure: Not Installed\n msgpack-python: 0.4.8\n   mysql-python: Not Installed\n      pycparser: Not Installed\n       pycrypto: 2.6.1\n         pygit2: Not Installed\n         Python: 2.7.5 (default, Sep 15 2016, 22:37:39)\n   python-gnupg: Not Installed\n         PyYAML: 3.11\n          PyZMQ: 15.3.0\n           RAET: Not Installed\n          smmap: Not Installed\n        timelib: Not Installed\n        Tornado: 4.2.1\n            ZMQ: 4.1.4\n\nSystem Versions:\n           dist: centos 7.2.1511 Core\n        machine: x86_64\n        release: 4.4.19-1-pve\n         system: Linux\n        version: CentOS Linux 7.2.1511 Core\n```\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/257613201","html_url":"https://github.com/saltstack/salt/issues/37084#issuecomment-257613201","issue_url":"https://api.github.com/repos/saltstack/salt/issues/37084","id":257613201,"user":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T16:23:34Z","updated_at":"2016-11-01T16:23:34Z","body":"@clinta You might be interested in taking a look at this issue."}}
{"actor":{"display_login":"rallytime"}}