canonical / hotsos

Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications.
Apache License 2.0
30 stars 37 forks source link

sysctl check key error #865

Closed dosaboy closed 2 months ago

dosaboy commented 2 months ago

If a sysctl key exists in a custom config but not the global settings it currently fails with:

Traceback (most recent call last): File "/home/ubuntu/git/hotsos/hotsos/core/plugintools.py", line 429, in run output = inst.output File "/home/ubuntu/git/hotsos/hotsos/core/plugintools.py", line 371, in output out = getattr(self, m)() File "/home/ubuntu/git/hotsos/hotsos/plugin_extensions/system/checks.py", line 163, in __11_summary_juju_charm_sysctl_mismatch if value != self.sysctl_all[key]: KeyError: 'kernel.panic_on_io_nmi'