[Pkg-salt-team] Bug#738954: Bug#738954: salt-minion: file.find crashes on dangling symlinks

Joe Healy joehealy at gmail.com
Sun Feb 16 12:39:25 UTC 2014


Hi Avinash,

Now that 0.17.5+ds has reached testing, I am intending to backport this to
wheezy (and squeeze). I'm planning to do this over the next day or two.

Thanks,

Joe


On Fri, Feb 14, 2014 at 7:53 PM, Avinash Sultanpur <avinash.s at yukthi.com>wrote:

> Package: salt-minion
> Version: 0.16.4-2~bpo70+1
> Severity: important
>
> salt-call throws up an error when it encounters a dangling
> symlink. The bug was fixed upstream:
>
>  https://github.com/saltstack/salt/issues/2830
>
> $ sudo salt-call -l quiet --local file.find /tmp type=d
> Traceback (most recent call last):
>   File "/usr/bin/salt-call", line 11, in <module>
>     salt_call()
>   File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 76, in
> salt_call
>     client.run()
>   File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 265,
> in run
>     caller.run()
>   File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 132, in
> run
>     ret = self.call()
>   File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 73, in
> call
>     ret['return'] = func(*args, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 480,
> in find
>     ret = [p for p in finder.find(path)]
>   File "/usr/lib/python2.7/dist-packages/salt/utils/find.py", line 555, in
> find
>     fstat = os.stat(fullpath)
> OSError: [Errno 13] Permission denied: '/tmp/link'
>
> Please include the fix in the deb.
>
>
> -- System Information:
> Debian Release: 7.2
>   APT prefers stable
>   APT policy: (900, 'stable'), (500, 'stable-updates')
> Architecture: i386 (i686)
>
> Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
> Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages salt-minion depends on:
> ii  dctrl-tools           2.22.2
> ii  python                2.7.3-4+deb7u1
> ii  python-pkg-resources  0.6.24-1
> ii  salt-common           0.16.4-2~bpo70+1
>
> Versions of packages salt-minion recommends:
> ii  dmidecode  2.11-9
>
> Versions of packages salt-minion suggests:
> pn  python-augeas  <none>
>
> -- no debconf information
>
> _______________________________________________
> pkg-salt-team mailing list
> pkg-salt-team at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-salt-team
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-salt-team/attachments/20140216/373b11ed/attachment.html>


More information about the pkg-salt-team mailing list