salt icon indicating copy to clipboard operation
salt copied to clipboard

rsync.rsync function error: "/root/[-avz]" failed: No such file or directory

Open vakulich opened this issue 12 years ago • 3 comments

Description: salt.modules.rsync.rsync function fails every time on both local and remote source paths:

salt node1 rsync.rsync /root/some_file /
node1:
    ----------
    pid:
        28113
    retcode:
        23
    stderr:
        rsync: link_stat "/root/[-avz]" failed: No such file or directory (2)
        rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
    stdout

salt node1 rsync.rsync 10.6.1.1:/root/some_file /
node1:
    ----------
    pid:
        27752
    retcode:
        1
    stderr:
        Unexpected remote arg: 10.6.1.1:/root/some_file
        rsync error: syntax or usage error (code 1) at main.c(1201) [sender=3.0.6]
    stdout:

Possible fix: This could be fixed by the following patch to /usr/lib/python2.6/site-packages/salt/modules/rsync.py file:

    40c40
    <     return ' '.join(options)
    ---
    >     return options

Salt Stack version:

rpm -qa | grep salt
salt-minion-2014.1.4-1.el6.noarch
salt-2014.1.4-1.el6.noarch
salt-master-2014.1.4-1.el6.noarch

vakulich avatar May 27 '14 13:05 vakulich

Would you mind submitting a pull request?

basepi avatar May 27 '14 22:05 basepi

(Also, thanks for your detective work on this. =))

basepi avatar May 27 '14 22:05 basepi

Looks like you got a PR in to fix this. Great work! I'll go ahead and mark this as closed.

cachedout avatar Jun 02 '14 21:06 cachedout