-
Notifications
You must be signed in to change notification settings - Fork 34
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
Grains missing/lost when keep_alive is False and connection is closed. #69
Comments
P.S - the reason for us enabling |
I believe I have found the issue in salt.utilts.napalm package.. I can do a PR to the SaltStack repo if thats the right place for it?
It appears naplam_base is never loaded (correctly?) so the
Tested my manually importing:
|
I created a related bug in the SaltStack project as I guess that is the right place for it: saltstack/salt#60581 I'm aiming on completing a PR for this. |
Opening this as I believe it to be a bug/undesirable state.
When refresh grains or any sync activity on the proxy (
saltutil.sync_all
) grains populated by Napalm are reset to 'None' when the connection to the device has closed. This occurs when the proxy settingkeep_alive:False
is applied.Instead, what should happen is if a grains refresh is requested, the connection should be restarted and grains re-collected.
proxy.sls:
Workflow:
Proxy log:
Please note I applied the fix for the bug noted here: saltstack/salt#60025
Versions Report:
Note: This is a lab setup but the same is seen in our production setup with the same version but running on CentOS.
Many thanks!
The text was updated successfully, but these errors were encountered: