Uploaded image for project: 'Fast Datapath Product'
  1. Fast Datapath Product
  2. FDP-1587

Traceback in device_matcher_udev.py, line 17, AttributeError: 'NoneType' object has no attribute 'properties', when hotplugging network adapter

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • None
    • tuned
    • None
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • rhel-9
    • None
    • rhel-net-perf
    • _N&P-Refined_
    • 1
    • Important

      What were you trying to do that didn't work?

      Add network adapter and quickly remove it before TuneD finished it's initialization.

      What is the impact of this issue to you?

      TuneD traceback

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Sometimes

      Steps to reproduce

      1.  Add network adapter and quickly remove it before TuneD finished it's initialization.
      1.  
      2.  

      Expected results

      No traceback

      Actual results

      2025-06-11T14:38:11.586533655Z 2025-06-11 14:38:11,586 ERROR    tuned.hardware.inventory: Exception occured in event handler of '<tuned.plugins.plugin_net.NetTuningPlugin object at 0x7f9659fea4c0>'.
      2025-06-11T14:38:11.589097019Z 2025-06-11 14:38:11,586 ERROR    tuned.hardware.inventory: 'NoneType' object has no attribute 'items'
      2025-06-11T14:38:11.589097019Z Traceback (most recent call last):
      2025-06-11T14:38:11.589097019Z   File "/usr/lib/python3.9/site-packages/tuned/hardware/device_matcher_udev.py", line 17, in match
      2025-06-11T14:38:11.589097019Z     items = device.properties.items()
      2025-06-11T14:38:11.589097019Z AttributeError: 'NoneType' object has no attribute 'properties'
      2025-06-11T14:38:11.589097019Z 
      2025-06-11T14:38:11.589097019Z During handling of the above exception, another exception occurred:
      2025-06-11T14:38:11.589097019Z 
      2025-06-11T14:38:11.589097019Z Traceback (most recent call last):
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/hardware/inventory.py", line 74, in _handle_udev_event
      2025-06-11T14:38:11.589136185Z     callback(event, device)
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/plugins/plugin_net.py", line 204, in _hardware_events_callback
      2025-06-11T14:38:11.589136185Z     super(NetTuningPlugin, self)._hardware_events_callback(event, device)
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/plugins/hotplug.py", line 31, in _hardware_events_callback
      2025-06-11T14:38:11.589136185Z     self._add_device(device.sys_name)
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/plugins/hotplug.py", line 53, in _add_device
      2025-06-11T14:38:11.589136185Z     if len(self._get_matching_devices(instance, [device_name])) == 1:
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/plugins/base.py", line 164, in _get_matching_devices
      2025-06-11T14:38:11.589136185Z     udev_devices = self._device_matcher_udev.match_list(instance.devices_udev_regex, udev_devices)
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/hardware/device_matcher.py", line 51, in match_list
      2025-06-11T14:38:11.589136185Z     if self.match(rules, device):
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/hardware/device_matcher_udev.py", line 19, in match
      2025-06-11T14:38:11.589136185Z     items = device.items()
      2025-06-11T14:38:11.589136185Z AttributeError: 'NoneType' object has no attribute 'items'

              jskarvad Jaroslav Škarvada
              jskarvad Jaroslav Škarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: