{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20417","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20417/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20417/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20417/events","html_url":"https://github.com/saltstack/salt/issues/20417","id":56642927,"number":20417,"title":"salt-ssh error when matching with pcre","user":{"login":"Ikke","id":135698,"avatar_url":"https://avatars.githubusercontent.com/u/135698?v=3","gravatar_id":"","url":"https://api.github.com/users/Ikke","html_url":"https://github.com/Ikke","followers_url":"https://api.github.com/users/Ikke/followers","following_url":"https://api.github.com/users/Ikke/following{/other_user}","gists_url":"https://api.github.com/users/Ikke/gists{/gist_id}","starred_url":"https://api.github.com/users/Ikke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ikke/subscriptions","organizations_url":"https://api.github.com/users/Ikke/orgs","repos_url":"https://api.github.com/users/Ikke/repos","events_url":"https://api.github.com/users/Ikke/events{/privacy}","received_events_url":"https://api.github.com/users/Ikke/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/Medium%20Severity","name":"Medium Severity","color":"fad8c7"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-SSH","name":"Salt-SSH","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","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":1941,"closed_issues":1522,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-02-12T18:55:11Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-02-05T08:53:42Z","updated_at":"2015-02-12T19:46:00Z","closed_at":null,"body":"Using the latest develop on Archlinux:\r\n```\r\nsalt --versionsreport\r\n           Salt: 2015.2.0\r\n         Python: 2.7.8 (default, Sep 24 2014, 18:58:24)\r\n         Jinja2: 2.7.3\r\n       M2Crypto: 0.22\r\n msgpack-python: 0.4.2\r\n   msgpack-pure: Not Installed\r\n       pycrypto: 2.6.1\r\n        libnacl: Not Installed\r\n         PyYAML: 3.11\r\n          ioflo: Not Installed\r\n          PyZMQ: 14.3.1\r\n           RAET: Not Installed\r\n            ZMQ: 4.0.4\r\n           Mako: 1.0.0\r\n```\r\nWhen executing `salt-ssh -E 'foo|bar' -r 'echo test'`\r\n\r\nThe following error occurs:\r\n```\r\n[ERROR   ] Failed matching available minions with pcre pattern: pat|wal\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/minions.py\", line 517, in check_minions\r\n    minions = check_func(expr, greedy)\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/minions.py\", line 152, in _check_pcre_minions\r\n    os.chdir(os.path.join(self.opts['pki_dir'], self.acc))\r\nOSError: [Errno 2] No such file or directory: '/etc/salt/pki/master/minions'\r\n```\r\nBut after the error, the command is still executed on each client, and the result is returned. Seems it's doing something extra along what it normally does.\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/74138917","html_url":"https://github.com/saltstack/salt/issues/20417#issuecomment-74138917","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20417","id":74138917,"user":{"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},"created_at":"2015-02-12T19:46:00Z","updated_at":"2015-02-12T19:46:00Z","body":"@sudharsh Did that traceback that you posted have more information to it? Usually tracebacks have the actual exception which was thrown as well."}}