Open jtraub91 opened 5 years ago
PR opened here https://github.com/saltstack/salt/pull/54853
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Thank you for updating this issue. It is no longer marked as stale.
@Akm0d you did triage on this ticket, is it a regression? what is the criticality?
Description of Issue
According to https://docs.saltstack.com/en/latest/topics/grains/#precedence core grains are assigned first and thus should be overwritten by custom grains in _grains/. However, this is not the case for core grains included in salt/grains/napalm.py
Setup
Need an actual or virtual device capable of being controlled by napalm proxy minion. Need to then configure proxy nominally via pillar data.
Steps to Reproduce Issue
Create custom grain 'interfaces' to override salt-napalm included 'interfaces'. Does not work as described in link above
Test to demonstrate problem (some output modified / redacted) Created custom grain in issue.py
but after syncing:
and in logs from /var/log/salt/proxy
'interfaces' initially didn't exist but then was added the custom grain value of 'test_value' (which must have been subsequently overwritten as seen by output of
salt <proxy-minion-id> grains.item interfaces
command above)Furthermore later in /var/log/salt/proxy we see
Showing the xml being requested and responded to (likely from the core salt-napalm grains)
This isn't the behavior of the more 'standard' core grains:
after syncing:
Versions Report
bash-4.4$ salt --versions-report Salt Version: Salt: 2019.2.0
Dependency Versions: cffi: 1.12.3 cherrypy: unknown dateutil: 2.7.2 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed ioflo: Not Installed Jinja2: 2.9.6 libgit2: 0.27.7 libnacl: Not Installed M2Crypto: 0.33.0 Mako: Not Installed msgpack-pure: Not Installed msgpack-python: 0.5.6 mysql-python: Not Installed pycparser: 2.17 pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: 0.27.4 Python: 2.7.16 (default, May 6 2019, 19:35:26) python-gnupg: 0.4.2 PyYAML: 5.1.1 PyZMQ: 18.1.0 RAET: Not Installed smmap: Not Installed timelib: Not Installed Tornado: 5.1.1 ZMQ: 4.3.2
System Versions: dist: locale: UTF-8 machine: x86_64 release: 3.10.0-862.3.2.el7.x86_64 system: Linux version: Not Installed