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
Check the bug
Before filling this bug report, please search if a similar issue already exists.
In this case, just add a comment on this existing issue.
Describe the bug
A clear and concise description of what the bug is.
Displaying container status for rootless podman is not working, instead i get following error, when exiting:
Exception in thread Thread-7 (__update_plugin):
Traceback (most recent call last):
File "/usr/lib64/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/home/tokariew/.local/share/pipx/venvs/glances/lib64/python3.12/site-packages/glances/stats.py", line 258, in __update_plugin
self._plugins[p].update()
File "/home/tokariew/.local/share/pipx/venvs/glances/lib64/python3.12/site-packages/glances/plugins/plugin/model.py", line 1151, in wrapper
ret = fct(self, *args, **kw)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/tokariew/.local/share/pipx/venvs/glances/lib64/python3.12/site-packages/glances/plugins/plugin/model.py", line 1168, in wrapper
ret = fct(*args, **kw)
^^^^^^^^^^^^^^^^
File "/home/tokariew/.local/share/pipx/venvs/glances/lib64/python3.12/site-packages/glances/plugins/containers/__init__.py", line 223, in update
stats_podman = self.update_podman() if self.podman_extension else {}
^^^^^^^^^^^^^^^^^^^^
File "/home/tokariew/.local/share/pipx/venvs/glances/lib64/python3.12/site-packages/glances/plugins/containers/__init__.py", line 245, in update_podman
version, containers = self.podman_extension.update(all_tag=self._all_tag())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tokariew/.local/share/pipx/venvs/glances/lib64/python3.12/site-packages/glances/plugins/containers/engines/podman.py", line 290, in update
container_stats = [self.generate_stats(container) for container in containers]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tokariew/.local/share/pipx/venvs/glances/lib64/python3.12/site-packages/glances/plugins/containers/engines/podman.py", line 328, in generate_stats
stats['cpu_percent'] = stats["cpu"]['total']
~~~~~~~~~~~~^^^^^^^^^
KeyError: 'total'
RazCrimson
changed the title
don't display rootless podman containers, KeyError
Rootless podman containers cause glances to fail with KeyError
Jun 16, 2024
Check the bug
Before filling this bug report, please search if a similar issue already exists.
In this case, just add a comment on this existing issue.
Describe the bug
A clear and concise description of what the bug is.
Displaying container status for rootless podman is not working, instead i get following error, when exiting:
To Reproduce
glances -C glances.ini
Expected behavior
The glances will display running podman containers, and not errors
Environement (please complete the following information)
To be completed with result of: glances --issue
Additional context
version reported by pipx:
You can also pastebin:
The text was updated successfully, but these errors were encountered: