{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/26274","labels_url":"https://api.github.com/repos/saltstack/salt/issues/26274/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/26274/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/26274/events","html_url":"https://github.com/saltstack/salt/issues/26274","id":100645095,"number":26274,"title":"sentry_return does not work with raven>3.5  (current stable version: raven==5.5.0)","user":{"login":"schlagify","id":11273163,"avatar_url":"https://avatars.githubusercontent.com/u/11273163?v=3","gravatar_id":"","url":"https://api.github.com/users/schlagify","html_url":"https://github.com/schlagify","followers_url":"https://api.github.com/users/schlagify/followers","following_url":"https://api.github.com/users/schlagify/following{/other_user}","gists_url":"https://api.github.com/users/schlagify/gists{/gist_id}","starred_url":"https://api.github.com/users/schlagify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schlagify/subscriptions","organizations_url":"https://api.github.com/users/schlagify/orgs","repos_url":"https://api.github.com/users/schlagify/repos","events_url":"https://api.github.com/users/schlagify/events{/privacy}","received_events_url":"https://api.github.com/users/schlagify/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/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P3","name":"P3","color":"0a3d77"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Returners","name":"Returners","color":"006b75"}],"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":2639,"closed_issues":2812,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-10-26T12:19:03Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-12T22:02:57Z","updated_at":"2015-10-26T15:19:12Z","closed_at":null,"body":"From salt-users (https://groups.google.com/forum/#!topic/salt-users/OO1cTZSNXrE):\r\n\r\nI have the following configuration for a sentry_handler:\r\n\r\n--snip\r\n```saltstack\r\nsentry_handler:\r\n\r\n  dsn:       https://[munged]:[munged]@app.getsentry.com/[munged]\r\n\r\n  log_level: all\r\n\r\n```\r\n--snip\r\n\r\nI have this in pillar:\r\n\r\n--snip\r\n\r\n```saltstack\r\nraven:\r\n\r\n  servers:\r\n\r\n    - https://[munged]:[munged]@app.getsentry.com/[munged]\r\n\r\n  public_key: [munged]\r\n\r\n  secret_key: [munged]\r\n\r\n  project:    salt\r\n\r\n  tags:\r\n\r\n    - os\r\n\r\n    - master\r\n\r\n    - saltversion\r\n\r\n    - cpuarch\r\n```\r\n--snip\r\n\r\n\r\nand I have raven==5.5.0 in the virtualenv for my salt master.  My virtualenv pip pkgs are thus:\r\n\r\n--snip\r\n```console\r\n# pip freeze\r\n\r\nbackports.ssl-match-hostname==3.4.0.2\r\n\r\ncertifi==2015.4.28\r\n\r\ncffi==1.1.2\r\n\r\nCherryPy==3.7.0\r\n\r\ncryptography==0.9.1\r\n\r\nenum34==1.0.4\r\n\r\nidna==2.0\r\n\r\nipaddress==1.0.7\r\n\r\nJinja2==2.7.3\r\n\r\nlibnacl==1.4.3\r\n\r\nM2Crypto==0.22.3\r\n\r\nMarkupSafe==0.23\r\n\r\nmsgpack-python==0.4.6\r\n\r\npyasn1==0.1.8\r\n\r\npycparser==2.14\r\n\r\npycrypto==2.6.1\r\n\r\npyOpenSSL==0.15.1\r\n\r\npysodium==0.6.6\r\n\r\nPyYAML==3.11\r\n\r\npyzmq==14.6.0\r\n\r\nraven==5.5.0\r\n\r\nrequests==2.7.0\r\n\r\nsalt==2015.5.3\r\n\r\nsix==1.9.0\r\n\r\ntornado==4.2\r\n\r\nwheel==0.24.0\r\n```\r\n--snip\r\n\r\n\r\n```yaml\r\nsalt-master --versions-report\r\n\r\n           Salt: 2015.5.3\r\n\r\n         Python: 2.7.3 (default, Mar 13 2014, 11:03:55)\r\n\r\n         Jinja2: 2.7.3\r\n\r\n       M2Crypto: 0.22\r\n\r\n msgpack-python: 0.4.6\r\n\r\n   msgpack-pure: Not Installed\r\n\r\n       pycrypto: 2.6.1\r\n\r\n        libnacl: 1.4.3\r\n\r\n         PyYAML: 3.11\r\n\r\n          ioflo: Not Installed\r\n\r\n          PyZMQ: 14.6.0\r\n\r\n           RAET: Not Installed\r\n\r\n            ZMQ: 4.0.5\r\n\r\n           Mako: Not Installed\r\n\r\n        Tornado: 4.2\r\n```\r\n\r\n\r\nWhen I start my master up, I get this error...\r\n\r\n--snip\r\n```python-traceback\r\n/etc/init.d/salt-master start\r\n\r\n[....] Starting salt master control daemon: salt-master[ERROR   ] 'module' object has no attribute 'load'\r\n\r\nTraceback (most recent call last):\r\n\r\n  File \"/var/src/salt/local/lib/python2.7/site-packages/salt/utils/parsers.py\", line 167, in parse_args\r\n\r\n    mixin_after_parsed_func(self)\r\n\r\n  File \"/var/src/salt/local/lib/python2.7/site-packages/salt/utils/parsers.py\", line 713, in __setup_extended_logging\r\n\r\n    log.setup_extended_logging(self.config)\r\n\r\n  File \"/var/src/salt/local/lib/python2.7/site-packages/salt/log/setup.py\", line 573, in setup_extended_logging\r\n\r\n    handlers = get_handlers_func()\r\n\r\n  File \"/var/src/salt/local/lib/python2.7/site-packages/salt/log/handlers/sentry_mod.py\", line 109, in setup_handlers\r\n\r\n    dsn_config = raven.load(dsn)\r\n\r\nAttributeError: 'module' object has no attribute 'load'\r\n\r\nUsage: salt-master\r\n\r\nsalt-master: error: Error while processing <bound method Master.__setup_extended_logging of <salt.cli.daemons.Master object at 0x7f65e8bf5590>>: Traceback (most recent call last):\r\n\r\n  File \"/var/src/salt/local/lib/python2.7/site-packages/salt/utils/parsers.py\", line 167, in parse_args\r\n\r\n    mixin_after_parsed_func(self)\r\n\r\n  File \"/var/src/salt/local/lib/python2.7/site-packages/salt/utils/parsers.py\", line 713, in __setup_extended_logging\r\n\r\n    log.setup_extended_logging(self.config)\r\n\r\n  File \"/var/src/salt/local/lib/python2.7/site-packages/salt/log/setup.py\", line 573, in setup_extended_logging\r\n\r\n    handlers = get_handlers_func()\r\n\r\n  File \"/var/src/salt/local/lib/python2.7/site-packages/salt/log/handlers/sentry_mod.py\", line 109, in setup_handlers\r\n\r\n    dsn_config = raven.load(dsn)\r\n\r\nAttributeError: 'module' object has no attribute 'load'\r\n\r\n\r\n\r\n\r\n failed!\r\n```\r\n--snip\r\n\r\nFound the suggestion to downgrade raven to 3.5.2 in this post:  https://groups.google.com/forum/#!topic/salt-users/SnwyRABrxG4\r\n\r\n\r\nMy salt-master version:\r\n\r\n```yaml\r\nsalt-master --versions-report\r\n           Salt: 2015.5.3\r\n         Python: 2.7.3 (default, Mar 13 2014, 11:03:55)\r\n         Jinja2: 2.7.3\r\n       M2Crypto: 0.22\r\n msgpack-python: 0.4.6\r\n   msgpack-pure: Not Installed\r\n       pycrypto: 2.6.1\r\n        libnacl: 1.4.3\r\n         PyYAML: 3.11\r\n          ioflo: Not Installed\r\n          PyZMQ: 14.6.0\r\n           RAET: Not Installed\r\n            ZMQ: 4.0.5\r\n           Mako: Not Installed\r\n        Tornado: 4.2\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/151170990","html_url":"https://github.com/saltstack/salt/issues/26274#issuecomment-151170990","issue_url":"https://api.github.com/repos/saltstack/salt/issues/26274","id":151170990,"user":{"login":"arthurlogilab","id":445200,"avatar_url":"https://avatars.githubusercontent.com/u/445200?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurlogilab","html_url":"https://github.com/arthurlogilab","followers_url":"https://api.github.com/users/arthurlogilab/followers","following_url":"https://api.github.com/users/arthurlogilab/following{/other_user}","gists_url":"https://api.github.com/users/arthurlogilab/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurlogilab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurlogilab/subscriptions","organizations_url":"https://api.github.com/users/arthurlogilab/orgs","repos_url":"https://api.github.com/users/arthurlogilab/repos","events_url":"https://api.github.com/users/arthurlogilab/events{/privacy}","received_events_url":"https://api.github.com/users/arthurlogilab/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T15:19:12Z","updated_at":"2015-10-26T15:19:12Z","body":"I'm not sure if this is the same bug, but with the logger I'm getting \r\n```\r\nUnable to capture event: APIError(Missing required Origin or Referer header)\r\nUnable to capture event: APIError(Missing required Origin or Referer header)\r\n[snip]\r\nFailed to submit message: u'You should upgrade pyOpenSSL to at least 0.14.1 to enable the use of X509 extensions'\r\nFailed to submit message: u'You should upgrade pyOpenSSL to at least 0.14.1 to enable the use of X509 extensions'\r\n```\r\n\r\non the sentry side I get \r\n```\r\nstatus=400 project_id=None user_id=None ip=<IP> agent=raven-python/5.2.0 Missing required Origin or Referer header\r\n```\r\n\r\nsticked to raven 5.2.0 but changed the config to get it working, will create a new issue for this.\r\n"}}