[Bug 1227207] New: Failure to fetch ext_pillar git
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1227207 Bug ID: 1227207 Summary: Failure to fetch ext_pillar git Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.6 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Salt Assignee: salt-maintainers@suse.de Reporter: seroton10@gmail.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- I have a salt-master configured to have an external pillar, as follows: ext_pillar: - git: - master pki@git:pki-pillar.git git_pillar_update_interval: 3600 git_pillar_privkey: /var/lib/salt/.ssh/id_ed25519 git_pillar_pubkey: /var/lib/salt/.ssh/id_ed25519.pub When the salt-master starts, it is unable to load the pillar configuration, failing with these log entries: 2024-06-30 12:15:06,712 [salt.utils.gitfs :295 ][DEBUG ][24319] Set update lock for git_pillar remote 'master pki@tresor.plexor.net:pki-pillar.git' 2024-06-30 12:15:06,712 [salt.utils.gitfs :295 ][DEBUG ][24319] Fetching git_pillar remote 'master pki@tresor.plexor.net:pki-pillar.git' 2024-06-30 12:15:06,725 [salt.utils.gitfs :295 ][ERROR ][24319] Error occurred fetching git_pillar remote 'master pki@tresor.plexor.net:pki-pillar.git': error loading known_hosts: Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/salt/utils/gitfs.py", line 1989, in _fetch fetch_results = origin.fetch(**fetch_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/site-packages/pygit2/remotes.py", line 160, in fetch payload.check_error(err) File "/usr/lib64/python3.11/site-packages/pygit2/callbacks.py", line 99, in check_error check_error(error_code) File "/usr/lib64/python3.11/site-packages/pygit2/errors.py", line 66, in check_error raise GitError(message) _pygit2.GitError: error loading known_hosts: 2024-06-30 12:15:06,726 [salt.utils.gitfs :295 ][DEBUG ][24319] Removed update lock for git_pillar remote 'master pki@tresor.plexor.net:pki-pillar.git' This issue is described in the following bug report: https://github.com/saltstack/salt/issues/64121 As suggested in the bug report, adding the following override to the salt-master.service unit file solves the problem for me: [Service] Environment=HOME=/var/lib/salt Perhaps consider amending the unit file provided by the salt-master RPM accordingly? -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1227207 Olav Reinert <seroton10@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Product|openSUSE Distribution |openSUSE Tumbleweed Target Milestone|--- |Current Version|Leap 15.6 |Current Hardware|Other |x86-64 Component|Salt |Salt -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1227207 https://bugzilla.suse.com/show_bug.cgi?id=1227207#c1 --- Comment #1 from Olav Reinert <seroton10@gmail.com> --- NAME="openSUSE Tumbleweed" VERSION_ID="20240628" -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com