[Pkg-salt-team] Bug#742653: Bug#742653: salt-ssh search for a ssh_user key

Joe Healy joehealy at gmail.com
Tue Mar 25 23:45:51 UTC 2014


Looks like this is an upstream bug.

I'm passing it upstream with some additional comments.

https://github.com/saltstack/salt/issues/11525

I think if you add:

ssh_user: root

to your /etc/salt/master config file, then it will work. You may also need
some similar options.

Thanks,


Joe



On Wed, Mar 26, 2014 at 10:16 AM, Gilles Mocellin <
gilles.mocellin at nuagelibre.org> wrote:

> Package: salt-ssh
> Version: 2014.1.1+ds-1
> Severity: important
>
> Dear Maintainer,
>
> Since last upgrade (I think after 0.17, so 2014.1.0+ds-1), I can not use
> anymore salt-ssh.
>
> Here is the backtrace :
> sudo salt-ssh 'host*' test.ping
>
>        1
> [ERROR   ] An un-handled exception was caught by salt's global exception
> handler:
> KeyError: 'ssh_user'
> Traceback (most recent call last):
>   File "/usr/bin/salt-ssh", line 10, in <module>
>     salt_ssh()
>   File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 108, in
> salt_ssh
>     client.run()
>   File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 369,
> in run
>     ssh = salt.client.ssh.SSH(self.config)
>   File "/usr/lib/python2.7/dist-packages/salt/client/ssh/__init__.py",
> line 202, in __init__
>     salt.config.DEFAULT_MASTER_OPTS['ssh_user']
>
> I tried to replace the user entry in my /etc/salt/roster by ssh_user, but
> it's not working.
> I don't know where salt search for a default master option with the name
> ssh_user...
>
>
> -- System Information:
> Debian Release: jessie/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (101, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages salt-ssh depends on:
> ii  python-msgpack  0.3.0-1
> pn  python:any      <none>
> ii  salt-common     2014.1.1+ds-1
> ii  sshpass         1.05-1
>
> salt-ssh recommends no packages.
>
> salt-ssh suggests no packages.
>
> -- Configuration Files:
> /etc/salt/roster changed [not included]
>
> -- 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/20140326/0816cc63/attachment.html>


More information about the pkg-salt-team mailing list