You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@witch1 ~# salt-run --out=virt_query virt.query host=squanchy.infra.opensuse.org
[ERROR ] Nested output failed:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 36, in try_printout
printout = get_printout(out, opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
KeyError: 'data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 42, in try_printout
printout = get_printout("nested", opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
KeyError: 'data'
[ERROR ] Nested output failed:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 36, in try_printout
printout = get_printout(out, opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
TypeError: string indices must be integers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 42, in try_printout
printout = get_printout("nested", opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
TypeError: string indices must be integers
[ERROR ] An un-handled exception was caught by Salt's global exception handler:
TypeError: string indices must be integers
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 36, in try_printout
printout = get_printout(out, opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
TypeError: string indices must be integers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 42, in try_printout
printout = get_printout("nested", opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
TypeError: string indices must be integers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/salt-run", line 9, in <module>
salt_run()
File "/usr/lib/python3.6/site-packages/salt/scripts.py", line 457, in salt_run
client.run()
File "/usr/lib/python3.6/site-packages/salt/cli/run.py", line 34, in run
ret = runner.run()
File "/usr/lib/python3.6/site-packages/salt/runner.py", line 308, in run
daemonize=False,
File "/usr/lib/python3.6/site-packages/salt/client/mixins.py", line 540, in _proc_function
return instance.low(fun, low)
File "/usr/lib/python3.6/site-packages/salt/client/mixins.py", line 436, in low
namespaced_event.fire_event(data, "ret")
File "/usr/lib/python3.6/site-packages/salt/utils/event.py", line 1033, in fire_event
self.print_func(tag, data)
File "/usr/lib/python3.6/site-packages/salt/client/mixins.py", line 640, in print_async_event
salt.output.display_output(event_data, outputter, self.opts)
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 88, in display_output
display_data = try_printout(data, out, opts, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 47, in try_printout
printout = get_printout("raw", opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
TypeError: string indices must be integers
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 36, in try_printout
printout = get_printout(out, opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
TypeError: string indices must be integers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 42, in try_printout
printout = get_printout("nested", opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
TypeError: string indices must be integers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/salt-run", line 9, in <module>
salt_run()
File "/usr/lib/python3.6/site-packages/salt/scripts.py", line 457, in salt_run
client.run()
File "/usr/lib/python3.6/site-packages/salt/cli/run.py", line 34, in run
ret = runner.run()
File "/usr/lib/python3.6/site-packages/salt/runner.py", line 308, in run
daemonize=False,
File "/usr/lib/python3.6/site-packages/salt/client/mixins.py", line 540, in _proc_function
return instance.low(fun, low)
File "/usr/lib/python3.6/site-packages/salt/client/mixins.py", line 436, in low
namespaced_event.fire_event(data, "ret")
File "/usr/lib/python3.6/site-packages/salt/utils/event.py", line 1033, in fire_event
self.print_func(tag, data)
File "/usr/lib/python3.6/site-packages/salt/client/mixins.py", line 640, in print_async_event
salt.output.display_output(event_data, outputter, self.opts)
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 88, in display_output
display_data = try_printout(data, out, opts, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/__init__.py", line 47, in try_printout
printout = get_printout("raw", opts)(data, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/contextvars/__init__.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/salt/output/virt_query.py", line 15, in output
for id_ in data["data"]:
TypeError: string indices must be integers
Setup
Not applicable / nothing was configured in Salt for this.
Please be as specific as possible and give set-up details.
on-prem machine
VM (Virtualbox, KVM, etc. please specify)
VM running on a cloud service, please be explicit and add details
container (Kubernetes, Docker, containerd, etc. please specify)
or a combination, please be explicit
jails if it is FreeBSD
classic packaging
onedir packaging
used bootstrap to install
Steps to Reproduce the behavior
Connect a minion
Run some VMs with Libvirt on the minion
Try virt.query using --out=virt_query from the master
Expected behavior
No errors. :(
Screenshots
Text output above should suffice.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
# salt --versions-reportSalt Version:
Salt: 3006.0Python Version:
Python: 3.6.15 (default, Sep 23 2021, 15:41:43) [GCC]Dependency Versions:
cffi: 1.13.2cherrypy: unknowndateutil: 2.8.1docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 2.10.1libgit2: 1.3.0looseversion: 1.0.2M2Crypto: 0.38.0Mako: Not Installedmsgpack: 0.5.6msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 21.3pycparser: 2.17pycrypto: Not Installedpycryptodome: Not Installedpygit2: 1.7.0python-gnupg: Not InstalledPyYAML: 5.4.1PyZMQ: 17.1.2relenv: Not Installedsmmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.2.3System Versions:
dist: opensuse-leap 15.5 locale: UTF-8machine: x86_64release: 5.14.21-150500.55.39-defaultsystem: Linuxversion: openSUSE Leap 15.5
Note I also tried the virt_query.py from the master branch as of commit d9b5065.
Additional context
I will propose a patch for this.
The text was updated successfully, but these errors were encountered:
Description
Setup
Not applicable / nothing was configured in Salt for this.
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
virt.query
using--out=virt_query
from the masterExpected behavior
No errors. :(
Screenshots
Text output above should suffice.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Note I also tried the
virt_query.py
from the master branch as of commit d9b5065.Additional context
I will propose a patch for this.
The text was updated successfully, but these errors were encountered: