{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/16435","labels_url":"https://api.github.com/repos/saltstack/salt/issues/16435/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/16435/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/16435/events","html_url":"https://github.com/saltstack/salt/issues/16435","id":45128385,"number":16435,"title":"\"and not\" matching expression not possible from secondary master in multi-master configuration","user":{"login":"deuscapturus","id":5497572,"avatar_url":"https://avatars.githubusercontent.com/u/5497572?v=3","gravatar_id":"","url":"https://api.github.com/users/deuscapturus","html_url":"https://github.com/deuscapturus","followers_url":"https://api.github.com/users/deuscapturus/followers","following_url":"https://api.github.com/users/deuscapturus/following{/other_user}","gists_url":"https://api.github.com/users/deuscapturus/gists{/gist_id}","starred_url":"https://api.github.com/users/deuscapturus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deuscapturus/subscriptions","organizations_url":"https://api.github.com/users/deuscapturus/orgs","repos_url":"https://api.github.com/users/deuscapturus/repos","events_url":"https://api.github.com/users/deuscapturus/events{/privacy}","received_events_url":"https://api.github.com/users/deuscapturus/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/Fixed%20Pending%20Verification","name":"Fixed Pending Verification","color":"d4c5f9"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"eb6420"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Multi-Master","name":"Multi-Master","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":2109,"closed_issues":1753,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-04-03T19:17:13Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-10-07T16:24:42Z","updated_at":"2015-04-03T19:34:59Z","closed_at":null,"body":"salt-2014.1.10-4.el6.noarch\r\n\r\nFrom primary salt master  (first in list)\r\n```\r\n[root@ip-10-1-0-116 ec2-user]# salt -C '* and not G@deployment:production' test.ping\r\nip-10-1-0-25.ec2.internal:\r\n    True\r\nip-10-1-0-77.ec2.internal:\r\n    True\r\nip-172-31-61-203.us-west-2.compute.internal:\r\n    True\r\nip-172-31-54-209.us-west-2.compute.internal:\r\n    True\r\nip-172-31-54-104.us-west-2.compute.internal:\r\n    True\r\nip-172-31-23-201.us-west-2.compute.internal:\r\n    True\r\n```\r\n\r\nFrom secondary salt master (second in list)\r\n```\r\n[root@ip-172-31-11-86 minions]# salt -C '* and not G@deployment:production' test.ping\r\nNo minions matched the target. No command was sent, no jid was assigned.\r\n```\r\n\r\nI've noticed that no minion cache exists in the secondary salt master.  And I have not found a way to generate the minion cache on secondary master.\r\n\r\nFrom secondary salt master after running `salt '*' saltutil.sync_all`\r\n```\r\n[root@ip-172-31-11-86 minions]# ls -l /var/cache/salt/master/minions\r\ntotal 0\r\n[root@ip-172-31-11-86 minions]# salt-run cache.grains\r\n[WARNING ] DEPRECATION WARNING: The 'minion' arg will be removed from cache.py runner. Specify minion with 'tgt' arg!\r\nip-10-1-0-114.ec2.internal:\r\n    ----------\r\nip-10-1-0-201.ec2.internal:\r\n    ----------\r\nip-10-1-0-25.ec2.internal:\r\n    ----------\r\nip-10-1-0-250.ec2.internal:\r\n    ----------\r\nip-10-1-10-115.ec2.internal:\r\n    ----------\r\nip-10-1-10-171.ec2.internal:\r\n    ----------\r\nip-10-1-10-197.ec2.internal:\r\n    ----------\r\nip-10-1-12-233.ec2.internal:\r\n    ----------\r\nip-10-1-13-38.ec2.internal:\r\n    ----------\r\nip-172-31-23-201.us-west-2.compute.internal:\r\n    ----------\r\nip-172-31-54-104.us-west-2.compute.internal:\r\n    ----------\r\nip-172-31-54-209.us-west-2.compute.internal:\r\n    ----------\r\nip-172-31-61-203.us-west-2.compute.internal:\r\n    ----------\r\nip-172-31-63-39:\r\n    ----------\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/89400216","html_url":"https://github.com/saltstack/salt/issues/16435#issuecomment-89400216","issue_url":"https://api.github.com/repos/saltstack/salt/issues/16435","id":89400216,"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":"2015-04-03T19:34:59Z","updated_at":"2015-04-03T19:34:59Z","body":"@deuscapturus Can you give the HEAD of 2014.7 a try and let us know if this is fixed for you or not?"}}