salt: [BUG] gitfs_remotes no longer work when upgrading from 3006.2 to 3006.3

Description When running 3006.2, remote pillars via gitfs works. When upgrading to 3006.3 with the same config, a critical error is displayed.

[ERROR   ] gitfs is configured but could not be loaded, are pygit2 and libgit2 installed?
[CRITICAL] No suitable gitfs provider module is installed.

Setup Using Docker image saltstack/salt:3006.3

master config contains:

fileserver_backend:
  - roots
  - git

gitfs_provider: pygit2
gitfs_base: main
gitfs_remotes:
  - https://github.com/mypublicrepo/salt-config.git

gitfs_global_lock: False

Please be as specific as possible and give set-up details.

  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details
  • container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD
  • classic packaging
  • onedir packaging
  • used bootstrap to install

Steps to Reproduce the behavior docker-compose.yml

version: '3.7'

services:
  master:
    image: saltstack/salt:3006.3
    hostname: master
    command: salt-master -l info
    ports:
      - 4505:4505
      - 4506:4506
    environment:
      - PYTHONUNBUFFERED=true
    volumes:
      - ./etc/master:/etc/salt/master
      - ./salt:/srv/salt
      - ./pillar:/srv/pillar

About this issue

  • Original URL
  • State: open
  • Created 8 months ago
  • Comments: 16 (14 by maintainers)

Most upvoted comments

It’s possible the 3006.2 image would also fail if built anew.

/ # python -c 'import pygit2'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/pygit2/__init__.py", line 33, in <module>
    from .blame import Blame, BlameHunk
  File "/usr/local/lib/python3.10/site-packages/pygit2/blame.py", line 27, in <module>
    from .ffi import ffi, C
  File "/usr/local/lib/python3.10/site-packages/pygit2/ffi.py", line 27, in <module>
    from ._libgit2 import ffi, lib as C
ModuleNotFoundError: No module named 'pygit2._libgit2'

Looks like it didn’t install properly. No indication of why in the build log: https://gitlab.com/saltstack/open/saltdocker/-/jobs/5040710657