TypeError: 'int' object is not iterable in makeLogRecord

Bug #1696772 reported by Kirill Zaitsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.privsep
New
Undecided
Unassigned

Bug Description

We're using kuryr-kubernetes and os-vif. Here's the complete error log

Jun 08 17:22:18 novactl kubelet[9055]: Exception in thread privsep_reader:
Jun 08 17:22:18 novactl kubelet[9055]: Traceback (most recent call last):
Jun 08 17:22:18 novactl kubelet[9055]: File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
Jun 08 17:22:18 novactl kubelet[9055]: self.run()
Jun 08 17:22:18 novactl kubelet[9055]: File "/usr/lib64/python2.7/threading.py", line 764, in run
Jun 08 17:22:18 novactl kubelet[9055]: self.__target(*self.__args, **self.__kwargs)
Jun 08 17:22:18 novactl kubelet[9055]: File "/root/kuryr-k8s-cni/oslo.privsep/oslo_privsep/comm.py", line 131, in _reader_main
Jun 08 17:22:18 novactl kubelet[9055]: self.out_of_band(data)
Jun 08 17:22:18 novactl kubelet[9055]: File "/root/kuryr-k8s-cni/oslo.privsep/oslo_privsep/daemon.py", line 209, in out_of_band
Jun 08 17:22:18 novactl kubelet[9055]: record = pylogging.makeLogRecord(msg[1])
Jun 08 17:22:18 novactl kubelet[9055]: File "/usr/lib64/python2.7/logging/__init__.py", line 339, in makeLogRecord
Jun 08 17:22:18 novactl kubelet[9055]: rv.__dict__.update(dict)
Jun 08 17:22:18 novactl kubelet[9055]: TypeError: 'int' object is not iterable

further investigation showed, that msg's value during out_of_band is `(6, 20, u'privsep daemon starting')`

Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

Simply removing 'LOG.info('privsep daemon starting')' fixes the issue for me

Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

Seems that the bug is not present in the latest versions of the libraries

Changed in oslo.privsep:
status: New → Invalid
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

Actually I'm still getting it on the freash install with oslo.privsep==0.22

Changed in oslo.privsep:
status: Invalid → New
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.