-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new grains not refreshed for matches #5737
Comments
What version are you running? We fixed a bug with regard to this issue recently, and I'm thinking you might not be running the latest. |
@basepi I am using 0.15.3 on both minion and master. |
I'm not sure off the top of my head. Any chance you could test with the 0.16.0 RC (0.15.90) on PyPI, or from the |
@basepi, I just tested with 0.15.90 from PyPi on both master and minion and I still have to run saltutils.sync_modules so that the grain can be matched against. I will test on the develop branch soon and get back. |
I appreciate it. If it wasn't fixed in 0.15.90, then it probably is not fixed in |
@basepi, I am trying to setup master and minion using |
I thought we added a 0.16 tag to make it properly parse as a 0.16 version, but I can't remember. Did you do a In any case, it sounds like the issue is still there in |
ref: #7334 |
@cachedout also make it so that grains get auto refreshed every n minutes, say 5 by default and make it configurabel |
…ars so that it can fire an event back to the master to inform it of its new state. Refs saltstack#5737.
The above PR should address the original issue. Before closing this, I still need to add functionality so that the minion will auto-update its grains every 5 minutes (configurable) and only send a pillar refresh if the grains have changed. (Per @thatch45) |
Fix for #5737 and some minor doc changes.
Pull req pending for auto-refresh. |
…ars so that it can fire an event back to the master to inform it of its new state. Refs #5737.
When a new grain is distributed to the minions by using saltutil.sync_grains, it's data is listed when doing a grains.items but the data cannot be used while matching based on the grains using -G option.
For example, writing a grain like the below
And running
salt '*' saltutil.sync_grains
will distribute the grain.
And it will even show in the output of
sudo salt '*' grains.items
But matching minions, based on the newly written grain data does not work.
salt -G 'spell:alohomora' test.ping
Unless, the minion is restarted OR saltutils.sync_modules is run from the master, matches based on this new grain do not seem to work.
Shouldn't there be some command to get the minion to send/store the newly gained grain ? And shouldn't it be triggered automatically when we do sync_grains ?
The text was updated successfully, but these errors were encountered: