{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/28675","labels_url":"https://api.github.com/repos/saltstack/salt/issues/28675/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/28675/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/28675/events","html_url":"https://github.com/saltstack/salt/issues/28675","id":115645848,"number":28675,"title":"Filtering minions with unicode grains fails ","user":{"login":"rominf","id":3449635,"avatar_url":"https://avatars.githubusercontent.com/u/3449635?v=3","gravatar_id":"","url":"https://api.github.com/users/rominf","html_url":"https://github.com/rominf","followers_url":"https://api.github.com/users/rominf/followers","following_url":"https://api.github.com/users/rominf/following{/other_user}","gists_url":"https://api.github.com/users/rominf/gists{/gist_id}","starred_url":"https://api.github.com/users/rominf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rominf/subscriptions","organizations_url":"https://api.github.com/users/rominf/orgs","repos_url":"https://api.github.com/users/rominf/repos","events_url":"https://api.github.com/users/rominf/events{/privacy}","received_events_url":"https://api.github.com/users/rominf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-07T08:04:32Z","updated_at":"2015-11-07T08:04:32Z","closed_at":null,"body":"Some minions have unicode grains:\r\n```\r\n$ salt stolb-db.orel grains.get location\r\nstolb-db.orel:\r\n    Орёл, городской округ Орёл, Орловская область, ЦФО, Россия\r\n```\r\n\r\nWhen I filter minions using this grain `salt` fails:\r\n```\r\n$ salt -G 'location:*Россия' test.ping\r\nstolb-db.orel:\r\n    Minion did not return. [No response]\r\n$ salt -G 'location:Орёл, городской округ Орёл, Орловская область, ЦФО, Россия' test.ping\r\nstolb-db.orel:\r\n    Minion did not return. [No response]\r\n```\r\n\r\nFiltering with other grain work well though:\r\n```\r\n$ salt -G 'project:svk' test.ping\r\nstolb-db.orel:\r\n    True\r\n```\r\n\r\n```\r\nsalt --versions-report\r\nSalt Version:\r\n           Salt: 2015.8.0\r\n \r\nDependency Versions:\r\n         Jinja2: 2.7.3\r\n       M2Crypto: 0.22\r\n         Jinja2: 2.7.3\r\n       M2Crypto: 0.22\r\n           Mako: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 14.7.0\r\n         Python: 2.7.6 (default, Nov 21 2013, 15:55:38) [GCC]\r\n           RAET: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.1.2\r\n           cffi: 1.1.0\r\n       cherrypy: Not Installed\r\n       dateutil: 2.4.2\r\n          gitdb: 0.6.4\r\n      gitpython: Not Installed\r\n          ioflo: 1.3.8\r\n        libnacl: 1.4.3\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.6\r\n   mysql-python: Not Installed\r\n      pycparser: 2.12\r\n       pycrypto: 2.6.1\r\n         pygit2: 0.22.0\r\n   python-gnupg: Not Installed\r\n          smmap: 0.9.0\r\n        timelib: Not Installed\r\n \r\nSystem Versions:\r\n           dist: SuSE 13.1 x86_64\r\n        machine: x86_64\r\n        release: 3.11.10-29-default\r\n         system: openSUSE  13.1 x86_64\r\n```"}}