saltstack / saltstack/salt

Salt-ssh KeyError: u'sys.doc'

Open
#54,689 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Salt-SSH severity-medium
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported salt-ssh test.ping reproduction and trace the failure through salt/cli/caller.py, where sys.doc is requested, into salt/loader.py and salt/utils/lazy.py. Confirm why the sys.doc lookup raises KeyError and verify that the same command completes without the reported traceback.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.