salt.exceptions.SaltClientError in pipenv virtual env
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
Description of Issue
Gets the following error while try to create salt.client.Caller object inside pipenv. The same object creation works pretty well outside of pipenv venv.
Steps to Reproduce Issue
vikky@vikky:~/blueprints$ pipenv shell
Launching subshell in virtual environment...
. /home/vikky/.local/share/virtualenvs/blueprints-qKQexZsE/bin/activate
vikky@vikky:~/blueprints$ . /home/vikky/.local/share/virtualenvs/blueprints-qKQexZsE/bin/activate
(blueprints) vikky@vikky:~/blueprints$ python
Python 2.7.15+ (default, Oct 7 2019, 17:39:04)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import salt.client
>>> _salt = salt.client.Caller()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vikky/.local/share/virtualenvs/blueprints-qKQexZsE/local/lib/python2.7/site-packages/salt/client/__init__.py", line 2107, in __init__
self.sminion = salt.minion.SMinion(self.opts)
File "/home/vikky/.local/share/virtualenvs/blueprints-qKQexZsE/local/lib/python2.7/site-packages/salt/minion.py", line 793, in __init__
lambda: self.eval_master(self.opts, failed=True)
File "/home/vikky/.local/share/virtualenvs/blueprints-qKQexZsE/local/lib/python2.7/site-packages/tornado/ioloop.py", line 458, in run_sync
return future_cell[0].result()
File "/home/vikky/.local/share/virtualenvs/blueprints-qKQexZsE/local/lib/python2.7/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "/home/vikky/.local/share/virtualenvs/blueprints-qKQexZsE/local/lib/python2.7/site-packages/tornado/gen.py", line 1063, in run
yielded = self.gen.throw(*exc_info)
File "/home/vikky/.local/share/virtualenvs/blueprints-qKQexZsE/local/lib/python2.7/site-packages/salt/minion.py", line 706, in eval_master
raise exc
salt.exceptions.SaltClientError: Attempt to authenticate with the salt master failed with timeout error
>>>
$ python
Python 2.7.15+ (default, Oct 7 2019, 17:39:04)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import salt.client
>>> _salt = salt.client.Caller()
>>>
Versions Report
vikky@vikky:~/blueprints$ salt-minion --versions
Salt Version:
Salt: 2018.3.3
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: 4.0.2
gitdb: 2.0.6
gitpython: 2.1.11
ioflo: Not Installed
Jinja2: 2.10.1
libgit2: Not Installed
libnacl: 1.6.1
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.1
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.15+ (default, Oct 7 2019, 17:39:04)
python-gnupg: Not Installed
PyYAML: 3.12
PyZMQ: 18.0.1
RAET: Not Installed
smmap: 3.0.1
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.1
System Versions:
dist: Ubuntu 18.04 bionic
locale: UTF-8
machine: x86_64
release: 4.15.0-65-generic
system: Linux
version: Ubuntu 18.04 bionic
vikky@vikky:~/blueprints$ pipenv --version
pipenv, version 2018.11.26
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with pipenv and compare it with the working system Python environment. Trace salt.client.Caller through salt/minion.py, focusing on the master-authentication timeout; done means identifying a reproducible cause and confirming consistent Caller creation in the virtual environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100