UnboundLocalError due to uid referenced before assignment.
As a result, the top 10 memory rss processes were not reflected in collectd log file
For example storage-0 collectd.log
2022-11-09T16:50:59.222 storage-0 collectd[34324]: info Unhandled python exception in read callback: UnboundLocalError: local variable 'uid' referenced before assignment
2022-11-09T16:50:59.222 storage-0 collectd[34324]: info Traceback (most recent call last):
2022-11-09T16:50:59.223 storage-0 collectd[34324]: info File "/opt/collectd/extensions/python/memory.py", line 753, in read_func
2022-11-09T16:50:59.223 storage-0 collectd[34324]: info pids = get_platform_memory_per_process()
2022-11-09T16:50:59.223 storage-0 collectd[34324]: info File "/opt/collectd/extensions/python/memory.py", line 585, in get_platform_memory_per_process
2022-11-09T16:50:59.223 storage-0 collectd[34324]: info platform.items(), k8s_system.items(), pod_group[uid].items()))
2022-11-09T16:50:59.223 storage-0 collectd[34324]: info UnboundLocalError: local variable 'uid' referenced before assignment
2022-11-09T16:50:59.223 storage-0 collectd[34324]: info read-function of plugin `python.memory' failed. Will suspend it for 60.000 seconds.
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1999433/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]