Custom grains are evaluated twice per master at salt-minion startup time and grains refresh #43941
Labels
Bug
broken, incorrect, or confusing behavior
Core
relates to code central or existential to Salt
fixed-pls-verify
fix is linked, bug author to confirm fix
Grains
P3
Priority 3
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
ZD
The issue is related to a Zendesk customer support ticket.
Milestone
issue1839_grain.py.txt
Description of Issue/Question
When grains are evaluated at startup time or when ordered to do a grains refresh, custom grains are executed twice per master. I'm not sure if the internal grains are executed twice or not.
Setup
To set this up put the following file in your
/srv/salt/_grains/
directory:I've also attached the file to this issue.
Steps to Reproduce Issue
On the salt-minion stop the salt-minion daemon and then start up the minion in the foreground.
Then you can run the following on the salt master and you'll see that for each Salt Master your minion is connected to it will evaluate the grains twice.
In this example the minion is connected to two salt syndics as masters so when I run a command from the master of masters I get 4 warning log entries:
I also tested on 2017.7.1 and got the same exact behavior.
The text was updated successfully, but these errors were encountered: