{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/25613","labels_url":"https://api.github.com/repos/saltstack/salt/issues/25613/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/25613/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/25613/events","html_url":"https://github.com/saltstack/salt/issues/25613","id":96598594,"number":25613,"title":"v2015.5.2 Salt Mine Returning inconsistent results","user":{"login":"joshughes","id":1671822,"avatar_url":"https://avatars.githubusercontent.com/u/1671822?v=3","gravatar_id":"","url":"https://api.github.com/users/joshughes","html_url":"https://github.com/joshughes","followers_url":"https://api.github.com/users/joshughes/followers","following_url":"https://api.github.com/users/joshughes/following{/other_user}","gists_url":"https://api.github.com/users/joshughes/gists{/gist_id}","starred_url":"https://api.github.com/users/joshughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshughes/subscriptions","organizations_url":"https://api.github.com/users/joshughes/orgs","repos_url":"https://api.github.com/users/joshughes/repos","events_url":"https://api.github.com/users/joshughes/events{/privacy}","received_events_url":"https://api.github.com/users/joshughes/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/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Grains","name":"Grains","color":"006b75"},{"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/P2","name":"P2","color":"155fb5"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Regression","name":"Regression","color":"e11d21"}],"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":2434,"closed_issues":2315,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-07-22T17:32:32Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-07-22T15:44:11Z","updated_at":"2015-07-22T17:33:27Z","closed_at":null,"body":"After upgrading from 2014.7.5 I am seeing many regressions in salt mine functionality that has put me in a position where I will probably have to figure out a way to downgrade. Here is the situation. \r\n\r\n```\r\nroot@inf-use1a-pr-01-salt-salt-0001:~# salt-call mine.get 'G@roles:mariadb and G@mariadb:cluster_name:dev_utopia' network.ip_addrs compound\r\nlocal:\r\n    ----------\r\n    dev-use1a-pr-01-utopia-madb-0001:\r\n        - 10.10.40.19\r\n    dev-use1b-pr-01-utopia-madb-0001:\r\n        - 10.10.50.250\r\n    dev-use1e-pr-01-utopia-madb-0001:\r\n        - 10.10.60.60\r\n```\r\n\r\nThis is returning exactly what I expect... What is interesting is when I put a foobar value into the cluster name.\r\n\r\n```\r\nroot@inf-use1a-pr-01-salt-salt-0001:~# salt-call mine.get 'G@roles:mariadb and G@mariadb:cluster_name:asdfadsfasdad' network.ip_addrs compound\r\nlocal:\r\n    ----------\r\n    dev-use1b-pr-01-utopia-madb-0001:\r\n        - 10.10.50.250\r\n    dev-use1e-pr-01-utopia-madb-0001:\r\n        - 10.10.60.60\r\n```\r\n\r\nAnd finally when I do a simple grain match... \r\n\r\n```\r\nroot@inf-use1a-pr-01-salt-salt-0001:~# salt-call mine.get 'roles:mariadb' network.ip_addrs  grain\r\nlocal:\r\n    ----------\r\n    dev-use1a-pr-01-utopia-madb-0001:\r\n        - 10.10.40.19\r\n```\r\n\r\nSo in the first query I get 3 minions that I expect. \r\n\r\nIn the second I should get 0 minions\r\n\r\nIn the last query I should get the 3 minions I got in the first\r\n\r\nI have tried clearing the mine cache by doing the following... \r\n\r\n```\r\n rm /var/cache/salt/master/minions/*/mine.p && \\\r\n        salt '*' mine.update\r\n```\r\n\r\n```\r\nsalt-run cache.clear_mine tgt='*' && \\\r\n        salt '*' mine.update\r\n```\r\n\r\nIt seems like there is some data somewhere that is corrupting my mine, or the functionality is just broken all together. "},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/123801771","html_url":"https://github.com/saltstack/salt/issues/25613#issuecomment-123801771","issue_url":"https://api.github.com/repos/saltstack/salt/issues/25613","id":123801771,"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-07-22T17:33:26Z","updated_at":"2015-07-22T17:33:26Z","body":"@joshughes, thanks for the report."}}