Open max-arnold opened 4 years ago
im replicating the boto and docker tracebacks but not the psutil one and i ensured i did not have it installed. When i looked at the code it looks like its intentionally not catching the importerror because of this comment https://github.com/saltstack/salt/blame/master/salt/utils/psutil_compat.py#L19 but i did not think we required psutil. Can you confirm @s0undt3ch that we do not indeed require psutil? if so we can just catch that importerror exception
psutils
is not a hard requirement.
I guess we started having this when we started supporting __utils__
, and in this context, we start catching the exception.
I wonder what might be different in your setup in regard to psutil
. I just tried to reproduce it on a clean Vagrant box (bento/ubuntu-18.04
) and it happens reliably. Below is the bootstrap command I used:
bootstrap-salt.sh -P -x python3 -f -g https://github.com/saltstack/salt.git -F -c /tmp git master
The swarm
module traceback looks to be fixed in https://github.com/saltstack/salt/pull/57489.
I've opened #58554 for the boto3_elasticsearch
traceback.
@max-arnold I can still reproduce the psutil
utils problem using your instructions in https://github.com/saltstack/salt/issues/55848#issuecomment-574546524 with the latest master (931580afdc).
I have this issue too. Is there a fix for this?
The state succeeds, but there are a couple of tracebacks in the debug log triggered by the loader (this probably means that these unrelated modules should be fixed):
sudo salt-call state.single pkg.installed nginx -l debug
Versions Report
Master branch:
salt-call --versions-report
``` Salt Version: Salt: 2019.2.0-n/a-b637401 Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: Not Installed docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.10 libgit2: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack-pure: Not Installed msgpack-python: 0.5.6 mysql-python: Not Installed pycparser: Not Installed pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: Not Installed Python: 3.6.9 (default, Nov 7 2019, 10:44:02) python-gnupg: Not Installed PyYAML: 3.12 PyZMQ: 16.0.2 smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.2.5 System Versions: dist: Ubuntu 18.04 bionic locale: UTF-8 machine: x86_64 release: 4.15.0-72-generic system: Linux version: Ubuntu 18.04 bionic ```