Debian: collectd.log reports Unhandled python exception every 5 minutes

Bug #1999433 reported by Kirti Singh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Kirti Singh

Bug Description

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.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

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/FindRightPackage. 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.]

tags: added: bot-comment
affects: ubuntu → collectd (Ubuntu)
Revision history for this message
Ghada Khalil (gkhalil) wrote (last edit ):

This LP is opened against the wrong project. It should be under the starlingx project: https://bugs.launchpad.net/starlingx/

affects: collectd (Ubuntu) → starlingx
tags: added: stx.8.0 stx.monitor
removed: bot-comment
Changed in starlingx:
importance: Undecided → Low
Revision history for this message
Ghada Khalil (gkhalil) wrote :
Changed in starlingx:
status: New → Fix Released
assignee: nobody → Kirti Singh (kirtis)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.