What happened?
I have a small piece of code to start a salt runner asynchronously:
import salt.runner
import salt.config
opts = salt.config.client_config("/etc/salt/master")
runner = salt.runner.RunnerClient(opts)
print(runner.asynchronous('fileserver.file_list',{}))
I get the following exception:
Process ProcessFunc(AsyncClientMixin._proc_function, fun=fileserver.file_list jid=20250916140254634476):
Traceback (most recent call last):
File "/usr/lib64/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python3.6/site-packages/salt/utils/process.py", line 953, in wrapped_run_func
salt._logging.set_logging_options_dict(self.__logging_config__)
File "/usr/lib/python3.6/site-packages/salt/_logging/impl.py", line 434, in set_logging_options_dict
set_lowest_log_level_by_opts(opts)
File "/usr/lib/python3.6/site-packages/salt/_logging/impl.py", line 1055, in set_lowest_log_level_by_opts
get_logging_level_from_string(opts.get("log_level")),
AttributeError: 'NoneType' object has no attribute 'get'
{'tag': 'salt/run/20250916140254634476', 'jid': '20250916140254634476'}
Where do I go wrong? I do not find any explanation in the docs.
Thanks
Thomas
Type of salt install
Official rpm
Major version
3006.x
What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)
sles-15-sp5
salt --versions-report output
mars:~ # salt --versions-report
Salt Version:
Salt: 3006.0
Python Version:
Python: 3.6.15 (default, Sep 23 2021, 15:41:43) [GCC]
Dependency Versions:
cffi: 1.13.2
cherrypy: Not Installed
contextvars: 2.4
dateutil: 2.8.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.10.1
libgit2: Not Installed
looseversion: 1.0.2
M2Crypto: 0.38.0
Mako: Not Installed
msgpack: 0.5.6
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 21.3
pycparser: 2.17
pycrypto: Not Installed
pycryptodome: Not Installed
pygit2: Not Installed
python-gnupg: Not Installed
PyYAML: 5.4.1
PyZMQ: 17.1.2
relenv: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.2.3
System Versions:
dist: sles 15.5
locale: UTF-8
machine: x86_64
release: 5.14.21-150500.55.94-default
system: Linux
version: SLES 15.5
What happened?
I have a small piece of code to start a salt runner asynchronously:
I get the following exception:
Where do I go wrong? I do not find any explanation in the docs.
Thanks
Thomas
Type of salt install
Official rpm
Major version
3006.x
What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)
sles-15-sp5
salt --versions-report output