-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Description
Description
Using salt ssh file.recurse, file.copy recipes on Debian 13 target system leads to errors related to inability to copy files/directories. On other Debian(11,12) versions and Ubuntu 22/24 the same examples work fine.
Setup
We use 3007.2-3007.6 salt-ssh installed on ubuntu 24.04 in Docker. Target system - Debian 13 LXD container or Debian 13 cloud KVM VM.
We also tried to apply patches: #67789, #67788 - but it doesn't changing anything except suppressing some errors in salt-call.log.
Steps to Reproduce the behavior
We have a directory that we want to copy to the target system. After applying the recipe, a strange error occurred: some characters in the source were deleted.
/etc/apt:
file.recurse:
- source: salt://container/apt/trixie_overlay/etc/apt
- dir_mode: 775
- file_mode: 664
- makedirs: True
- user: root
- group: root
sd-trixie.sd:
host: 10.96.201.141
user: root
priv: /root/.ssh/id_rsa
port: 22
thin_dir: /root/salt/
timeout: 300
ID: /etc/apt
Function: file.recurse
Result: False
Comment: #### /etc/apt/sources.list.d ####
The following files will be changed:
/etc/apt/sources.list.d: mode - 0775
#### /etc/apt/preferences.d ####
The following files will be changed:
/etc/apt/preferences.d: mode - 0775
#### /etc/apt/apt.conf.d ####
The following files will be changed:
/etc/apt/apt.conf.d: mode - 0775
#### /etc/apt/sources.list.d/debian.sources ####
Source file salt://tainer/apt/trixie_overlay/etc/apt/sources.list.d/debian.sources?saltenv=base not found in saltenv 'base'
#### /etc/apt/sources.list.d/nodesource.sources ####
Source file salt://tainer/apt/trixie_overlay/etc/apt/sources.list.d/nodesource.sources?saltenv=base not found in saltenv 'base'
#### /etc/apt/apt.conf.d/99timeout ####
Source file salt://tainer/apt/trixie_overlay/etc/apt/apt.conf.d/99timeout?saltenv=base not found in saltenv 'base'
#### /etc/apt/preferences.d/anacron ####
Source file salt://tainer/apt/trixie_overlay/etc/apt/preferences.d/anacron?saltenv=base not found in saltenv 'base'
#### /etc/apt/apt.conf.d/99disable-cache ####
Source file salt://tainer/apt/trixie_overlay/etc/apt/apt.conf.d/99disable-cache?saltenv=base not found in saltenv 'base'
#### /etc/apt/apt.conf.d/99force-ipv4 ####
Source file salt://tainer/apt/trixie_overlay/etc/apt/apt.conf.d/99force-ipv4?saltenv=base not found in saltenv 'base'
#### /etc/apt/apt.conf.d/99disable-auto-install ####
Source file salt://tainer/apt/trixie_overlay/etc/apt/apt.conf.d/99disable-auto-install?saltenv=base not found in saltenv 'base'
#### /etc/apt/apt.conf.d/20auto-upgrades ####
Source file salt://tainer/apt/trixie_overlay/etc/apt/apt.conf.d/20auto-upgrades?saltenv=base not found in saltenv 'base'
...
Expected behavior
Files are copied to target system
Additional info
On target system I see /root/salt/salt_state.tgz file containing valid set of copied files.
Tracing/debugging do not show any useful info about bug.
Versions Report
Salt Version:
Salt: 3007.6
Python Version:
Python: 3.10.17 (main, Jul 2 2025, 22:34:57) [GCC 11.2.0]
Dependency Versions:
cffi: 1.16.0
cherrypy: 18.8.0
cryptography: 42.0.5
dateutil: 2.8.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.6
libgit2: Not Installed
looseversion: 1.3.0
M2Crypto: 0.45.1
Mako: Not Installed
msgpack: 1.0.7
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 24.0
pycparser: 2.21
pycrypto: 2.6.1
pycryptodome: 3.19.1
pygit2: Not Installed
python-gnupg: 0.5.2
PyYAML: 6.0.1
PyZMQ: 25.1.2
relenv: 0.19.4
smmap: Not Installed
timelib: 0.3.0
Tornado: 6.4.2
ZMQ: 4.3.4
Salt Package Information:
Package Type: onedir
System Versions:
dist: ubuntu 24.04.3 noble
locale: utf-8
machine: x86_64
release: 6.14.0-27-generic
system: Linux
version: Ubuntu 24.04.3 noble