Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salt-ssh KeyError: u'sys.doc' #54689

Open
topicgit opened this issue Sep 19, 2019 · 3 comments
Open

Salt-ssh KeyError: u'sys.doc' #54689

topicgit opened this issue Sep 19, 2019 · 3 comments
Labels
Bug broken, incorrect, or confusing behavior Salt-SSH severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
Milestone

Comments

@topicgit
Copy link

Description of Issue

Setup

(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)

salt-ssh 'dqd-e-k8s-node12' test.ping

dqd-e-k8s-node12:
----------
retcode:
1
stderr:
Traceback (most recent call last):
File "/var/tmp/.root_ffb144_salt/salt-call", line 27, in
salt_call()
File "/var/tmp/.root_ffb144_salt/pyall/salt/scripts.py", line 431, in salt_call
client.run()
File "/var/tmp/.root_ffb144_salt/pyall/salt/cli/call.py", line 57, in run
caller.run()
File "/var/tmp/.root_ffb144_salt/pyall/salt/cli/caller.py", line 138, in run
ret = self.call()
File "/var/tmp/.root_ffb144_salt/pyall/salt/cli/caller.py", line 175, in call
docs = self.minion.functions'sys.doc'
File "/var/tmp/.root_ffb144_salt/pyall/salt/loader.py", line 1196, in getitem
func = super(LazyLoader, self).getitem(item)
File "/var/tmp/.root_ffb144_salt/pyall/salt/utils/lazy.py", line 108, in getitem
raise KeyError(key)
KeyError: u'sys.doc'
stdout:

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 2019.2.0

Dependency Versions:
cffi: 1.11.5
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.21.1
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.8
mysql-python: 1.2.5
pycparser: 2.18
pycrypto: 3.8.2
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Nov 6 2016, 00:28:07)
python-gnupg: Not Installed
PyYAML: 3.10
PyZMQ: 14.3.1
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 3.2.5

System Versions:
dist: centos 7.2.1511 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-327.22.2.el7.x86_64
system: Linux
version: CentOS Linux 7.2.1511 Core

@Akm0d Akm0d added this to Backlog in Neon Dec 3, 2019
@Akm0d Akm0d added this to the Approved milestone Dec 3, 2019
@Akm0d Akm0d added Bug broken, incorrect, or confusing behavior Salt-SSH and removed needs-triage labels Dec 5, 2019
@stale
Copy link

stale bot commented Jan 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot added the stale label Jan 7, 2020
@waynew waynew added the Confirmed Salt engineer has confirmed bug/feature - often including a MCVE label Jan 8, 2020
@stale
Copy link

stale bot commented Jan 8, 2020

Thank you for updating this issue. It is no longer marked as stale.

@stale stale bot removed the stale label Jan 8, 2020
@sagetherage sagetherage removed this from Backlog in Neon Jan 24, 2020
@jfoboss
Copy link
Contributor

jfoboss commented Jul 27, 2020

Salt 3000.2 has the same issue:

management-governor-01:
    ----------
    _error:
        Failed to return clean data
    retcode:
        1
    stderr:
        Traceback (most recent call last):
          File "/var/tmp/.centos_b5caa6_salt/salt-call", line 27, in <module>
            salt_call()
          File "/var/tmp/.centos_b5caa6_salt/pyall/salt/scripts.py", line 445, in salt_call
            client.run()
          File "/var/tmp/.centos_b5caa6_salt/pyall/salt/cli/call.py", line 57, in run
            caller.run()
          File "/var/tmp/.centos_b5caa6_salt/pyall/salt/cli/caller.py", line 119, in run
            ret = self.call()
          File "/var/tmp/.centos_b5caa6_salt/pyall/salt/cli/caller.py", line 156, in call
            docs = self.minion.functions['sys.doc']('{0}*'.format(fun))
          File "/var/tmp/.centos_b5caa6_salt/pyall/salt/loader.py", line 1248, in __getitem__
            func = super(LazyLoader, self).__getitem__(item)
          File "/var/tmp/.centos_b5caa6_salt/pyall/salt/utils/lazy.py", line 108, in __getitem__
            raise KeyError(key)
        KeyError: u'sys.doc'

It can be workarounded by using "-W" flag (but salt-ssh will run slower). Hope this may help.

@sagetherage sagetherage added severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around and removed Confirmed Salt engineer has confirmed bug/feature - often including a MCVE labels Apr 22, 2021
@sagetherage sagetherage added this to Severity-Medium in Salt-SSH May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Salt-SSH severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
Salt-SSH
  
Severity-Medium
Development

No branches or pull requests

6 participants