You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description file.symlink when run with the backupname parameter, will attempt to copy an obstructing directory that is an NFS mountpoint as well. This has the side effect of filling up the local disk on the node. The cause is from file.symlink using the file.move execution module function to rename to the backupname target, which calls shutil.move under the covers. The shutil.move code attempts an os.rename and then falls back on a "copy then unlink" approach if an exception is thrown.
Steps to Reproduce the behavior
Mount an NFS directory, and then create a file.symlink state with backupname set which attempts to create a symlink with the same name as the mount point.
Expected behavior
Probably best to error in this situation so an administrator can take action.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3005+0na.aadaf0bDependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.4msgpack-pure: Not Installedmysql-python: Not Installedpycparser: Not Installedpycrypto: 2.6.1pycryptodome: 3.15.0pygit2: Not InstalledPython: 3.7.3 (default, Jan 22 2021, 20:04:44)python-gnupg: Not InstalledPyYAML: 6.0PyZMQ: 24.0.1smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: debian 10 busterlocale: UTF-8machine: x86_64release: 4.19.0-21-amd64system: Linuxversion: Debian GNU/Linux 10 buster
The text was updated successfully, but these errors were encountered:
Description
file.symlink
when run with thebackupname
parameter, will attempt to copy an obstructing directory that is an NFS mountpoint as well. This has the side effect of filling up the local disk on the node. The cause is fromfile.symlink
using thefile.move
execution module function to rename to thebackupname
target, which callsshutil.move
under the covers. Theshutil.move
code attempts anos.rename
and then falls back on a "copy then unlink" approach if an exception is thrown.Steps to Reproduce the behavior
Mount an NFS directory, and then create a
file.symlink
state withbackupname
set which attempts to create a symlink with the same name as the mount point.Expected behavior
Probably best to error in this situation so an administrator can take action.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: