Network plugin raised an exception

Bug #1923637 reported by Zygmunt Krynicki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Server
Invalid
Undecided
Unassigned

Bug Description

My system reports the following exception:

2021-03-27 22:18:00,617 ERROR Network plugin raised an exception.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/landscape/sysinfo/sysinfo.py", line 99, in run
    result = plugin.run()
  File "/usr/lib/python3/dist-packages/landscape/sysinfo/network.py", line 36, in run
    device_info = self._get_device_info()
  File "/usr/lib/python3/dist-packages/landscape/lib/network.py", line 163, in get_active_device_info
    speed, duplex = get_network_interface_speed(
  File "/usr/lib/python3/dist-packages/landscape/lib/network.py", line 249, in get_network_interface_speed
    res = status_cmd.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'

It seems related to array having tobytes, but not tostring on Python 3.9, as present in Hirsute.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I've fixed this locally. Please apply.

information type: Proprietary → Public
Revision history for this message
Zygmunt Krynicki (zyga) wrote :
Changed in landscape:
status: New → Fix Committed
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

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