salt-master logs:
salt-master[####]: [ERROR ] Error occurred fetching gitfs remote '[email protected]/example-repo.git': error loading known_hosts:salt-master[####]: Traceback (most recent call last):salt-master[####]: File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/gitfs.py", line 2136, in _fetchsalt-master[####]: fetch_results = origin.fetch(**fetch_kwargs)salt-master[####]: File "/opt/saltstack/salt/extras-3.10/pygit2/remotes.py", line 245, in fetchsalt-master[####]: payload.check_error(err)salt-master[####]: File "/opt/saltstack/salt/extras-3.10/pygit2/callbacks.py", line 111, in check_errorsalt-master[####]: check_error(error_code)salt-master[####]: File "/opt/saltstack/salt/extras-3.10/pygit2/errors.py", line 67, in check_errorsalt-master[####]: raise GitError(message)salt-master[####]: _pygit2.GitError: error loading known_hosts:The issue is resolved with Salt version 3006.17
Workaround:
Downgrade pygit2 to version 1.11.1
Issues with either PyGit2 or GitPython are sometimes seen to be solved by switching from one to the other of these git libraries.
Github Issue: