{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/21871","labels_url":"https://api.github.com/repos/saltstack/salt/issues/21871/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/21871/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/21871/events","html_url":"https://github.com/saltstack/salt/issues/21871","id":63379674,"number":21871,"title":"mine.get not updating / returning  (how to refresh the data?)","user":{"login":"nbari","id":364199,"avatar_url":"https://avatars.githubusercontent.com/u/364199?v=3","gravatar_id":"","url":"https://api.github.com/users/nbari","html_url":"https://github.com/nbari","followers_url":"https://api.github.com/users/nbari/followers","following_url":"https://api.github.com/users/nbari/following{/other_user}","gists_url":"https://api.github.com/users/nbari/gists{/gist_id}","starred_url":"https://api.github.com/users/nbari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbari/subscriptions","organizations_url":"https://api.github.com/users/nbari/orgs","repos_url":"https://api.github.com/users/nbari/repos","events_url":"https://api.github.com/users/nbari/events{/privacy}","received_events_url":"https://api.github.com/users/nbari/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"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},"open_issues":244,"closed_issues":492,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-04-13T08:02:09Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-03-21T09:08:30Z","updated_at":"2015-04-13T08:02:09Z","closed_at":"2015-04-13T08:02:09Z","body":"While trying to use [mines](http://docs.saltstack.com/en/latest/topics/mine/) to dynamically update some configuration files,  I am not been available to update or get data after changing something on the minion:\r\n\r\nFor now, I am trying to update an HAproxy conf using this mine:\r\n\r\ncat /salt/pillars/haproxy/init.sls:\r\n\r\n    mine_functions:\r\n        test.ping: []\r\n        network.ip_addrs:\r\n            cidr: '10.15.0.0/16'\r\n            mine_interval: 15\r\n\r\nInitially I called the dir /salt/pillars/**mine**/ and nothing was working until I changed to /salt/pillars/**haproxy**/, but this maybe related of how python work in terms of using dir/file names.\r\n\r\nThe state for configuring the HAproxy uses something like:\r\n\r\n    {%- for server, addrs in salt['mine.get']('node_type:riak', 'network.ip_addrs', expr_form='grain').items() %}\r\n        server {{ server }} {{ addrs[0] }}:8087 weight 1 maxconn 1024 check\r\n    {%- endfor %}\r\n\r\nFor testing I removed the IP of a minion, tried to update the states, but nothing changed also the reply from command line was always the same, therefor I this the following:\r\n\r\n    salt '*' mine.flush\r\n    salt '*' mine.update\r\n    salt '*' saltutil.refresh_pillar\r\n    salt-run cache.clear_all\r\n\r\nAfter doing this in different combinations, I can't get the IP from the mines, only test.ping seems to work:\r\n\r\n    salt haproxy mine.get 'node_type:riak' test.ping grain\r\n\r\n\r\nTherefore I would like to know how to properly update,reflect changes on the mine after something happens on the minion sides.\r\n\r\n\r\nMaster and minions using FreeBSD with:\r\n\r\n    > salt --versions-report                                                                                                                                                                                                                                                                                                                                                \r\n               Salt: 2014.7.2                                                                                                                                                         \r\n             Python: 2.7.9 (default, Jan  5 2015, 10:39:22)                                                                                                                           \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.5.0                                                                                                                                                           \r\n               RAET: Not Installed                                                                                                                                                    \r\n                ZMQ: 4.0.5                                                                                                                                                            \r\n               Mako: Not Installed "},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/92259823","html_url":"https://github.com/saltstack/salt/issues/21871#issuecomment-92259823","issue_url":"https://api.github.com/repos/saltstack/salt/issues/21871","id":92259823,"user":{"login":"nbari","id":364199,"avatar_url":"https://avatars.githubusercontent.com/u/364199?v=3","gravatar_id":"","url":"https://api.github.com/users/nbari","html_url":"https://github.com/nbari","followers_url":"https://api.github.com/users/nbari/followers","following_url":"https://api.github.com/users/nbari/following{/other_user}","gists_url":"https://api.github.com/users/nbari/gists{/gist_id}","starred_url":"https://api.github.com/users/nbari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbari/subscriptions","organizations_url":"https://api.github.com/users/nbari/orgs","repos_url":"https://api.github.com/users/nbari/repos","events_url":"https://api.github.com/users/nbari/events{/privacy}","received_events_url":"https://api.github.com/users/nbari/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T08:02:09Z","updated_at":"2015-04-13T08:02:09Z","body":"Just updated server and minions to version **Salt: 2014.7.4**, and is working"}}