I'm syncing a directory between my salt master and one of my minions. This is salt 2014.1.3 on CentOS 6.4. The basic formula goes:
/data/webdir:
- source: salt://files/mywebdir
Recently, I've been getting this error which I wasn't getting under 2014.1.0:
----------
ID: /data/webdir
Function: file.recurse
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/state.py", line 1378, in call
**cdata['kwargs'])
File "/usr/lib/python2.6/site-packages/salt/states/file.py", line 1936, in recurse
removed = _clean_dir(name, list(keep), exclude_pat)
File "/usr/lib/python2.6/site-packages/salt/states/file.py", line 338, in _clean_dir
shutil.rmtree(nfn)
File "/usr/lib64/python2.6/shutil.py", line 197, in rmtree
onerror(os.path.islink, path, sys.exc_info())
File "/usr/lib64/python2.6/shutil.py", line 195, in rmtree
raise OSError("Cannot call rmtree on a symbolic link")
OSError: Cannot call rmtree on a symbolic link
Changes:
----------
Its apparently having trouble deleting directories with symlinks in order to enforce "clean: True", but even when I add "force_symlinks: True", I get the same error.
Anyone else seeing this? I'm not getting much info on this from web searches.